Indeed we see this even comes for free with some stacks like Next.js, in which you can define an api (BFF) to interface with the primary backend.
On the surface may sound weird but in practice has actually been pretty great when used mindfully.
On the surface may sound weird but in practice has actually been pretty great when used mindfully.
Writing your BFF in the same codebase, sharing types, and parsing incoming data on the server without filling up the client bundle is a fab experience.