I'm developing a polling application that will deal with an average of 
1000-2000 votes per second coming from different users. In other words, 
it'll receive 1k to 2k requests per second with each request making a DB 
insert into the table that stores the voting data.

I'm using RoR 4 with MySQL and planning to push it to Heroku or AWS.

What performance issues related to database and the application itself 
should I be aware of?

How can I address this amount of inserts per second into the database?

EDIT

I was thinking in not inserting into the DB for each request, but instead 
writing to a memory stream the insert data. So I would have a scheduled job 
running every second that would read from this memory stream and generate a 
bulk insert, avoiding each insert to be made atomically. But i cannot think 
in a nice way to implement this.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/ed56937d-a3b8-4a85-abdf-520a06368399%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to