bxcodec / go-clean-arch

Go (Golang) Clean Architecture based on Reading Uncle Bob's Clean Architecture
MIT License
9.06k stars 1.19k forks source link

more simple clean arch #48

Closed alifpay closed 2 years ago

alifpay commented 4 years ago

Hi I develop more simple clean arch

handlers: any transport layer http web api, grpc, graphql and etc.

app: Business layer

storage: Database and caches

services: external services

https://github.com/Abdukahhor/swe

what do you think ?

aeharvlee commented 4 years ago

I think it is not better than go-clean-arch.

Why the domain(=model) files are in app directory? Imagine if you use about 15 domains in the project like, "Dog, Cat, Cow, Horse, etc..."

If so, there is at least 15 domain files in app directory. It would be hard to read structure of project.

I think you should separate domain directory like clean-arch.

bxcodec commented 2 years ago

thanks for the reference, I will take a look later. Let's have a proper discussion if needed. Feel free to ping me on Linkedin or Twitter or directly to my email.

I'm closing this issue since it's not relevant to this repository.