Hi, I am looking for the right technologies to create a live score system for a cricket match. I like the look of RoR as I will be able to build up team/player statistics, use TDD and MVC. I''m learning Ruby/RoR. The system is mainly for use at cricket matches. The scorer enters the score into the database, everyone who has a wireless enabled device gets the updated score sheet. I need to be able to handle a large number of users (from tens to potentially tens of thousands) most can be expected to be viewing one of a few pages (score for current game). Should I be considering some sort of broadcast protocol or will HTTP be best? I fancy running it on a small linux box and was considering a wireless router running OpenWRT and RoR. Anyone done this? Thanks Adrian -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
We do live cricket and football scores with team statistics for a large client. We use RoR and update the page by using js on a timer to pull the json data and update the page. You can see it here ( http://scorecard.cricket.betfair.com/ ) There is no magic to this, big box, fat pipe, thin code. Pay close attention to the database design and be prepared to write raw SQL to get the database performance. Only when you cannot sweat out any more performance look at caching. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Adrian Wadey wrote: [...]> > I need to be able to handle a large number of users (from tens to > potentially tens of thousands)[...]> I fancy running it on a small linux box and was considering a wireless > router running OpenWRT and RoR. Anyone done this?AFAIK a wireless router will not have the computing power necessary to run Rails with decent performance for tens of thousands of users, at least if you''re talking about the $50 boxes you put in your house. You''ll want something a bit faster. However, if I understand your use case correctly (which I may not), Rails may be overkill. If it''s really just a scoreboard for spectators already at the match, I suspect you don''t need most of what Rails gives you. Maybe Sinatra -- or even a simple PHP script or two -- would be more suitable.> > > > Thanks > AdrianBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser wrote:> Adrian Wadey wrote: > [...] > > > > I need to be able to handle a large number of users (from tens to > > potentially tens of thousands) > [...] > > I fancy running it on a small linux box and was considering a wireless > > router running OpenWRT and RoR. Anyone done this? > > AFAIK a wireless router will not have the computing power necessary to > run Rails with decent performance for tens of thousands of users, at > least if you''re talking about the $50 boxes you put in your house. > You''ll want something a bit faster. > > However, if I understand your use case correctly (which I may not), > Rails may be overkill. If it''s really just a scoreboard for spectators > already at the match, I suspect you don''t need most of what Rails gives > you. Maybe Sinatra -- or even a simple PHP script or two -- would be > more suitable.As well as the score board (which I expect to be the most used) I want people to be able to get live stats/graphs etc. as the match proceeds. I think RoR will be ideal for all the functionality I want. I don''t expect a home router to be able to handle 10K users but want to make sure I''m able to head in the right direction. Initial use would be for (maybe) 10+ users at my local club. I''d like to start on a small lower power box as we don''t have a mains supply :) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.