Improve the productivity of teams using SBE, the high-performance binary encoding

Teams choose Simple-Binary-Encoding (SBE) for its exceptional performance, but using it optimally and safely requires experience. The Aeron team, which maintains the SBE reference implementation on Github, has incorporated their extensive knowledge into the SBE Domain Mapper. By embedding best practices into the SBE Domain Mapper, teams can reduce development time and operational risks, accelerating ROI and gaining a competitive advantage.

Introducing the SBE Domain Mapper

Discover the SBE Domain Mapper for Java, a new Aeron Premium productivity tool that turns Simple Binary Encoding (SBE) messages into high‑level domain events and method call, so you get all the performance of SBE without the complexity. Built by the Aeron team in collaboration with Adaptive, it bakes in hard‑earned best practices to help teams ship faster, safer, and with fewer bugs. Generate proxies and adapters that auto‑update as schemas evolve, protect against buffer overruns, enforce correct field ordering, and validate data at the source.

With a performance‑first design—including zero‑copy techniques like Aeron’s tryClaim API, you reduce boilerplate, avoid common pitfalls (flyweight misuse, schema breakages, truncated messages), and standardise coding style across projects while keeping a clean separation between infrastructure and business domain. If you’re on Aeron Premium, you can start using it today and move to production with confidence.

 

Alongside reducing the lines of code a team needs to maintain, the SBE Domain Mapper addresses several common issues, including:

  • SBE field ordering: Ensures correct access order for variable-length fields and repeating groups, preventing message corruption and misinterpretation. [Find out more].
  • Flyweight safety: Prevents accessing flyweight decoders beyond their data lifetime, avoiding incorrect data reads and potential system divergence.
  • Truncated message attacks: Protects against buffer overrun exploits, ensuring safe use of SBE both internally and externally.
  • Field validation: Ensures all field values adhere to the schema and SBE specification.
  • Performant implementation: Leverages zero-copy Aeron APIs (e.g. “try claim”) to minimize copying overhead. [Find out more]
  • Consistency across teams and projects: Facilitates standardized patterns across codebases.
  • Rapid schema development: Automatically updates adapter and proxy code in response to schema changes.

SBE Domain Mapper for Java - Proxy & Adapter generation - Aeron
SBE Domain Mapper for Java – Proxy & Adapter Generation

Benefits of the SBE Domain Mapper

Increase your team’s velocity while keeping confidence in the results.

  • Avoid costly effort: Minimize development time and maintenance costs.
  • Mitigate security risks: Safeguard your application against vulnerabilities on public endpoints.
  • Ensure service reliability: Prevent outages and maintain business continuity.
  • Gain a competitive edge: Optimize performance while focusing on business logic.

Operational Considerations

  • Availability: Available as an Aeron Premium feature.
  • Alpha version: This is an alpha version. Find more information about our alpha, beta, and stable builds here.

Aeron SBE Domain Mapper for Java

For a detailed overview of the SBE Domain Mapper for Java, download the datasheet:

  1. Jack Beezer Product Manager Adaptive

    Jack Beezer Product Manager
    Adaptive | Aeron

    LinkedIn LinkedIn profile

    Jack is Product Manager for Aeron at Adaptive, leading the roadmap for Aeron Premium and Aeron Sequencer, powering low-latency, mission-critical trading systems across global capital markets.

Further reading

Blog Discover SBE: Simple Binary Encoding with Zach Bray

An Aeron deep dive that covers SBE’s copy-free encoding, native type mapping, streaming access, field-order checks, DTOs, and schema evolution considerations.

Documentation Warnings

This documentation demonstrates how incorrect variable-length field order corrupts messages, then explains generated precedence checks and their runtime trade-offs in production.

Documentation How to avoid buffer copies when sending

This cookbook guidance shows how Publication.tryClaim reserves log-buffer space, avoids copying, and requires commit or abort before unblocking occurs after timeout.

Case study 4OTC – Building ultra-low-latency FX & digital asset connectivity services with Aeron Transport using IPC and SBE

The 4OTC’s case study details Aeron and SBE supporting modular connectivity, IPC messaging, sharding, replay-driven debugging, and low-latency digital asset markets.