melin-engine / melin
PublicDeterministic, replicated sequencer for latency-critical applications. Rust, io_uring, LMAX-inspired. Ships with an exchange core.
Melin is a high-performance, deterministic event sequencer designed for latency-critical financial applications. It provides a multi-threaded, event-sourced processing pipeline with durable journaling and synchronous replication, achieving sub-millisecond tail latency. Built in Rust using an LMAX-inspired architecture with lock-free disruptor rings, it includes a complete exchange core with order matching, account management, risk controls, and a FIX 4.4 protocol gateway. The system guarantees that every event is persisted, ordered correctly, and can be replayed to produce byte-identical state, making it suitable for trading engines, exchanges, and any application where data integrity and latency are paramount.
How It Works
You're building a financial system where every microsecond matters and losing even one transaction is unacceptable.
Melin is a special kind of event processor that guarantees every single event is recorded, ordered correctly, and can be replayed to rebuild exactly the same state.
Incoming orders rush through a multi-threaded pipeline where different stages work in parallel without waiting for each other, keeping latency rock-bottom.
One copy saved to disk, two copies kept in memory. Fastest option that still protects against single node failures.
Two complete copies saved to disk on separate machines before anything is acknowledged. For strict compliance requirements.
Everything comes packaged in Docker containers. You launch the server with one command and it connects to your network.
Your trading clients connect using the standard FIX 4.4 protocol. Melin's gateway translates their orders into events for the pipeline.
Orders are processed in under 600 microseconds even under heavy load. Every order is permanently recorded and replicated. If anything fails, you recover instantly with perfect state.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.