(no title)
snowboarder63 | 1 year ago
Imagine opening a socket, if you have a mutable self the caller who is going to spawn that actor needs to open the socket themselves and risk the failure there. Instead of the actor who would eventually be responsible for said socket. This is outlined in our docs the motivation for this. Essentially the actor is responsible for creation of their state and any risks associated with that.
- for the async trait point we actually do support the native async traits without the boxing magic macro. It's a feature you can disable if you so wish but it impacts factories since you can't then box traits with native future returns https://github.com/slawlor/ractor/pull/202
(For transparency I'm the author of ractor)
tqwewe|1 year ago
I wasn't aware async_trait wasn't needed, thats nice to see.
Also congrats on it being used in such a big company, thats awesome! I have a lot of respect for ractor and appreciate your response
snowboarder63|1 year ago
Question for you, I was poking around in the codebase and how do you handle your Signal priorities? Like if a link died, and there's 1000 messages in the queue already, or if it's a bounded mailbox, would the link died (or even stop) messages be delayed by that much?
Have you looked into prioritization of those messages such that it's not globally FIFO?
snowboarder63|1 year ago
Here's the RustConf presentation for anyone interested https://slawlor.github.io/ractor/assets/rustconf2024_present...