Actix: a small, pragmatic, and fast Rust web framework
1–10 of 125 posts
Re: Actix: a small, pragmatic, and fast Rust web framework
#2Re: Actix: a small, pragmatic, and fast Rust web framework
#3Re: Actix: a small, pragmatic, and fast Rust web framework
#4Citrine: https://www.techempower.com/benchmarks/#section=test&runid=6...
Azure: https://www.techempower.com/benchmarks/#section=test&runid=b...
Re: Actix: a small, pragmatic, and fast Rust web framework
#5Re: Actix: a small, pragmatic, and fast Rust web framework
#6Re: Actix: a small, pragmatic, and fast Rust web framework
#7Re: Actix: a small, pragmatic, and fast Rust web framework
#8Re: Actix: a small, pragmatic, and fast Rust web framework
#9Can someone explain to me what advantage the actor model provides for a web server?
To give a specific example: they can be used to mediate access to a resource without requiring complex synchronisation: instead of sharing a piece of mutable state (like a cache) and protecting it with a lock, you can ensure a single actor accesses the cache, and other code communicates with that actor.
This is particularly useful with asynchronous code, because it's not possible to have a fair, asynchronous "passive" mutex without suffering from the thundering-herd problem. If you try to implement such a mutex, you will find yourself needing to queue up lock requests and responses, and you will end up reinventing the concept of an actor.