msgpack-rpc-pythonMessagePack RPC | |
Download |
msgpack-rpc-python Ranking & Summary
Advertisement
- License:
- The Apache License 2.0
- Price:
- FREE
- Publisher Name:
- Masahiro Nakagawa
- Publisher web site:
- https://github.com/msgpack/
msgpack-rpc-python Tags
msgpack-rpc-python Description
msgpack-rpc-python is an 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. (3 elements array) is serialized in 4 bytes using MessagePack as follows:require 'msgpack'msg = .to_msgpack #=> "\x93\x01\x02\x03"MessagePack.unpack(msg) #=> 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 endendsvr = MessagePack::RPC::Server.newsvr.listen('0.0.0.0', 18800, MyHandler.new)svr.runrequire 'msgpack/rpc'c = MessagePack::RPC::Client.new('127.0.0.1',18800)result = c.call(:add, 1, 2) #=> 3Getting StartedUsage and other documents about implementations in each language are found at the web site.Product's homepage
msgpack-rpc-python Related Software