Connect microservices in different languages so they can call each other without writing manual network code.
Spread traffic automatically across multiple server instances using built-in load balancing.
Route service calls across data centers with automatic failover when a service goes down.
Replace hand-rolled HTTP calls between services with typed, auto-discovered remote procedure calls.
Requires a running Zookeeper or Consul instance for service discovery before any RPC calls work.
Motan is a framework built by Weibo (the Chinese social media company) that lets separate software services talk to each other over a network as if they were calling a local function. The underlying idea is called RPC, remote procedure call, which means one program can trigger a function in another program running on a different machine without needing to manually manage the network communication in between. The framework works across multiple programming languages. The core is written in Java, but companion projects cover Go, PHP, and Lua, so teams using different languages can still communicate through the same system. This matters when a company runs many services built in different languages and needs them to coordinate reliably. Motan handles several things that would otherwise be painful to build from scratch. It connects to service-discovery tools like Consul or Zookeeper, which are directories that keep track of where each service is running so callers can find them automatically. It also manages load balancing, spreading requests across multiple server instances, and can route traffic across different data centers. Both synchronous calls (wait for a reply before continuing) and asynchronous calls (send the request and move on) are supported. Setting up a basic server and client requires adding a few dependencies to a Java project and writing short XML configuration files that declare which service to expose and where to find it. The README walks through this step by step with working code examples, including how to enable async mode with a single annotation. The project is open source under the Apache 2.0 license and available on Maven Central, the standard package registry for Java projects.
← weibocom on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.