Clean Architecture

Any suggestions as to how can one have a maintanable and scalable project structure where every service is independent. Even if it is related to server, the distribution of the individual apis is done in such a way that it doesn't effect the overall structure of the project when a new entity is introduced.
11 Replies
JJ Rise
JJ Rise12mo ago
Like setting up a monorepo?
Josh
Josh12mo ago
Microservice is the technical word your looking for. Look it up on roadmap
Papa Johns
Papa Johns12mo ago
yeah but these ful stack frameworks like nextjs, t3 ; do they support the microservice architecture as the proejcts generally created in these stacks are all in monolithic structure by default. I don't mind it being monorepo, it just needs to be scale able and maintainable in the long run.
Josh
Josh12mo ago
You can pretty much use any thing with a microservice setup. If someone needs to be it's own backend service just make it a new service
Papa Johns
Papa Johns12mo ago
understood. I think I'll have to create a microservices now. It's just that I am thinking to implement it in nestjs. Also any example where nextjs or t3 is used in a microservice architecture.
cje
cje12mo ago
honestly if you want to build microservices the t3 stack is probably not what youre looking for
Papa Johns
Papa Johns12mo ago
Actually the entire nextjs stack is not suited for Microservice architecture. The stack is suitable for monolith arch only. Actually, what I was thinking is that there can be a generalized architecture where the code can be scalable and maintainable and it can be done for any of stack like nestjs, t3, nextjs etc. But unlikely only nestjs supports that type of working. I hope t3 might add an extra out of the box support for microservices so that the entire stack can be used for development of products without using mulitple frameworks or libraries for the development.
cje
cje12mo ago
we're good at the thing we do because we say no to a lot of other things if you want to make microservices, use something else. no hard feelings.
Papa Johns
Papa Johns12mo ago
Sure, no hard feeling here too. It was an honest answer, I am sorry If I had offended you in any manner.
cje
cje12mo ago
No not at all Just want to be honest about what the stack is and not have people bend it into shape to do something that a different stack would be a much better fit for
Papa Johns
Papa Johns12mo ago
understood.
Want results from more Discord servers?
Add your server