Ruby on Rails Wednesday, October 8, 2014

On Wed, Oct 8, 2014 at 6:04 AM, LZ Olem <lzarrefolem@gmail.com> wrote:

> 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.

Heroku offers PostgreSQL only, so you might want to switch over
in development to avoid any incompatibilities.

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

This seems like a perfect example of premature optimization :-)

If you're really concerned, set up a test app on Heroku and fire up
jmeter or ab or something and see exactly how it performs. You may
find you have nothing to worry about.

FWIW,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAtMmpNi5m9CiGUqSeFP4AXkDLhvhGKhZyk-yLKuGb-_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment