> [!Warning]
> This page is still under construction š§
Instead of layering code have independent feature implementations.
Go example ([medium.com](https://medium.com/@harishsingh8529/forget-mvc-heres-how-i-structure-go-projects-in-production-8cf99e951b07)):
```
/cmd
/appname
main.go --> Wire up dependencies and start
/internal
/user
handler.go --> HTTP handler (adapter)
service.go --> Business logic (use-case)
repository.go --> Interface for data access
postgres_repo.go --> DB implementation
dto.go --> Request/response payloads
/order
...
/pkg
/shared
/logger
/metrics
/errors
```
This one is a combination of Feature based architecture + [[Hexagonal project structure]]