Explain SOLID principles in backend services.
SOLID is a set of design principles: single responsibility, open/closed, Liskov substitution, interface segregation, and dependency inversion.
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 589–600 of 3610 questions
SOLID is a set of design principles: single responsibility, open/closed, Liskov substitution, interface segregation, and dependency inversion.
DDD models software around the business domain.
An aggregate root is the entry point for changing an aggregate and enforcing its invariants.
Command Query Responsibility Segregation separates operations that change state from operations that read state.
In event-driven architecture, components publish events describing facts and other components react asynchronously.
A repository provides a collection-like interface for retrieving and persisting domain objects while hiding persistence details.
The service layer coordinates use cases and business rules.
A Data Transfer Object defines the shape of data crossing a boundary.
Keep environment-specific configuration outside source code and inject secrets from a secret manager or protected environment.
A liveness check indicates whether a process is running; a readiness check indicates whether it can serve traffic.
Graceful shutdown stops accepting new work, allows in-flight requests to finish within a deadline, closes connections, and releases resources.
Vertical scaling increases resources on one machine; horizontal scaling adds instances.