Skip to main content
InterviewHubPRO
Section Overview
Q35

Question 35 of 50

Part 3: Go Microservices, HTTP, gRPC & Architecture (33 - 44)

70%
Golang & Concurrency (50 Qs)•Part 3: Go Microservices, HTTP, gRPC & Architecture (33 - 44)

Clean Architecture in Go: Domain, Use Cases, Ports and Adapters.

senior LevelSystem DesigngRPCMicroservices

In Simple Words: Organize packages by domain responsibility:

  • domain/: Pure business entities and interface contracts. Has ZERO external dependencies.
  • usecase/: Application business logic coordinating domain entities.
  • adapter/: Concrete implementations (PostgreSQL repository, HTTP handler, Kafka publisher).
  • Rule: Dependencies only point inwards towards the Domain.