Safe Database Access
In the previous two chapters you saw how to access the file system to read and save information in a durable way. You’ve been given all the tools for dealing with either a custom file format or a treelike information representation such as JSON.
However, in most production system applications, you aren’t working with files. Instead, a database management system (DBMS) is used to store the application’s information and keep it safe. Furthermore, most DBMSs provide functionalities such as transactions, logging, and recovery and replication, which are quite useful for maintenance, protection against errors, and scalability. ...