Skip to content

SagarPatil007/ThreadScale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This Project demonstrates the response time improvement when we compare a traditional blocking sprinboot project to a non-blocking springboot project. We achieved major performance gains: read operations became noticeably faster, CRUD workflows improved by 95.6%, and file read/write processing efficiency increased by 85%.

  1. Blocking (Synchronous) Microservices Blocking APIs stop the execution thread until a result is received from the backend layer.
  2. Non-Blocking (Asynchronous) Microservices Non-blocking APIs don’t wait for the backend response. They continue handling new incoming user requests.
  3. Blocking (Synchronous) Microservices A single thread serves the entire request from controller → business layer → repository layer. This same thread is blocked until the response is returned.
  4. Non-Blocking (Asynchronous) Microservices Multiple worker threads perform backend tasks. The main thread passes the request to a worker thread from a pool and continues serving new requests. The worker thread processes the request and sends the response back to the user.

Note: We can also create non-blocking APIs in Spring Boot using async features and CompletableFuture. Screenshot 2025-11-15 at 9 09 50 AM Screenshot 2025-11-15 at 9 10 21 AM Screenshot 2025-11-15 at 9 10 33 AM

API Response Time Diff

Screenshot 2025-11-15 at 9 16 17 AM

Screenshot 2025-11-15 at 9 16 44 AM

Screenshot 2025-11-15 at 9 16 56 AM

Screenshot 2025-11-15 at 9 17 11 AM

Screenshot 2025-11-15 at 9 20 13 AM

Screenshot 2025-11-15 at 9 20 31 AM

Screenshot 2025-11-15 at 9 20 57 AM

Screenshot 2025-11-15 at 9 26 36 AM

About

This Project demonstrates the response time improvement when we compare a traditional blocking sprinboot project to a non-blocking springboot project. We achieved major performance gains: read operations became noticeably faster, CRUD workflows improved by 95.6%, and file read/write processing efficiency increased by 85%.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages