Go Server-less with Firebase.


In simple terms, Serverless architecture is a programming paradigm that focusses on coding functions for web-endpoints directly rather than going through the whole process of setting up servers. After servers setup routing requests, defining REST and then creating methods for GET, POST and PUT.  With Firebase you just need to code the method body, everything else is provided off the shelf from the Firebase service. With the help of Firebase you can create a realtime application in record time by only focusing at the Frontend.

Firebase Services

Firebase Services can be divided into two groups

Services offered by Firebase

Realtime Database and Auth


Here I want to discuss more about Realtime Databases , I love this feature the most , as a software developer I need to put lot of effort in accessing and requesting data from database , and traditional databases only response when you ask them for data. But this scenario is easily managed with the help of realtime databases , they provide response automatically when there’s a change in database . Let understand this more as a software guy.

Most databases require you to make HTTP calls to get and sync your data. Most databases give you data only when you ask for it.

When you connect your app to Firebase, you’re not connecting through normal HTTP. You’re connecting through a WebSocket. WebSockets are much, much faster than HTTP. You don’t have to make individual WebSocket calls, because one socket connection is plenty. All of your data syncs automatically through that single WebSocket as fast as your client’s network can carry it.

Firebase sends you new data as soon as it’s updated. When your client saves a change to the data, all connected clients receive the updated data almost instantly.

Authentication (Auth)

Firebase Auth is another interesting service with ease the way you authenticate and validate user.

Firebase Authentication provides backend services, easy-to-use SDKs, and ready-made UI libraries to authenticate users to your app.

Normally, it would take you months to set up your own authentication system. And even after that, you would need to keep a dedicated team to maintain that system. But if you use Firebase, you can set up the entire system in under 10 lines of code that will handle everything for you, including complex operations like account merging.

You can authenticate your app’s users through the following methods:

  • Email & Password
  • Phone numbers
  • Google
  • Facebook
  • Twitter
  • & more!

Using Firebase Authentication makes building secure authentication systems easier, while also improving the sign-in and onboarding experience for end users.

Firebase Authentication is built by the same people who created Google Sign-in, Smart Lock, and Chrome Password Manager.

At the end you must be thinking of starting with Firebase , you just need a Google Account to start with Firebase , on Signing in to the account you will be moved to Firebase Console , which is pretty much self explanatory. 

Firebase also provide Phone Authentication services and its free upto 10,000 verification per month (OTP SMS). If you need to know more about the Firebase development , then please comment below, I will try to come up with more articles related to firebase development.   

One thought on “Go Server-less with Firebase.”

Leave a Reply

Your email address will not be published. Required fields are marked *