DEV Community

Cover image for Golang: Firebase Realtime Database CRUD operations
Raksha for Canopas Software

Posted on

Golang: Firebase Realtime Database CRUD operations

Wanna learn how to perform firebase real-time database CRUD operations using GoLang?

Have you ever faced a situation where you want the latest data on multiple places as soon as it gets updated?

Imagine you’re developing a quiz application that has 2 interfaces web and mobile app, and you need to maintain the actual score of the user at the same time.

It’s terrible to think of your database(MySQL/NoSQL) for bringing the latest data and updating the cart on both the platform(website and mobile app), as it will continuously trigger the server for the latest update.

The databases will not give updated data without doing an API(HTTP) call.

There comes real-time interaction in the picture.

Firebase's real-time database saves the data and also informs all the clients that are configured to receive a real-time update, as and when the data gets updated.

Here's what you'll learn today.

  • Configure firebase DB
  • Setup database rules
  • Generate and configure the service account key
  • Initialize firebase DB instance
  • Add/Update data in firebase
  • Get data from firebase
  • Delete data from firebase

You can learn more about it from canopas.blog

Top comments (0)