Design Patterns
Three patterns, each in its own article with code. Optimistic concurrency detects when two people change the same data, so neither change is silently lost. Sagas and process managers coordinate a business process that spans several services, without a distributed transaction. Memoization runs a function once and reuses its result. The Optimistic concurrency and Distributed processes guides go further on the first two.
3 articles
![Memoization, a useful pattern for quick optimization]()
Memoization, a useful pattern for quick optimization
Today I would like to show you a simple programming pattern that can be useful for quick code optimization. This pattern is called…
![Saga and Process Manager - distributed processes in practice]()
Saga and Process Manager - distributed processes in practice
What can go wrong with distributed systems? Everything! I like to compare distributed systems to Rocky Balboa fighting the last round with…
![Optimistic concurrency for pessimistic times]()
Optimistic concurrency for pessimistic times
Apparently, one of the worst things you can wish someone is “may you live in interesting times”. In these interesting times of ours, I…


