The module mmm-rpc
provides an flexible and powerful solution for RPC (remote procedure calls).
Following the command-pattern you can implement custom RpcRequests`s and call them asynchronous from any Java client including web-browsers via TeaVM. On the server-side you only need to implement a `RpcHandler
that handles your RpcRequest
and produces the according result.
-
support for different payload formats for free (switch between XML,YAML, or JSON or support all in parallel with no extra effort)
-
type-safe, easy, asynchronous and reactive communication via HTTP2
-
mimimum code for maximum outcome
-
security build in by default (authorization, CSRF protection, etc.)
For motivation and details see the documnetation.