TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Goliath: Non-blocking, Ruby 1.9 Web Server

167 pointsby igrigorikabout 14 years ago

8 comments

gregwebsabout 14 years ago
From the FAQ: <a href="http://postrank-labs.github.com/goliath/doc/index.html" rel="nofollow">http://postrank-labs.github.com/goliath/doc/index.html</a><p><pre><code> How do I deploy Goliath in production? </code></pre> * We recommend deploying Goliath behind a reverse proxy such as HAProxy, Nginx or equivalent. Using one of the above, you can easily run multiple instances of the same application and load balance between then within the reverse proxy.<p>I am still wondering about how Goliath fits into both deployment architecture and application development. Traditionally these 2 have always been separated out.<p>* Thread safety. It is explicitly mentioned that middleware used must be thread safe. Doesn't this hold for all code?<p>* Can Goliath use multiple cores, or does one instance need to be spun up for each core?<p>* does it make sense to say, server a Sinatra app from Goliath?
评论 #2302734 未加载
评论 #2302732 未加载
mrinterwebabout 14 years ago
Just wanted to thank Ilya for em-synchrony, em-mysqlplus, em-http-request, goliath, and other gems that help to make developing evented ruby applications much easier.
vamseeabout 14 years ago
Pardon me if this is a dumb question: how do I hookup Rails (3.x) with it?
评论 #2306986 未加载
yatsykabout 14 years ago
Very timely release: I'm creating facade to other http API. Something like the sample in the article. I faced problem with slow responses from other party so I need to move to async request handling. Would you compare Goliath to EM HttpServer or other options?
评论 #2302544 未加载
boundlessdreamzabout 14 years ago
A noob question: If I have an expensive background job (say pdf generation) is there a way to make it async and use it with Goliath ?
评论 #2303012 未加载
评论 #2305254 未加载
评论 #2304269 未加载
otterleyabout 14 years ago
I'm still not convinced that Fiber-related gymnastics are massively superior to callback-related gymnastics, especially if you ever have to debug the magic under the hood (which I inevitably end up doing).<p>Can someone enlighten me?
评论 #2335059 未加载
moleculeabout 14 years ago
sounds awesome.<p>also noteworthy: postrank has been running ruby19 fiber'd webserver in production "for well over a year"?<p>cool!
评论 #2303366 未加载
sshilloabout 14 years ago
Know of any async postgres drivers out there?
评论 #2303424 未加载