Is Sinatra multi threaded?

后端 未结 5 1066
忘掉有多难
忘掉有多难 2020-11-30 19:57

Is Sinatra multi-threaded? I read else where that \"sinatra is multi-threaded by default\", what does that imply?

Consider this example

get \"/multi         


        
5条回答
  •  情书的邮戳
    2020-11-30 20:43

    While googling around, found this gem:

    sinatra-synchrony

    which might help you, because it touches you question.

    There is also a benchmark, they did nearly the same thing like you want (external calls).

    Conclusion: EventMachine is the answer here!

提交回复
热议问题