Re:You Want Modules, Not Microservices
by KptMarchewa on Tuesday January 03, 2023 @10:32AM
(#34232677)
Added network call is often better than disjointed view on database schema.
Re:You Want Modules, Not Microservices
by lightbendover on Tuesday January 03, 2023 @09:43PM
(#34241316)
That's a difficult claim to make without knowing the workload.
This breaks down when the database is essentially a generic graph. The worst solution I've seen to this is to have another service responsible for generic write operations and any service that wants to write data goes through that service -- you're essentially re-introducing the problem you're purporting to solve at a new layer with an added hop and most likely high network usage. The best solution I've seen is to obviously have the monolith. The enterprise solution I've seen, while not good by any means but nearly essential for promoting team breakdown and ownership, is to just let disparate services write as they see fit, supported by abstraction libraries and SOPs to help reinforce care from engineers.