
Firebase is a mobile and web application development platform developed by Firebase, Inc. in 2011, then acquired by Google in 2014.
- Firebase is a platform which can power your app's backend
- Hosting
- Authentication
- Realtime Database
- Firebase enables you to build cross-platform native mobile and web apps with it's Android, iOS, and JavaScript SDKs.
- You can also connect firebase to your existing backend using our server-side libraries or our REST API.
Founders are James Tamplin, Andrew Lee, It was founded in september 2011
- It is very simple and user friendly.
- No need for complicated configuration.
- It offers simple control dashboard.
- Offers number of useful services.
- It offer data is real-time.
- Hosting
Firebase Hosting provides fast and secure hosting for your web apps and your static and dynamic content.
-
Authentication
- Firebase Authentication provides backend services, easy-to-use SDKs, and ready-made UI libraries to authenticate users to your app.
- It supports authentication using passwords, phone numbers, popular federated identity providers like Google, Facebook and Twitter, etc.
-
Real-time Database
- The Firebase Realtime Database is a cloud-hosted NoSQL database that lets you store and sync data between your users in realtime.
- Firebase automatically updates connected clients and store and sync data in real-time across all connected clients and also representing JSON objects or data
Note: Try Cloud Firestore, the latest realtime, scalable NoSQL database from Firebase and Google Cloud Platform.
- Push notifications(FCM/GCM)− Firebase Cloud Messaging(FCM) is the new version of GCM. It inherits the reliable and scalable GCM infrastructure, plus new features! If you are integrating messaging in a new app, start with FCM.
- Firebase Analytics− Google Analytics for Firebase is a free app measurement solution that provides insight on app usage and user engagement. provides free, unlimited reporting on up to 500 distinct events.
- Firebase Storage− Firebase Storage lets you upload and read raw files to and from the Cloud Storage.
- Firebase Test Lab for Android− Firebase Test Lab is a cloud-based app-testing infrastructure. you can test your Android or iOS app across a wide variety of devices and device configurations, and see the results—including logs, videos, and screenshots—in the Firebase console.
- Firebase offers two cloud-based, client-accessible database that support realtime data syncing
- Cloud Firestore offers additional functionality, performance, and scalability on an infrastructure designed to support more powerful features in future releases
Key | Realtime Database | Cloud Firestore |
---|---|---|
Realtime and offline support | Offline support for mobile clients on iOS and Android only. | Offline support for iOS, Android, and web clients. |
Querying |
|
|
Writes and transactions |
|
|
Reliability and performance |
|
|
Scalability |
|
|
Security |
|
|
Pricing | Charges only for bandwidth and storage, but at a higher rate. | Charges primarily on operations performed in your database (read, write, delete) and, at a lower rate, bandwidth and storage. |
You may also like - Node.js Interview Questions
There are different types of event available in the Firebase:
- child_added − This event type will be triggered once for every player and every time a new player is added to our data.
- child_changed − This event type is triggered when the data has changed.
- child_removed − This event will be triggered once every time a child is removed.
When a signed-out user uses an app feature that requires authentication with Firebase, sign in the user anonymously by completing the following steps:
Ref - for more details visit Firebase Official Documentation
Firebase Hosting gives you a fast, secure, and reliable way to host your app's static assets (like HTML, CSS, JavaScript, and media files) and serve your dynamic content.
Ref - for more details visit Firebase Official Documentation
You may also like - Learn how to deploy a react app to a subdirectory?
FCM: FCM stands for Firebase Cloud Messaging.
GCM: GCM stands for Google Cloud Messaging .
- Costs: Firebase free plan is limited to 50 Connections and 100 MB of storage.
- Hosted solution: Firebase is a hosted solution, so You don’t host the data, Firebase does. You don’t have root access to the location where your data is stored etc
You may also like - React.js Interview Questions