I am building a system backend with Django and PostgreSQL. So all the APIs are written using Django. Front end and Android app would request the API for any kind of data.
Now I need to keep some features on Android app realtime. So suppose if someone places an order for the Toy. The status of ToyAvailability becomes False. This should happen at the realtime on the Android app. Therefore, I am using Firebase as BaaS (Backend as a Service), as instructed on the firebase blog here is the link : firebase.com/blog/2013-03-25-where-does-firebase-…
Now I am in need of the best practices to apply firebase in existing app. If anyone has used this before. Please let me know if anyone has done it before.
Mario Giambanco
Director of User Experience Development
I use Firebase pretty extensively and have a fairly large app using it.
In your case, Firebase would replace PostgreSQL and Django would make API calls to Firebase instead.
So if you don't want to rip out PostgreSQL and start over - you'll have to make the backend make API calls to Firebase to write the data you want to be realtime (in addition to possibly writing it to PostgreSQL) and then the Android app reads from Firebase.
There is a python wrapper - https://github.com/mikexstudios/python-firebase
And if all else fails - strait up curl works also.