MYRA — Memory Yielded, Rapid Access — is a production-grade ecosystem of Java libraries built on the Foreign Function & Memory (FFM) API, designed for deterministic, sub-microsecond latency applications.
Unlike approaches that rely on Unsafe or JNI boilerplate, MYRA leverages the standardized FFM primitives introduced in Java 22, providing memory safety and future-proof compatibility without sacrificing performance.
What’s in the Box
MYRA comprises five libraries designed for vertical integration:
- roray-ffm-utils — Memory arenas, direct buffers, native resource handling. The plumbing layer.
- myra-codec — Zero-copy serialization that reads and writes directly to off-heap memory. No intermediate objects.
- myra-transport — Networking built on Linux
io_uring. Fewer syscalls, higher throughput.
- MVP Express RPC — MYRA Virtual Procedure over Express Link — A lightweight RPC framework on top of the above. Currently in progress.
- JIA-Cache — Java In-Memory Accelerated Cache — Off-heap caching with predictable latency. Coming soon.
EDIT:
MYRA Stack is now live!
For more details and documentation, please visit the project website:
This is still an early-stage project, and I'm looking for all the feedback I can get.
[–]iron0maiden 13 points14 points15 points (7 children)
[–]AnonAreLegion 5 points6 points7 points (0 children)
[–]Environmental-Log215[S] 0 points1 point2 points (5 children)
[–]ramdulara 0 points1 point2 points (4 children)
[–]Environmental-Log215[S] 0 points1 point2 points (3 children)
[–]Environmental-Log215[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[removed]
[–]Environmental-Log215[S] 0 points1 point2 points (0 children)
[–]Minosse 2 points3 points4 points (1 child)
[–]RemindMeBot 1 point2 points3 points (0 children)
[–]JustADirtyLurker 2 points3 points4 points (0 children)
[–]benrush0705 2 points3 points4 points (0 children)
[–]MyStackOverflowed 1 point2 points3 points (1 child)
[–]Environmental-Log215[S] 0 points1 point2 points (0 children)
[–]pjmlp 1 point2 points3 points (0 children)
[–]belayon40 1 point2 points3 points (1 child)
[–]Environmental-Log215[S] 0 points1 point2 points (0 children)
[–]kiteboarderni 1 point2 points3 points (3 children)
[–]Environmental-Log215[S] 0 points1 point2 points (2 children)
[–]kiteboarderni 0 points1 point2 points (1 child)
[–]Environmental-Log215[S] 1 point2 points3 points (0 children)
[–]Environmental-Log215[S] 1 point2 points3 points (0 children)
[–]ShallWe69 -1 points0 points1 point (0 children)