4 ms·
Caches seem to be much easier to handle using the actor model for handling concurrency. Actors can have their own cache, and since they queue messages and hand
by undreren 6y ago
Caches seem to be much easier to handle using the actor model for handling concurrency.
Actors can have their own cache, and since they queue messages and handle them in order, one at a time, the cache will never be out of sync.
It does come at several other costs though.
- csharptwdec19 6y agoActors can indeed make caches super easy. If your entries are simple enough (add/remove/update) and can be expressed as messages, wiring up a simple pub-sub cache is an afternoon project.