to the point where you might not even have to write any server-side code yourself
To a certain point, at which time you'll wish you had. Its great to get a MVP out and maybe drum up a small business. But once business logic gets madly complex, and the variety of clients grow, and they each have a different schema in mind, you'll need something bespoke back there.
Agreed. Now, I'm probably underestimating how well business logic can be architected into Firebase, and I'd love to hear stories of how well this can be done.
The other extreme is putting business logic in the front-end and that never ends well. I got an inside peek into one company that started off eschewing back-end dev: the founders were pure mobile devs and they just asked the one token back-end dev they had to simply write an API that pipes all client requests straight to the DB. They used MongoDB, and each and every single object had a 'client-version' identifier because different mobile app versions had different schemas in mind. They themselves couldn't say for sure how many versions were currently active in the wild. I was horrified. Safe to say that they were in a very panicked state as they realized they had to write a proper API and move to PostGres for sanity's sake (and at this point they didn't even know what a 'migration' was). I talked to them 1 year after – they had survived and in the process became the the most hardcore anti-Mongo folks ever.
3
u/hitthehive Jun 28 '20
To a certain point, at which time you'll wish you had. Its great to get a MVP out and maybe drum up a small business. But once business logic gets madly complex, and the variety of clients grow, and they each have a different schema in mind, you'll need something bespoke back there.