Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vanshajb10/multithreaded_web_server
This project demonstrates Java's multithreading capabilities!. High-performance, Multithreaded web server capable of handling up to 1 million concurrent requests. Built with Java, the server utilizes efficient thread management and thread pooling to ensure optimal resource utilization and minimal latency.
https://github.com/vanshajb10/multithreaded_web_server
java-8 multithreading
Last synced: about 1 month ago
JSON representation
This project demonstrates Java's multithreading capabilities!. High-performance, Multithreaded web server capable of handling up to 1 million concurrent requests. Built with Java, the server utilizes efficient thread management and thread pooling to ensure optimal resource utilization and minimal latency.
- Host: GitHub
- URL: https://github.com/vanshajb10/multithreaded_web_server
- Owner: VANSHAJB10
- Created: 2024-10-23T19:44:18.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-23T19:58:45.000Z (3 months ago)
- Last Synced: 2024-12-18T16:19:01.989Z (about 1 month ago)
- Topics: java-8, multithreading
- Language: Java
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MultiThreaded Web Server using Java
This project demonstrates Java's multithreading capabilities!.
High-performance, Multithreaded web server capable of handling up to 1 million concurrent requests.
Built with Java, the server utilizes efficient thread management and thread pooling to ensure optimal resource utilization and minimal latency.
What is a Server?
A Server serves static/dynamic content to users.
If too many (example 10k) clients hit the server --> multiprocessing server will open 10k threads. 1 thread for each request
Thread block of 10 k threads will consume too much memory and Resources of the system that it may crash.Making it impossible to serve 10k RPS.
To solve this probem - a Thread Pool can be used.
It is a pool of Threads, ready to serve incoming requests.Thread which is done with execution is reused again so no need to create more (> 100) threads.
Tasks wait in Queue till a thread is available to take up a task.