Show HN: Coerce – Distributed actor framework in Rust
github.com
github.com
- Remoting
- Clustering
- Sharding
- Persistence (redis connector & in-memory currently provided, more to come)
- Supervision
- Metrics
- Tracing
- Service Discovery (+ k8s)
And much more! :)
I really wish most new actor frameworks weren't just a replacement for an async library+rabbitmq.
That's one side of the coin. The other side is that the VM all but guarantees that a crash in a process will not bring the VM down and that you can get a notification that the process died.
The primary benefit of the actor model is isolating/encapsulating resources and providing a safe interface to access them.
If you take an object in OOP and just throw locks around every single method you will be in a world of pain because you not only have to worry about potential resource leakage slipping past the lock, you also have to worry about the fact that you have now mixed up both the concurrent and internal non concurrent interface into one thing. If one of your synchronized public methods calls another public synchronized methods then you straight up run into a deadlock. So now you have to create an extra synchronized wrapper class that either conforms to the interface or works more like a Rust Mutex where you have to acquire the lock before you can access it's contents.
In an actor model both isolation and concurrent interface come out of the box out of the architecture. Pre-emption is just a cherry on top. If Java gets loom (green threads) then the actor library can just migrate to that with immediate performance benefits.
https://news.ycombinator.com/item?id=34813489
It feels like async / actor frameworks / gui things are permanently in flux. I wish clear winners would emerge already.
In OSS ecosystems it's usually plenty of choices, or nothing.
See NPM registry or choosing DE in Linux.
There are a couple of alternatives, but none of them come close in popularity
These rarely stabilize in the sense you mean, of there being exactly one sensible choice in some domain. (Note difference between "rarely" and "never".)
See also: Web framework, Javascript GUI framework, serialization libraries (easy to write the parser(s), endless combinations of ways to handle the resulting JSON for you), and these are just some big frequent examples that leap to mind. There's a lot of these sorts of things.
Let me know if you want to chat!