Is there anyone used to use firebase for big project
I used to use firebase, but later moved. Most of complex project I use Postgre SQL and Mongodb. Cached data on redis. Firebase is a serverless. It is produced for small and medium needs.
Currently, my company use firebase for Stock application
Firbase (Realtime database) – Is firebase suitable for big project? Surely, it not!
If you are consider to use firebase for big application and store complete data on firebase. I hope these things below is useful for you.
If you need to build an e-commerce app and use firebase to store data, it has WishList feature. These users can add mutil-product to WishList as long as they don’t overlap. How do you build the storage structure in Firebase to make this feature work the best:
Each user has a “wish_list” key, which contains the products they like. This solution is the easiest, simply just add the object. Need realtime just listen in wish_list of user logged in. However, when we update the product (price, product status), we have to scan through all the users to update the product in their wish_list. It takes a lot of time and the bandwidth and data lose consistency very quickly. But this way the data is not flattened, not the best practice.
Create a separate WishList out, in each item has the UserID key to know who it is. This is the same way with solution 1, but the thing is not to go through all the users, update the product much faster. However, this way is need realtime for WishList with a single logged in user is not. The client always receives the event whenever any user on the system interacts with WishList. This has a significant effect on performance.
Do RDBMS, only remember Product IDs. This way there are many types of implementations: the productIDs array on each user, a separate object to map the UserID and the ProductID. Either way, when we get product information on the WishList is very troublesome.
Should we use Firebase for large applications? Actually yes, but it is part of the system, not all. For example: The sales app can use Firebase for chatting with shop owners, updating realtime order status.
Conclusion: Large application, very few people use serverless, if you do not want later to pay expensive to sit back.