Abstract
When you build real-world applications, you might need to persist your application data into persistent storage. You can define the data model of your application using various Go types, especially structs. In most use cases, you might need to persist your application data into databases. This chapter shows you how to persist application data into databases such as MongoDB, RethinkDB, InfluxDB, and PostgreSQL. MongoDB is a popular NoSQL database that is widely used for many modern applications. RethinkDB is another NoSQL database that comes with real-time capabilities that allow you to build real-time web applications. Time series databases are becoming the next big thing in data management technologies, and hence this chapter includes recipes for working with InfluxDB, a popular time series database written in Go. This chapter also provides recipes for working with traditional SQL databases.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 Shiju Varghese
About this chapter
Cite this chapter
Varghese, S. (2016). Data Persistence. In: Go Recipes. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1188-5_6
Download citation
DOI: https://doi.org/10.1007/978-1-4842-1188-5_6
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-1189-2
Online ISBN: 978-1-4842-1188-5
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books