Purpose
MessagePack Ruby is a pure Ruby implementation of the MessagePack binary serialization format. MessagePack is an efficient binary serialization format that enables exchange of data among multiple languages like JSON, but is faster and smaller.
This implementation provides:
-
Pure Ruby implementation (no C extension required)
-
Full compatibility with the MessagePack specification
-
Support for custom extension types
-
Thread-safe factory pattern for packer/unpacker reuse
-
Streaming unpacker for incremental parsing
-
Comprehensive timestamp support with nanosecond precision
Getting started
Core concepts
-
Serialization - Converting Ruby objects to binary format and back
-
Factory pattern - Thread-safe packer/unpacker management
-
Extension types - Custom type registration system
-
Buffer management - Efficient chunked binary data storage
-
Streaming - Incremental data parsing
Learn more
-
Getting started tutorial - Step-by-step introduction
-
Performance guide - Optimization techniques and best practices
-
API reference - Complete API documentation
External resources
-
MessagePack specification - Official format specification
-
MessagePack spec - Detailed format documentation
-
GitHub repository - Source code and issues