Skip to content

Rust web server that uses a custom thread pool for fast, concurrent operation

Notifications You must be signed in to change notification settings

Suraj-Ram/rust-web-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multithreaded Web Server

Web server that can handle requests simultaneously using a custom thread pool of 4 threads.

To run

cargo run
  • / is an endpoint that returns a simple HTML page with a welcome message.
  • /sleep is an endpoint that sleeps for 5 seconds before returning a simple HTML page with a welcome message.
    • This is used to benchmark the server's ability to handle multiple requests simultaneously.

To benchmark the server, run ./benchmark.sh or use hyperfine as follows

hyperfine "./benchmark.sh" --runs 5

About

Rust web server that uses a custom thread pool for fast, concurrent operation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published