I think developers should be more careful while choosing technologies. If you know MongoDB well and are comfortable taking backups, managing replicas, sharding etc etc then it might be a good idea to setup a custom solution. But if it's something really simple or you don't want to manage things yourself then go for a managed solution like Firebase. But then you need to make sure that you can transfer the data to a different storage in case of emergency.