Apache Fory is a multi-language serialization framework that enables fast, compact binary encoding of domain objects across Java, Python, C++, Go, Rust, JavaScript, and other supported languages.
Fory addresses the problem of efficiently exchanging structured data between systems written in different languages while preserving object semantics. It works directly with idiomatic domain objects in each language—Java classes, Python dataclasses, Go structs, Rust structs—rather than forcing users into wrapper types. The framework uses a schema IDL that supports shared and circular references, allowing developers to define a contract once and generate native code for each target language. For same-language workloads, it provides native serialization modes: a high-performance Java replacement for JDK serialization, Hessian, Kryo, and FST; and a Python mode faster and more compact than pickle and cloudpickle. It also offers a row format for zero-copy field access without rebuilding complete objects, and Fory JSON for maximum-throughput Java JSON serialization.
Fory suits teams building polyglot systems that need reliable cross-language data exchange with minimal overhead, or Java and Python projects seeking faster native serialization than standard libraries. The framework is particularly valuable when object identity and circular references matter, or when payload size and throughput are critical. The README emphasizes performance benchmarks showing substantially higher throughput than common alternatives in Java workloads.
The project maintains active development across multiple language implementations with consistent feature parity. Work spans the full stack from core serialization logic through language-specific code generation and runtime optimizations. The codebase includes specialized formats and performance-focused variants like the row format and JSON framework, indicating sustained investment in covering diverse use cases. Testing and benchmarking infrastructure receives ongoing attention to validate performance claims across languages and workloads.