logoalt Hacker News

p2detarlast Sunday at 9:01 PM2 repliesview on HN

We have a BFF and were considering for a while to go with GQL but eventually scrapped the idea: it seemed like a lot of work on the BE side.

But, we are quite constraint on resources, so now even the BFF seems to consume more and more BE development time. Now we are considering letting the FE use some sort of bridge to the BE's db layer in order to directly CRUD what it needs and therefore skip the BFF API. That db layer already has all sorts of validations in place. Because the BE is Java and the FE is js, it seems the only usable bridge here would be gRPC. Does anyone have any other ideas or has done anything in this direction?


Replies

foreignerlast Sunday at 10:13 PM

Consider how authorization is going to work. You can't trust the client!

NewJazzlast Sunday at 10:06 PM

Postgrest and hasura are like the quintessential "some sort of bridge to the BE's db layer".