3 ms·
STM is not sold as a headline concurrency feature anymore, apparently people prefer more traditional ways.
by fulafel 9y ago
STM is not sold as a headline concurrency feature anymore, apparently people prefer more traditional ways.
- Zak 9y agoI think the main thing is that the use case of modifying multiple references at the same time where it is critical that all changes take place at once is less common in idiomatic Clojure than people might have expected.
- brandonbloom 9y agoYeah, this is exactly it. Atoms were added as a cheaper alternative to Refs for when you didn't need transactions, just compare-and-swap. Turns out that atoms work well enough for even huge single-JVM systems, and are much simpler.
- Scarbutt 9y agoSince most applications use a database, is simpler to keep transactions only at one place, one source of truth.
- platz 9y agofor 'business logic', sure, but things like updating/invalidating application caches, or other operations intrinsic to the application (the "non-functional requirements") that can't be isolated to the database.