sergey-melnychuk / sergey-melnychuk.github.io

Blog on software engineering
https://sergey-melnychuk.github.io
3 stars 0 forks source link

https://sergey-melnychuk.github.io/2020/04/27/multi-threaded-http-websocket-server-in-rust/ #25

Closed utterances-bot closed 4 years ago

utterances-bot commented 4 years ago

Multi-threaded HTTP/WebSocket server in Rust

Building up on my previous posts about MIO-based server and parser combinators, this post is about making a very simple HTTP server capable of running on multiple threads and implementing WebSocket protocol.

https://sergey-melnychuk.github.io/2020/04/27/multi-threaded-http-websocket-server-in-rust/

sergey-melnychuk commented 4 years ago

test

shribe commented 4 years ago

It might not be Amdahl's law limiting you; it might be the fact that wrk itself doesn't scale all that well and sometimes cannot keep up with highly-concurrent servers. You might need to test using multiple machines running wrk ;-)

sergey-melnychuk commented 4 years ago

@shribe, thanks for pointing out, testing server with actual network involved is a good idea :)