I have a website that get a lot of traffic on weekends. What visitors do on this site is - They answer quiz questions and submit as soon as possible.
My server gets a lot of traffic when the javascript tries to fetch question from the server and when they are trying to submit into the database.
The application is created using mysql and PHP. When my visitors submit, I want them to be able to submit to a single database and not multiple databases since an EBS volume can only be attached to one EC2 instance.
The traffic is much so I need more instance to support any running instances during traffic spike. What can I do to achieve such a high availability that provides me with single repository for all answers submitted by my visitors? Thank you.
You can use Amazon RDS. Basically, it's a DB outside an instance without a hard disk. You can set multiple instances to connect to your RDS.
You can also add ec2 instances for horizontal scaling so as to address your traffic spike problems.
You have different options to be able to scale your application:
Up to point 4 above, you should be able to do it all without modifying your application. To further scale up, there are a couple more things to look at:
Good luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With