Quantcast
Channel: Is Sinatra multi threaded? - Stack Overflow
Browsing all 6 articles
Browse latest View live

Answer by Joel Jackson for Is Sinatra multi threaded?

Thought I might elaborate for people who come across this. Sinatra includes this little chunk of code: server.threaded = settings.threaded if server.respond_to? :threaded= Sinatra will detect what gem...

View Article


Answer by Michael van Rooijen for Is Sinatra multi threaded?

I've been getting in to JRuby myself lately and I am extremely surprised how simple it is to switch from MRI to JRuby. It pretty much involves swapping out a few gems (in most cases).You should take a...

View Article

Answer by ch4nd4n for Is Sinatra multi threaded?

After making some changes to code I was able to run padrino/sinatra application on mizuno. Initially I tried to run Padrino application on jRuby but it was simply too unstable and I did not investigate...

View Article

Answer by Konstantin Haase for Is Sinatra multi threaded?

tl;dr Sinatra works well with Threads, but you will probably have to use a different web server.Sinatra itself does not impose any concurrency model, it does not even handle concurrency. This is done...

View Article

Answer by asaaki for Is Sinatra multi threaded?

While googling around, found this gem: sinatra-synchronywhich might help you, because it touches you question.There is also a benchmark, they did nearly the same thing like you want (external...

View Article


Is Sinatra multi threaded?

Is Sinatra multi-threaded? I read else where that "sinatra is multi-threaded by default", what does that imply? Consider this exampleget "/multithread" do t1 = Thread.new{ puts "sleeping for 10 sec"...

View Article
Browsing all 6 articles
Browse latest View live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>