javalin / website

Javalin website source code
https://javalin.io
36 stars 87 forks source link

Unclear docs #247

Closed tipsy closed 9 months ago

tipsy commented 9 months ago

ah...

By default, Javalin serves requests using a Jetty QueuedThreadPool with 250 threads. Handlers are invoked in parallel on multiple threads, so all handler implementations should be thread-safe.

I guess that'd explain why I can't get both handlers to share state via ThreadLocal. Couldn't get Guice scopes to work either, and I think I might need to configure the Jetty servlet to add the necessary filter, but my hands are tied there. Oh well!

^ specify that request pipelines are parallel, each pipeline step is sequential. Also mention async