Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using ElastiCache with RDS for improving read/write performance

I am using RDS on amazon with a MySQL interface. My application runs on EC2 nodes and read/update the database, but the number of reads and writes are too many and that reduces performance. Most of the time the number of connections exceed the allowed limit. I was considering using Elasticache to improve performance, however I did not find resources on web, how to configure database to use this effectively. Is this the best way to improve my read/write performance? Any suggestions?

like image 957
saeideh Avatar asked Jul 04 '12 20:07

saeideh


People also ask

How can an application use Amazon ElastiCache to improve database read performance?

Amazon ElastiCache improves the performance of web applications by allowing you to retrieve information from a fast, managed, in-memory system, instead of relying entirely on slower disk-based databases.

How does in-memory caching improve the performance of applications in ElastiCache?

In-memory caching improves application performance by storing frequently accessed data items in memory, so that they can be retrieved without access to the primary data store.

Which AWS service can be deployed to enhance read performance?

You can create one or more replicas of a given source DB instance and serve high-volume application read traffic from multiple copies of your data, thereby increasing aggregate read throughput. Read replicas are available in Amazon RDS for MySQL, MariaDB, PostgreSQL, and Oracle as well as Amazon Aurora.


1 Answers

You can't just "turn on" memcache. You need to write code that interacts with memcache, such that your database query results are cached in memcache. Take a look at this users guide -- I think it will give you a good idea for how memcache is used:

http://www.memcachier.com/documentation/memcache-user-guide/

like image 193
alexlod Avatar answered Oct 12 '22 22:10

alexlod