Autochartist / oneZero / Financial data · Engineering and benchmark
Keeping time-series data usable when records arrive late
An 8allocate engineer helped redesign the market-data pipeline and preserve existing broker integrations during a Java-to-Python API migration.
Business case
Autochartist supplies market analytics to brokers. Its pattern-recognition services depend on chronological price records for each financial instrument. Provider feeds can deliver older records after newer ones, particularly when they resend data after an interruption.
The team wanted to consolidate a design that used more than 125 queues. It also needed broker integrations to keep working as parts of the analytics API moved from Java to Python.
What we delivered
The new design routed inputs through a shared AWS SQS queue. The 8allocate engineer implemented a Valkey buffer that sorts available records by event time for each instrument and accepts late arrivals that may contain price corrections.
For the API migration, the engineer mapped legacy endpoints to their Python equivalents, maintained selected behaviours expected by brokers and added compatibility tests.
Implementation
How it worked
Timestamped data processing and API compatibility
Redesigned market data pipeline
Market data feedsProviders send timestamped price candles, including late arrivals.
Shared SQS queueSQS Standard delivers events to the Lambda processor.
Lambda and ValkeyBuffers available events by instrument and event time and accepts late records.
PostgreSQL and analyticsPersists records and supplies downstream market analytics.
Separate broker API migration
Existing broker integrationsClients depend on selected legacy Java API behaviours.
Endpoint mapping and testsMatch the expected request and response behaviour.
Python APIPreserves compatibility for the selected legacy endpoints.
Two workstreams are shown. The shared queue and event-time buffer describe the redesigned pipeline. Parsing throughput was measured in a benchmark.
Technical notes
The pipeline used Python, AWS Lambda, SQS, Valkey and PostgreSQL. The buffer accepts late corrections, and storage can accept a repeat write for the same instrument and timestamp.
The team separately tested recovery and documented how queue retry timing could delay processing after a failover.
The API compatibility work was a separate workstream. It maintained selected legacy endpoints and tested behaviour broker integrations depended on.
Results
Business outcomes
The ordering buffer made it possible to process available records in chronological order by instrument and accept late corrections. The API migration retained selected legacy endpoints so existing broker integrations could continue using them.
125+ queues
Starting point for the consolidation design.
~25,900 records/s
Parsing benchmark at concurrency 10. Records were price candles, which summarize trading over a fixed interval.
Compatibility tested
Selected legacy API behaviours were preserved during migration.
The throughput figure comes from a parsing test. The project material did not establish how many feeds moved to the new pipeline or the impact on production throughput or signal quality.