Amazon ElastiCache
ElastiCache can improve overall performance of the application In-Memory Data Cache - The primary purpose of an in-memory key-value store is to provide ultra-fast and inexpensive access to copies of data. What Should be Cached ? - Speed and Expense need to be considered - its slower to get data from databases than from cache - Data and Access Pattern - No point to cache rapidly changing or seldom accessed data - Staleness - Cached data is stale data - application tolerance for stale data need to be considered Consider caching your data if: it is slow or expensive to acquire it is accessed with sufficient frequency it is relatively static or staleness is not an issue Redis - Redis sorted lists - allow for Gaming leader boards - Can use ZADD and ZREVRANGEBYSCORE eg: ZADD leaderboard 132 Robert ZADD leaderboard 231 Sandra ZREVRANGEBYSCORE leaderboard +inf -inf Redis Publisher/Subscribe...