Sobes.tech
Senior

Have you worked with Domain-Driven Design and clean architecture?

sobes.tech AI

Answer from AI

Yes, I have worked with Domain-Driven Design (DDD) and clean architecture, especially in Go projects. In DDD, the main focus is on modeling the domain through understandable domain objects and separation of responsibilities. Clean architecture helps structure the code so that business logic is isolated from infrastructure and UI, making testing and maintenance easier.

An example structure in Go using DDD and clean architecture:

/domain       // domain models and business logic
/usecase      // use cases, business rules
/repository   // interfaces for data access
/infrastructure // implementation of data access to DB, external services
/delivery    // HTTP/GRPC handlers

This approach allows changing implementation details (e.g., database) without affecting the business logic.