I can't quite wrap my head around blocking directives.Here is a gist https://gist.github.com/webdev/6626171.If I add a loop EM.add_periodic_timer(1) { env.stream_send("\n") } that just flushes to the response then my main loop emits and flushes to the response as well.The moment I remove add_periodic_timer I stop getting my data in the response.Please help.
I'm building a long polling service with Redis pubsub with one channel per user. This thing should scale up to 1 million concurrent idle connections. Is it crazy or it should work?
I have read this https://groups.google.com/forum/#!topic/goliath-io/YFohhoaOmyk and it's very similar, however I have few questions.I haven't quite wrapped my head around EM timers for EM.run. Should I use timers for long polling or .run method?
Deployment wise: I'm planning to use Nginx to reverse proxy to Goliath, and put Nginx's behind AWS ELB. That should work right?
There is nothing weird about Goliath like i.e. Websockets and ELB right?
And that last but not least, what's a good way to benchmark and perf test Goliath.
ab, httperf, any other suggestions?
--
You received this message because you are subscribed to the Google Groups "Goliath.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to goliath-io+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.