© Shiju Varghese 2016

Shiju Varghese, Go Recipes, 10.1007/978-1-4842-1188-5_6

6. Data Persistence

Shiju Varghese

(1)Chettiyadan House, Cheranalloor, India

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 ...

Get Go Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.