3 ms·
>decoding and encoding of messages between client and server You can generate the message types and communication functions from a shared schema, e.g. gRPC/Gra
by realharo 6y ago
>decoding and encoding of messages between client and server
You can generate the message types and communication functions from a shared schema, e.g. gRPC/GraphQL/Swagger and many others, which will also lead to looser coupling and hopefully proper API version/change management.
I feel like unless you're using JavaScript/TypeScript on the server, most of the benefits of a shared language and framework will be negated by the lack of easy access to the web frontend ecosystem. (This may not be true for isolated shared modules that are oblivious to the UI, e.g. validation logic, where the surface area between it and the rest of the client code is maybe one or two functions.)