8 ms·
This is very interesting. A few questions: 1. What is the reason for rewriting the framework to abandon actors in favor of services? 2. In the Tech Empower be
by continuations 7y ago
This is very interesting. A few questions:
1. What is the reason for rewriting the framework to abandon actors in favor of services?
2. In the Tech Empower benchmarks, what's the difference between actix-core and actix-pg? What caused the difference in performance between the 2?
3. What's your experience with using actix-web in production? How does it compare to other frameworks you've used?
Thanx
- abetlen 7y agoNot OP but to answer #2, based on the benchmark code here [1] the difference is that actix-pg accesses the database through message passing in the actor system [2] while actix-core accesses it directly [3]. [1]. https://github.com/TechEmpower/FrameworkBenchmarks/tree/master/frameworks/Rust/actix https://github.com/TechEmpower/FrameworkBenchmarks/tree/mast... [2]. https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/Rust/actix/src/db_pg.rs#L215 https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast... [3]. https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/Rust/actix/src/db_pg_direct.rs#L154 https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast...
- continuations 7y agoI clicked on the "latency" tab of the benchmarks result [1] and there's a big difference in maximum latency between the 2 approaches: actix-pg: 27.1 ms actix-core: 201.1 ms Is that to be expected? [1] https://www.techempower.com/benchmarks/#section=test&runid=9f738614-61d5-4c04-a1a5-3778b2ac3003&hw=ph&test=fortune https://www.techempower.com/benchmarks/#section=test&runid=9...