We like database listeners and we use Firebase. We like these so much that we have been putting plenty in our code at some point and we quickly understood that was not a good idea.

First to set up a listener with Firebase Real-Time database, you just need to use the “.on()” function provided by Firebase library and define 3 parameters:

An ‘OnAdded’ function that will be called each time a new entry will be added into the database path you defined, an ‘OnModify’ and ‘OnDelete’ function.

You will find this so easy and useful when building a reactive application…


You want to use Firebase but you don’t have a bank account full of money?

Prepare yourself for not being able to pay your bills and go to jail… or read further!

When we built our last app, we, as most developers would do, looked at the pricing table and the different Firebase Pricing plans we had there. This looked very reasonable first.

Unfortunately, quickly we found that building a simple Chat application with firebase was easy, but we also found that this could easily turn into thousands of dollars bill with just few users logged in and chatting….


teamblers.com
teamblers.com

When we built our last app, we did not want to spend time in buying servers or Kubernetes instances on the cloud. And spend days or weeks in building either images, servers, setting these up, configuring these,…

But still!! Like everyone, we needed to have:

  • Our own database,
  • a backend,
  • a front end,
  • a data storage and
  • have all these pieces scalable…

So what?

We decided to use Firebase:

  • our own database would be then the Real-time database,
  • our backend would be firebase functions,
  • our front end would be hosted by firebase hosting and
  • our storage server would be Firebase…

Bertrand Gonzague

Developer / Designer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store