3 ms·
> A better rule is for one service to own writes for a table This breaks down when the database is essentially a generic graph. The worst solution I've seen t
by lightbendover 4y ago
> A better rule is for one service to own writes for a table
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.
- KptMarchewa 4y agoAdded network call is often better than disjointed view on database schema.
- lightbendover 4y agoThat's a difficult claim to make without knowing the workload.