ruby on rails - Master slave replication with replica latency in mind -



ruby on rails - Master slave replication with replica latency in mind -

i working on ruby on rails application in production.

this application needs master/slave database replication.

i using octopus gem that.

the problem have staging env working past week or so, in staging env have setup alerts on amazon rds.

i see replica latency 10 seconds (it's 100 seconds sometimes).

how handle in application, thinking have several instances running, under load balancer, , have background jobs running (using resque)?

if looking simple master/slave replication of data, have considered doing @ database rather application level.

i run several master/slave , master/master setups using mysql replication, tends maintain replication latency low on reasonably fast wan connection. it's not synchronous, sounds that's not requirement in case.

ruby-on-rails ruby ruby-on-rails-3 master-slave

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -