News for hackers. Stuff that matters.
Re:You Want Modules, Not Microservices by jayde2767 on Tuesday January 03, 2023 @02:16PM (#34236502)
Thank you for pointing out caching. I was going to reply, at some point, that architecture in a well-designed distributed system considers both locality of data and the ability to cache data as a means of improving both latency and throughput and often does appreciably.

But I don't have to now.

Re:You Want Modules, Not Microservices by jiggawatts on Tuesday January 03, 2023 @05:55PM (#34239319)
Most web sites I've seen in industry have just two servers, and only for active-active availability. Because of this, cache locality makes very little difference, because both nodes need to cache common data anyway.

Cache locality starts making a difference when you have over ten servers, and a significant fraction of the data is cacheable.

For "transactional" Enterprise CRUD apps, often there is very little that can be cached due to consistency concerns.

Re:You Want Modules, Not Microservices by closeparen on Tuesday January 03, 2023 @11:28PM (#34242049)
I don't see the affinity between microservices and locality. Any kind of distributed storage, including cache, is going to include a choice about how data are partitioned, ordered, and indexed. If you want certain records to be in memory on the same nodes, you should not need a separate cache cluster to accomplish that, let alone a separate cache service implementation.