DEV Community

Discussion on: What can I do in terms of architecture?

 
olckara profile image
𝚘𝚕𝚌𝚊𝚢

Thank you so much for such a clear answer, I totally missed the point that more request does not mean more cost while considering endpoints. It depends on what that endpoint does. I see that now. Also, we have to have a single database so it would be a bottleneck anyways. As you said we should really measure and asses the cost of the current structure and decide if we benefit from any change.

Thread Thread
 
rhymes profile image
rhymes

Yeah keep in mind that you tackle things one step at the time. Two apps sharing the same DB because they access the same data is a distributed monolith. Two apps sharing the same db because they access completely different data could just be the first step in having separate microservices.

There's no wrong option, just one you can maintain and one you can't. You have to figure out how much you can split