Skip to content

A Ratpack example showing the consequences of writing blocking code on the main thread

License

Notifications You must be signed in to change notification settings

rhart/ratpack-blocking-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ratpack-blocking-example

A Ratpack example showing the consequences of writing blocking code on the main thread.

Included is a JMeter test that sends 100 concurrent requests to 2 different handlers. Each handler's code sleeps for 10 seconds but one is blocking and the other is not. Run the test and see what the results are for yourself.

Accompanies this blog post http://blog.anacoders.com/blocking-code-in-ratpack/

About

A Ratpack example showing the consequences of writing blocking code on the main thread

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages