Successful cloud products rely on a combination of patterns for static data, such as cache distribution, direct hosting, and web storage hosting. We will investigate patterns for data replication, in-memory caching, and sharding throughout this chapter. Persistence methods will also be reviewed for applicability to cloud native applications. This will help you to design your cloud infrastructure persistence layers. In this chapter, you will be able to select the right data service for the product as well as understand how to serve static content. Also, you'll see how indexing your data contributes to fast retrieval and gain an understanding of aggregating your data for compression purposes.
The following topics will be covered in this chapter in brief:
- General considerations:
- Vertical versus horizontal scaling
- Rate of change—static versus dynamic
- Relational data services:
- Transactional data
- CAP Theorem
- Aurora and MySQL
- Polyglot persistence...