--
You received this message because you are subscribed to the Google Groups "pdxruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pdxruby+u...@googlegroups.com.
To post to this group, send email to pdx...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pdxruby/DB35A812-4874-4727-9067-BD30E9BC613E%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "pdxruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pdxruby+u...@googlegroups.com.
To post to this group, send email to pdx...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pdxruby/DB35A812-4874-4727-9067-BD30E9BC613E%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
To view this discussion on the web visit https://groups.google.com/d/msgid/pdxruby/CAJGBHR81heYTWsqas%2BCdAVWiNqtcfi0aF8%3DLzf_oQvg5%2By5ntQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pdxruby/CA%2B9eO6cXMgTqy__8LqP8i-h9irGSw%3DFhS7gPbEHRhB3y0XgHyw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pdxruby/CAMKTR6d0YJZmVZ5_9tTamqb%3DXFga9VFPFiz7ziokj2izw4XsYQ%40mail.gmail.com.
Jesse - Yes, my rudimentary testing methods were to open tabs in the browser, one at a time, and see the messages stop appearing. I'm curious to hear of any tools that would work well for this type of testing. Redis is an important part of this puzzle but I'm confused about which Redis gem I should be using: https://rubygems.org/search?query=redis
Markus - I'm using the latest MRI 1.9.3. I suppose MRI 2 may provide some better performance, but I don't think that's the issue here.Ragav - I did not know about the limit on persistent connections per domain! You were totally right. I opened only 5 tabs in 3 different browsers and my performance improved to 15 clients! Imagine that! I'm using the latest Thin server, so that's not an issue. By "reusing a Redis connection" I mean setting $redis = Redis.new() or memoizing the variable in a class method. Somehow I made it so I couldn't stop the server with control+c, I had to kill -9.Sean - I remember hearing Kyle talk about sinatra-synchrony. I've also seen a lot of Sinatra SSE examples using em-synchrony. However, there's not much explanation as to why and I'd rather not introduce EM as a dependency if I don't need to. Also it's my understanding that em-synchrony is so you can avoid callbacks. I also remember reading about how Kyle changed his mind about using sinatra-synchrony.Mike - Thanks for the link to Reel. There's even an example of using Reel for SSE. I's got a pretty similar DSL to Sinatra. I'll have to try it out.Kyle - Thanks for the advice. I'm not familiar with how to create a Redis connection thread pool. I haven't worked much with Redis in general. I noticed there's even a celluloid-redis gem. So I'm not sure what to do.Thanks everyone! To summarize my remaining questions:- How to load test Server Sent Events?
- What Redis gem should I be using?
- Is creating a new Redis subscribe block for each connection a good way to go? I'm making an assumption that the closed connections also close the Redis subscription. Or should I try to initialize a single/shared Redis subscription that pushes updates to an array of connections and manually remove them when they have been closed?
Thanks!--Andrew Havens
--
You received this message because you are subscribed to the Google Groups "pdxruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pdxruby+u...@googlegroups.com.
To post to this group, send email to pdx...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pdxruby/F216A990-F2DE-47B5-9C42-26A35374F6C3%40gmail.com.
--
You received this message because you are subscribed to the Google Groups "pdxruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pdxruby+u...@googlegroups.com.
To post to this group, send email to pdx...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pdxruby/F216A990-F2DE-47B5-9C42-26A35374F6C3%40gmail.com.
Mike - Thanks for the link to Reel. There's even an example of using Reel for SSE. I's got a pretty similar DSL to Sinatra. I'll have to try it out.
I know you said you are using the latest thin but without belabouring this further - The thin gemspec is a year old and as far as I know the streaming patch is only on the V2 branch (I could be wrong).