Company
Date Published
Author
Neal Patel
Word count
926
Language
English
Hacker News points
None

Summary

Alpaca, a developer-first API for stock, options, and crypto trading, has introduced significant performance enhancements to its Order Management System (OMS) by leveraging Redpanda, a unified streaming data platform compatible with Apache Kafka APIs. The new OMS, version 2.0, boasts 100x faster order processing and consistently low latency, even during periods of high trading volume, by maintaining account states entirely in memory and using a distributed Write Ahead Log (WAL) for durability and recovery. This architecture allows for efficient request processing, account validation, market venue routing, and execution report processing, while complex order triggers are supported through a sequential processing model. The system's scalability is further enhanced by horizontally scalable OMS nodes and stateless load balancers, which enable swift order execution and reduced overhead. Alpaca expresses gratitude to the Redpanda team for their support and plans to continue improving its OMS to further reduce processing times and enhance data throughput, while recommending Redpanda's platform for its speed and ease of deployment.