DDIA 01: Reliable, Scalable, and Maintainable Applications
Part I: Foundations of Data Systems
Reliable, scalable, and maintainable applications
The book examines how data systems work and how to build data-intensive applications. Many applications are limited by the amount of data they handle. Databases store data for later retrieval, caches speed up access, indexes locate records, and stream and batch systems process new data. Different requirements for performance, access patterns, and implementation motivate different systems. This chapter focuses on reliability, scalability, and maintainability.
Reliability
A reliable system keeps working through hardware faults, software faults, and human error.
- Use redundancy and rapid recovery for hardware faults.
- For software faults that can cascade, examine assumptions and interactions, test thoroughly, isolate processes, allow failure and restart, and monitor actual behavior.
- To reduce human error, simplify interfaces, separate environments for sandbox testing, test the whole system, make recovery fast, monitor performance and error rates, and train operators.
Reliability matters because people entrust systems with things they care about. Imagine an application that loses a user's family photographs when its database fails.