Home / Companies / Cloudflare / Blog / Post Details
Content Deep Dive

Introducing lua-capnproto: better serialization in Lua

Blog post from Cloudflare

Post Details
Company
Date Published
Author
Jiale Zhi
Word Count
1,198
Language
English
Hacker News Points
-
Summary

CloudFlare has adopted Cap'n Proto, a new serialization protocol, for its data centers worldwide due to its high performance compared to other serialization projects like JSON and Protocol Buffers. The company developed lua-capnproto, an open source Lua module for Cap'n Proto, as there was no existing one. This module provides fast data serialization and a simple API. It has been successfully implemented in production at CloudFlare. The author of the article also shared how to use lua-capnproto for serialization and deserialization, along with performance benchmarks comparing it to lua-cjson.