Ask HN: Just database over the internet as the only backend?
But taking it to further, just exposing raw Postgres sockets with TLS + row level security policies what would be the pros and cons of such an approach?
Main that I can think of:
1. Business logic would be all in clients (Flutter/React[Native] et al) hence updates would require updating those clients.
2. Database schema would have to be versioned and clients will have to check if they can continue with the version right now in production or exit with error message asking for an update.
3. Infrastructure wise, you'll just be running vanilla Postgres and that's it, there's no backend.
4. You would have NO API, you'd just have database.
5. For adding new parties, you'll be actually adding real Postgres users (or via some LDAP etc)
6. Workers? Background processing? That means inserting records into certain tables, picked up by processes on server side and computing results feeding back to the database.
Just seeking collective wisdom/experiences/opinions/stories on the subject if someone has tried this or what are other corner cases that might come up assuming that in every language there’s performant, good enough database driver (Postgres wire protocol) is available including in browsers (via Webassembly or without)
Thoughts?
[edited typos]