MessagePack-RPC is an inter-process messaging library that uses MessagePack for object serialization.
Clone or download
kuenishi Merge pull request #81 from yanick/patch-1
add Perl implementation
Latest commit 4607831 May 4, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
haskell haskell: fix dependency of network and thread safety Apr 4, 2011
idl Rewrite to be bundler-based. Apr 3, 2011
NOTICE add Mar 19, 2010 add Perl implementation Apr 5, 2017
feature-async.png modify markdown and add image Aug 17, 2013
feature-pipeline.png modify markdown and add image Aug 17, 2013 Update Apr 26, 2017


Extremely efficient object serialization library. It's like JSON, but very fast and small.

What's MessagePack?

MessagePack is a binary-based efficient object serialization library. It enables to exchange structured objects between many languages like JSON. But unlike JSON, it is very fast and small.

Typical small integer (like flags or error code) is saved only in 1 byte, and typical short string only needs 1 byte except the length of the string itself. [1,2,3] (3 elements array) is serialized in 4 bytes using MessagePack as follows:

require 'msgpack'
msg = [1,2,3].to_msgpack  #=> "\x93\x01\x02\x03"
MessagePack.unpack(msg)   #=> [1,2,3]

MessagePack-RPC is cross-language RPC library for client, server and cluster applications. Because it releases you from complicated network programming completely and provides well-designed API, you can easily implement advanced network applications with MessagePack-RPC.

require 'msgpack/rpc'
class MyHandler
  def add(x,y) return x+y end
svr =
svr.listen('', 18800,

require 'msgpack/rpc'
c ='',18800)
result =, 1, 2)  #=> 3

Getting Started

Usage and other documents about implementations in each language are found at the web site.


Learn More