Examples

Build with the MYRA Stack

Runnable demos that go from schema to socket.

Each example is a standalone project with codegen, build steps, and real output.

Java 25+ Gradle Maven FFM

Quick start

  1. Install Java 25 and Git.
  2. Clone the examples repository.
  3. Pick an example folder.
  4. Run codegen, then run the app.
git clone https://github.com/mvp-express/examples.git

On Windows, use gradlew.bat or mvnw.cmd instead of ./gradlew and ./mvnw.

Myra Codec Examples

Schema driven serialization with zero-copy flyweights.

Codec Gradle

Order Book Snapshot

Encode and decode a full market snapshot with repeated bids and asks, optional fields, and metadata.

  • Repeated levels and nested writers
  • Optional fields with presence checks
  • JSON driven payloads
View example
Codec Gradle

Portfolio Builder

Nested legs, repeated tags, optional comment fields, and binary attachments.

  • Nested repeated messages
  • Enums and Utf8View
  • Binary attachments
View example
Codec Gradle

Telemetry Stream

A compact telemetry payload with repeated latencies, enums, and optional note and payload fields.

  • Repeated scalar fields
  • Optional payloads
  • MemorySegment handling
View example

Codec + Transport Examples

Ping and pong over Myra Transport with registered buffers.

Transport Gradle

Ping Pong (Gradle)

Client and server using Myra Transport with registered buffers and a generated codec payload.

  • TransportConfig + NIO backend
  • Registered buffer pools
  • Ping/pong lifecycle
View example
Transport Maven

Ping Pong (Maven)

The same ping/pong demo wired for Maven users, including exec goals and preview flags.

  • Maven wrapper flow
  • Explicit exec commands
  • Ping/pong round trip
View example

Need help running the demos?

Jump into the community for questions, tips, or contributions.

Visit Community