Comment by p2detar

Comment by p2detar 2 days ago

2 replies

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?

NewJazz 2 days ago

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

foreigner 2 days ago

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