Summary
In this chapter, we learned how to use CAP theorem to choose the right database to store data. This theorem helped us to take into consideration important guarantees when designing distributed data storage in a distributed system at the edge. In this chapter, we also learned about different relational and non-relational databases. We gained practical knowledge on how to set up and deploy various database paradigms such as relational, key-value, document-oriented, and graph databases. In the next chapter, we are going to focus on the time series database Prometheus, which stores data in the form of values and time and can be used to implement useful monitoring dashboards for devices at the edge.