How to implement a non-blocking http proxy with Sinatra?

183 views
Skip to first unread message

Sergei Serdyuk

unread,
Aug 19, 2014, 2:01:37 PM8/19/14
to sina...@googlegroups.com
How does Sinatra processes requests from the threading prospective? If that depends on the deployment stack, please suggest something that would work for this task.

What gems would you recommend to implement a non-blocking http proxy with Sinatra? Something that should be able to serve many parallel requests to slow back-ends without spawing multiple processes.

Thank you!

Carlos Eduardo L. Lopes

unread,
Aug 20, 2014, 8:59:22 AM8/20/14
to sina...@googlegroups.com
Hi Sergei,

Sinatra is Rack-based, and this means that the way that it will behave in production depends on which application server you are using. You can find detailed information of the most used application servers in this blog post: https://blog.engineyard.com/2014/ruby-app-server-arena-pt1

But, if you want a simple HTTP Proxy, you should use something better-suited for this task like the Nginx Reverse Proxy (http://nginx.com/resources/admin-guide/reverse-proxy/)

Hope this help you!
[]s


--
You received this message because you are subscribed to the Google Groups "sinatrarb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sinatrarb+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Carlos Eduardo L. Lopes
gtalk: carlos....@gmail.com | Twitter: @_carloslopes

Reply all
Reply to author
Forward
0 new messages