News for hackers. Stuff that matters.
Re:You Want Modules, Not Microservices by jayd16 on Tuesday January 03, 2023 @02:03PM (#34236280)
So tell me, who is making microservices for calls that could be done wholly in memory? How are you handling rollbacks and such for this in memory logic?

Aren't you still writing out to external data stores? If that's the case then its really not a comparison of in process to a RPC, it just two RPC hops now, no?

Re:You Want Modules, Not Microservices by dagss on Tuesday January 03, 2023 @04:28PM (#34238326)
When you move to microservices -- or rather, when you split your data across several DBs -- you sometimes end up basically reimplementing DB synchronization in business logic layers that could (sometimes, and depending on scalability constraints) be solved by using DB transactions.

So instead of a single DB transaction, often with a single SQL roundtrip, microservices can sometimes force through coordination of separate transactions to several DBs.