Skip to main content

Data Persistence

  • Chapter
  • First Online:
Go Recipes
  • 1791 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics