4 ms·
To me personally, it is not monolith vs microservice that bothers me, but statefull vs stateless services. If a service can't assume local state, it creates un
by iambvk 8y ago
To me personally, it is not monolith vs microservice that bothers me, but statefull vs stateless services.
If a service can't assume local state, it creates unnecessary design overhead. For example, you cannot achieve exactly-once semantics between two services without local-state. If you replace local-state with message-queues, you just turned 1-network-1-disk op into 5-network-3-disk op and introduced loads of other problems.
- linkmotif 8y agoWhat do you think of Kafka Streams?
- iambvk 8y agoI don't know. If you (or someone) could tell me number of network-hops and Disk-IOs involved in performing an RPC using Kafka streams, I will definitely take a look at them.
- cortesoft 8y agoIf you are relying on local state, you can never scale to more than one machine.