Comments (2)
Apologies for the tardy reply. Was just on holiday. You're correct in that the onCrash
property is not respected in stateless actors. It was originally the case, and I missed updating documentation to reflect this.
The reasoning for changing the original behavior is because stateless actors process messages concurrently. Introducing a supervision policy to a concurrent process in practice results in a lot of undefined behavior. For example if you want the actor to stop
after a single error, what happens to the other messages which are currently being processed by the actor? I felt that given that these actors have no state, introducing the extra complexity and mental overhead of a supervision policy would have little gain.
I've updated the documentation to use stateful actors instead of stateless ones in the supervision policy section.
from nact.
Makes sense, thank you.
from nact.
Related Issues (20)
- [7.6.0] configureLogging is not accessible HOT 1
- Notify an actor created by query() when work needs to be cancelled HOT 1
- the website is dead HOT 2
- New .xyz documentation site search points to nact.io HOT 1
- Page on npmjs.com still points to old domain HOT 1
- Build Error on Typescript 4.6.2 HOT 2
- Versions out of Sync HOT 1
- onCrash not called for stateless actors
- Enable Github Discussions HOT 1
- Can't join Discord from nact.xyz/en_uk/community HOT 1
- Stateless Actors won't handle errors HOT 1
- Stateless actors are not concurrent. HOT 3
- Discord URL in README is expired
- onCrash does not provide access to internal message queue
- dispatch has wrong type signature HOT 2
- ActorContext type doesn't have ctx.sender property HOT 2
- when trying to compile typescript file with nact, I receive error saying dispatch accepts only 2 arguments HOT 1
- multiple instances support HOT 1
- Deno Support HOT 1
- Scaling? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nact.