Solon's Nami RPC Client Lets Developers Call Remote Services as Local Java Beans
Nami is a declarative RPC client built into the Solon Java framework that allows developers to invoke remote services through a simple interface, eliminating manual HTTP wiring and serialization code. The framework organizes an RPC setup into three separate projects: a shared service interface, a server-side implementation, and a client-side consumer. On the server, annotating a class with @Remoting and @Mapping exposes it as a remote endpoint, while the consumer uses a @NamiClient annotation to auto-generate a proxy that handles the full network round trip. At the call site, remote method invocations look identical to local bean calls, with no HTTP client or JSON parsing code required. For production deployments, Nami also supports service discovery to avoid hardcoded URLs.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in