Description
eRPC is an RPC framework written in Go that is meant to be efficient, extensible and easy to use. It can be used for RPC services, microservices, peer-to-peer systems, instant messaging and games. One peer can provide the same API package for both the server and the client, and the framework has layered abstractions for peers, sessions and sockets, routers, handlers and contexts, messages, protocols, codecs and plugins. Messages have an HTTP-like format with a header and a body. The body can use codecs for Protobuf, Thrift, JSON, XML, form data or plain text. Several message protocols are included, such as a default binary protocol, JSON, Protobuf, Thrift and HTTP, and it supports push messages as well as call and reply. The transport layer uses non-blocking sockets and I/O multiplexing, supports several network types including TCP, Unix sockets, KCP, QUIC and WebSocket, and lets you set buffer sizes and a maximum message size. Plugins add features such as authentication, heartbeats, a proxy for unknown methods and a secure channel. The client redials automatically after a disconnection, and the logging system can record inputs and outputs and raise alerts on slow operations.…
Highlights
- Go RPC framework for services and peers
- Protobuf, Thrift, JSON and more codecs
- TCP, Unix sockets, KCP, QUIC and WebSocket
- Plugins for auth, heartbeat and proxy
- Client redials after disconnection
Ratings & Reviews
No ratings yet
Be the first to rate Erpc.
People also visit
Erpc FAQ
What is eRPC?
An efficient, extensible RPC framework written in Go, for services, microservices and peer-to-peer communication.
Is it free?
Yes. It is an open-source project on GitHub.
What version of Go do I need?
Go 1.18 or later, according to the README.
Which data formats can it use?
Message bodies can use Protobuf, Thrift, JSON, XML, form and plain text codecs.
Which network types are supported?
tcp, tcp4, tcp6, unix, unixpacket, kcp, quic, WebSocket and evio.
Does it reconnect automatically?
Yes. The README says the client session automatically redials after a disconnection.
What are the best Erpc alternatives?
Popular alternatives to Erpc include RPC Anywhere, Kraken and Rust Libp2p. See all Erpc alternatives

