Posts by Tags

alloy

Unified Observability: Migrating to Grafana LGTM Stack with Alloy

13 minute read

Published:

Migrated from deprecated Promtail to Grafana Alloy and upgraded to the complete Grafana LGTM stack (Loki, Grafana, Tempo, Mimir) for unified observability. Updated the Events Dashboard with real-time NATS event monitoring, preparing for a potential future migration to Grafana Cloud.

arbitrage

Pool Discovery Service: Triangular Arbitrage Support and Production Insights

15 minute read

Published:

Pool Discovery Service reaches production milestone with triangular arbitrage support (45 token pairs), completing the Quote Service Rewrite architecture. Observability reveals surprising market insights: SOL/USDT has 278B liquidity (vs SOL/USDC 226B), and forward/reverse pool discovery yields asymmetric results.

architecture

Pool Discovery Refactored: Bug Fixes, Architecture Simplification, and Comprehensive Testing

23 minute read

Published:

Pool Discovery Service undergoes major refactoring after discovering critical liquidity calculation bugs. Architecture simplified to focus solely on discovery, comprehensive test suite validates 716 unique pools across 13 DEXes, and extensive token pair support beyond LST tokens. Production metrics confirm improvements with proper liquidity tracking and accurate pool counting.

Happy New Year 2026! Quote Service Evolution: From 3 to 5 Microservices

16 minute read

Published:

🎉 Happy New Year 2026! Quote service evolution continues: splitting the quote-service into 3 specialized services (local, external, aggregator) for a total of 5 microservices with dual shared memory for ultra-fast IPC, batch streaming, and 100× faster oracle validation.

Pool Discovery Service: Triangular Arbitrage Support and Production Insights

15 minute read

Published:

Pool Discovery Service reaches production milestone with triangular arbitrage support (45 token pairs), completing the Quote Service Rewrite architecture. Observability reveals surprising market insights: SOL/USDT has 278B liquidity (vs SOL/USDC 226B), and forward/reverse pool discovery yields asymmetric results.

Quote Service Rewrite: Clean Architecture for Long-Term Maintainability

27 minute read

Published:

🎄 Merry Christmas! Planning a comprehensive rewrite of quote-service with clean architecture principles: 85% code reduction, 20x faster quotes, 4x better test coverage, and dramatically improved maintainability. Why we’re rebuilding the foundation for long-term success.

Quote Service Architecture: The HFT Engine Core

27 minute read

Published:

Deep dive into quote-service architecture: Go-powered quote engine with sub-10ms responses, gRPC streaming, NATS event publishing, Redis crash recovery, and 99.99% availability. The critical data layer powering our HFT pipeline.

Architecture Assessment: Sub-500ms Solana HFT System Design

28 minute read

Published:

Comprehensive architectural assessment of a production-grade Solana HFT system. Event-driven design, FlatBuffers zero-copy serialization, polyglot microservices, and 6-stream NATS architecture achieve sub-500ms execution with 87% CPU savings. Grade: A (93/100).

The Research Behind the Plan: Two Years and Three Prototypes

16 minute read

Published:

Five years of Solana development and three working trading prototypes inform the production system. This post provides context on that research journey, the lessons learned, and why the challenge itself is valuable regardless of outcome.

christmas

Quote Service Rewrite: Clean Architecture for Long-Term Maintainability

27 minute read

Published:

🎄 Merry Christmas! Planning a comprehensive rewrite of quote-service with clean architecture principles: 85% code reduction, 20x faster quotes, 4x better test coverage, and dramatically improved maintainability. Why we’re rebuilding the foundation for long-term success.

clean-architecture

Quote Service Rewrite: Clean Architecture for Long-Term Maintainability

27 minute read

Published:

🎄 Merry Christmas! Planning a comprehensive rewrite of quote-service with clean architecture principles: 85% code reduction, 20x faster quotes, 4x better test coverage, and dramatically improved maintainability. Why we’re rebuilding the foundation for long-term success.

design-patterns

Quote Service Rewrite: Clean Architecture for Long-Term Maintainability

27 minute read

Published:

🎄 Merry Christmas! Planning a comprehensive rewrite of quote-service with clean architecture principles: 85% code reduction, 20x faster quotes, 4x better test coverage, and dramatically improved maintainability. Why we’re rebuilding the foundation for long-term success.

dex

docker-compose

documentation

event-driven

Architecture Assessment: Sub-500ms Solana HFT System Design

28 minute read

Published:

Comprehensive architectural assessment of a production-grade Solana HFT system. Event-driven design, FlatBuffers zero-copy serialization, polyglot microservices, and 6-stream NATS architecture achieve sub-500ms execution with 87% CPU savings. Grade: A (93/100).

flatbuffers

Architecture Assessment: Sub-500ms Solana HFT System Design

28 minute read

Published:

Comprehensive architectural assessment of a production-grade Solana HFT system. Event-driven design, FlatBuffers zero-copy serialization, polyglot microservices, and 6-stream NATS architecture achieve sub-500ms execution with 87% CPU savings. Grade: A (93/100).

go

Happy New Year 2026! Quote Service Evolution: From 3 to 5 Microservices

16 minute read

Published:

🎉 Happy New Year 2026! Quote service evolution continues: splitting the quote-service into 3 specialized services (local, external, aggregator) for a total of 5 microservices with dual shared memory for ultra-fast IPC, batch streaming, and 100× faster oracle validation.

Quote Service Rewrite: Clean Architecture for Long-Term Maintainability

27 minute read

Published:

🎄 Merry Christmas! Planning a comprehensive rewrite of quote-service with clean architecture principles: 85% code reduction, 20x faster quotes, 4x better test coverage, and dramatically improved maintainability. Why we’re rebuilding the foundation for long-term success.

Quote Service Architecture: The HFT Engine Core

27 minute read

Published:

Deep dive into quote-service architecture: Go-powered quote engine with sub-10ms responses, gRPC streaming, NATS event publishing, Redis crash recovery, and 99.99% availability. The critical data layer powering our HFT pipeline.

Architecture Assessment: Sub-500ms Solana HFT System Design

28 minute read

Published:

Comprehensive architectural assessment of a production-grade Solana HFT system. Event-driven design, FlatBuffers zero-copy serialization, polyglot microservices, and 6-stream NATS architecture achieve sub-500ms execution with 87% CPU savings. Grade: A (93/100).

golang

grafana

Pool Discovery Service: Triangular Arbitrage Support and Production Insights

15 minute read

Published:

Pool Discovery Service reaches production milestone with triangular arbitrage support (45 token pairs), completing the Quote Service Rewrite architecture. Observability reveals surprising market insights: SOL/USDT has 278B liquidity (vs SOL/USDC 226B), and forward/reverse pool discovery yields asymmetric results.

Unified Observability: Migrating to Grafana LGTM Stack with Alloy

13 minute read

Published:

Migrated from deprecated Promtail to Grafana Alloy and upgraded to the complete Grafana LGTM stack (Loki, Grafana, Tempo, Mimir) for unified observability. Updated the Events Dashboard with real-time NATS event monitoring, preparing for a potential future migration to Grafana Cloud.

grpc

Quote Service Architecture: The HFT Engine Core

27 minute read

Published:

Deep dive into quote-service architecture: Go-powered quote engine with sub-10ms responses, gRPC streaming, NATS event publishing, Redis crash recovery, and 99.99% availability. The critical data layer powering our HFT pipeline.

hft

Quote Service Rewrite: Clean Architecture for Long-Term Maintainability

27 minute read

Published:

🎄 Merry Christmas! Planning a comprehensive rewrite of quote-service with clean architecture principles: 85% code reduction, 20x faster quotes, 4x better test coverage, and dramatically improved maintainability. Why we’re rebuilding the foundation for long-term success.

Quote Service Architecture: The HFT Engine Core

27 minute read

Published:

Deep dive into quote-service architecture: Go-powered quote engine with sub-10ms responses, gRPC streaming, NATS event publishing, Redis crash recovery, and 99.99% availability. The critical data layer powering our HFT pipeline.

Architecture Assessment: Sub-500ms Solana HFT System Design

28 minute read

Published:

Comprehensive architectural assessment of a production-grade Solana HFT system. Event-driven design, FlatBuffers zero-copy serialization, polyglot microservices, and 6-stream NATS architecture achieve sub-500ms execution with 87% CPU savings. Grade: A (93/100).

high-frequency

high-frequency-trading

Happy New Year 2026! Quote Service Evolution: From 3 to 5 Microservices

16 minute read

Published:

🎉 Happy New Year 2026! Quote service evolution continues: splitting the quote-service into 3 specialized services (local, external, aggregator) for a total of 5 microservices with dual shared memory for ultra-fast IPC, batch streaming, and 100× faster oracle validation.

infrastructure

Day’s Work: System Initializer Rename, LST Oracle Support, and Market Events

10 minute read

Published:

Three major improvements today: renamed event-preparer to system-initializer to reflect expanded capabilities, added production-grade LST token support with oracle price feeds and deviation detection, and implemented market event publishing for real-time trading data distribution.

ipc

Happy New Year 2026! Quote Service Evolution: From 3 to 5 Microservices

16 minute read

Published:

🎉 Happy New Year 2026! Quote service evolution continues: splitting the quote-service into 3 specialized services (local, external, aggregator) for a total of 5 microservices with dual shared memory for ultra-fast IPC, batch streaming, and 100× faster oracle validation.

jaeger

kubernetes

lessons-learned

The Research Behind the Plan: Two Years and Three Prototypes

16 minute read

Published:

Five years of Solana development and three working trading prototypes inform the production system. This post provides context on that research journey, the lessons learned, and why the challenge itself is valuable regardless of outcome.

lgtm

Unified Observability: Migrating to Grafana LGTM Stack with Alloy

13 minute read

Published:

Migrated from deprecated Promtail to Grafana Alloy and upgraded to the complete Grafana LGTM stack (Loki, Grafana, Tempo, Mimir) for unified observability. Updated the Events Dashboard with real-time NATS event monitoring, preparing for a potential future migration to Grafana Cloud.

loki

Unified Observability: Migrating to Grafana LGTM Stack with Alloy

13 minute read

Published:

Migrated from deprecated Promtail to Grafana Alloy and upgraded to the complete Grafana LGTM stack (Loki, Grafana, Tempo, Mimir) for unified observability. Updated the Events Dashboard with real-time NATS event monitoring, preparing for a potential future migration to Grafana Cloud.

market-data

Day’s Work: NATS Event Publishing and TypeScript Scanner Service Foundation

8 minute read

Published:

Published market events to NATS JetStream in the quote-service with comprehensive Grafana monitoring, and created a TypeScript scanner-service stub as the foundation for real-time trading opportunity detection. The TypeScript version will be implemented first, with a high-performance Rust version planned for later.

Day’s Work: System Initializer Rename, LST Oracle Support, and Market Events

10 minute read

Published:

Three major improvements today: renamed event-preparer to system-initializer to reflect expanded capabilities, added production-grade LST token support with oracle price feeds and deviation detection, and implemented market event publishing for real-time trading data distribution.

metrics

microservices

Happy New Year 2026! Quote Service Evolution: From 3 to 5 Microservices

16 minute read

Published:

🎉 Happy New Year 2026! Quote service evolution continues: splitting the quote-service into 3 specialized services (local, external, aggregator) for a total of 5 microservices with dual shared memory for ultra-fast IPC, batch streaming, and 100× faster oracle validation.

Quote Service Rewrite: Clean Architecture for Long-Term Maintainability

27 minute read

Published:

🎄 Merry Christmas! Planning a comprehensive rewrite of quote-service with clean architecture principles: 85% code reduction, 20x faster quotes, 4x better test coverage, and dramatically improved maintainability. Why we’re rebuilding the foundation for long-term success.

Architecture Assessment: Sub-500ms Solana HFT System Design

28 minute read

Published:

Comprehensive architectural assessment of a production-grade Solana HFT system. Event-driven design, FlatBuffers zero-copy serialization, polyglot microservices, and 6-stream NATS architecture achieve sub-500ms execution with 87% CPU savings. Grade: A (93/100).

migration

mimir

Unified Observability: Migrating to Grafana LGTM Stack with Alloy

13 minute read

Published:

Migrated from deprecated Promtail to Grafana Alloy and upgraded to the complete Grafana LGTM stack (Loki, Grafana, Tempo, Mimir) for unified observability. Updated the Events Dashboard with real-time NATS event monitoring, preparing for a potential future migration to Grafana Cloud.

monitoring

Unified Observability: Migrating to Grafana LGTM Stack with Alloy

13 minute read

Published:

Migrated from deprecated Promtail to Grafana Alloy and upgraded to the complete Grafana LGTM stack (Loki, Grafana, Tempo, Mimir) for unified observability. Updated the Events Dashboard with real-time NATS event monitoring, preparing for a potential future migration to Grafana Cloud.

nats

Quote Service Architecture: The HFT Engine Core

27 minute read

Published:

Deep dive into quote-service architecture: Go-powered quote engine with sub-10ms responses, gRPC streaming, NATS event publishing, Redis crash recovery, and 99.99% availability. The critical data layer powering our HFT pipeline.

Architecture Assessment: Sub-500ms Solana HFT System Design

28 minute read

Published:

Comprehensive architectural assessment of a production-grade Solana HFT system. Event-driven design, FlatBuffers zero-copy serialization, polyglot microservices, and 6-stream NATS architecture achieve sub-500ms execution with 87% CPU savings. Grade: A (93/100).

Day’s Work: NATS Event Publishing and TypeScript Scanner Service Foundation

8 minute read

Published:

Published market events to NATS JetStream in the quote-service with comprehensive Grafana monitoring, and created a TypeScript scanner-service stub as the foundation for real-time trading opportunity detection. The TypeScript version will be implemented first, with a high-performance Rust version planned for later.

new-year

Happy New Year 2026! Quote Service Evolution: From 3 to 5 Microservices

16 minute read

Published:

🎉 Happy New Year 2026! Quote service evolution continues: splitting the quote-service into 3 specialized services (local, external, aggregator) for a total of 5 microservices with dual shared memory for ultra-fast IPC, batch streaming, and 100× faster oracle validation.

observability

Pool Discovery Refactored: Bug Fixes, Architecture Simplification, and Comprehensive Testing

23 minute read

Published:

Pool Discovery Service undergoes major refactoring after discovering critical liquidity calculation bugs. Architecture simplified to focus solely on discovery, comprehensive test suite validates 716 unique pools across 13 DEXes, and extensive token pair support beyond LST tokens. Production metrics confirm improvements with proper liquidity tracking and accurate pool counting.

Pool Discovery Service: Triangular Arbitrage Support and Production Insights

15 minute read

Published:

Pool Discovery Service reaches production milestone with triangular arbitrage support (45 token pairs), completing the Quote Service Rewrite architecture. Observability reveals surprising market insights: SOL/USDT has 278B liquidity (vs SOL/USDC 226B), and forward/reverse pool discovery yields asymmetric results.

Unified Observability: Migrating to Grafana LGTM Stack with Alloy

13 minute read

Published:

Migrated from deprecated Promtail to Grafana Alloy and upgraded to the complete Grafana LGTM stack (Loki, Grafana, Tempo, Mimir) for unified observability. Updated the Events Dashboard with real-time NATS event monitoring, preparing for a potential future migration to Grafana Cloud.

Day’s Work: NATS Event Publishing and TypeScript Scanner Service Foundation

8 minute read

Published:

Published market events to NATS JetStream in the quote-service with comprehensive Grafana monitoring, and created a TypeScript scanner-service stub as the foundation for real-time trading opportunity detection. The TypeScript version will be implemented first, with a high-performance Rust version planned for later.

Day’s Work: System Initializer Rename, LST Oracle Support, and Market Events

10 minute read

Published:

Three major improvements today: renamed event-preparer to system-initializer to reflect expanded capabilities, added production-grade LST token support with oracle price feeds and deviation detection, and implemented market event publishing for real-time trading data distribution.

opentelemetry

optimization

oracle

performance

Happy New Year 2026! Quote Service Evolution: From 3 to 5 Microservices

16 minute read

Published:

🎉 Happy New Year 2026! Quote service evolution continues: splitting the quote-service into 3 specialized services (local, external, aggregator) for a total of 5 microservices with dual shared memory for ultra-fast IPC, batch streaming, and 100× faster oracle validation.

Quote Service Architecture: The HFT Engine Core

27 minute read

Published:

Deep dive into quote-service architecture: Go-powered quote engine with sub-10ms responses, gRPC streaming, NATS event publishing, Redis crash recovery, and 99.99% availability. The critical data layer powering our HFT pipeline.

pool-discovery

Pool Discovery Refactored: Bug Fixes, Architecture Simplification, and Comprehensive Testing

23 minute read

Published:

Pool Discovery Service undergoes major refactoring after discovering critical liquidity calculation bugs. Architecture simplified to focus solely on discovery, comprehensive test suite validates 716 unique pools across 13 DEXes, and extensive token pair support beyond LST tokens. Production metrics confirm improvements with proper liquidity tracking and accurate pool counting.

Pool Discovery Service: Triangular Arbitrage Support and Production Insights

15 minute read

Published:

Pool Discovery Service reaches production milestone with triangular arbitrage support (45 token pairs), completing the Quote Service Rewrite architecture. Observability reveals surprising market insights: SOL/USDT has 278B liquidity (vs SOL/USDC 226B), and forward/reverse pool discovery yields asymmetric results.

project-management

prometheus

Unified Observability: Migrating to Grafana LGTM Stack with Alloy

13 minute read

Published:

Migrated from deprecated Promtail to Grafana Alloy and upgraded to the complete Grafana LGTM stack (Loki, Grafana, Tempo, Mimir) for unified observability. Updated the Events Dashboard with real-time NATS event monitoring, preparing for a potential future migration to Grafana Cloud.

prototypes

The Research Behind the Plan: Two Years and Three Prototypes

16 minute read

Published:

Five years of Solana development and three working trading prototypes inform the production system. This post provides context on that research journey, the lessons learned, and why the challenge itself is valuable regardless of outcome.

quote-service

Happy New Year 2026! Quote Service Evolution: From 3 to 5 Microservices

16 minute read

Published:

🎉 Happy New Year 2026! Quote service evolution continues: splitting the quote-service into 3 specialized services (local, external, aggregator) for a total of 5 microservices with dual shared memory for ultra-fast IPC, batch streaming, and 100× faster oracle validation.

real-time

redis

Quote Service Architecture: The HFT Engine Core

27 minute read

Published:

Deep dive into quote-service architecture: Go-powered quote engine with sub-10ms responses, gRPC streaming, NATS event publishing, Redis crash recovery, and 99.99% availability. The critical data layer powering our HFT pipeline.

refactoring

Pool Discovery Refactored: Bug Fixes, Architecture Simplification, and Comprehensive Testing

23 minute read

Published:

Pool Discovery Service undergoes major refactoring after discovering critical liquidity calculation bugs. Architecture simplified to focus solely on discovery, comprehensive test suite validates 716 unique pools across 13 DEXes, and extensive token pair support beyond LST tokens. Production metrics confirm improvements with proper liquidity tracking and accurate pool counting.

Quote Service Rewrite: Clean Architecture for Long-Term Maintainability

27 minute read

Published:

🎄 Merry Christmas! Planning a comprehensive rewrite of quote-service with clean architecture principles: 85% code reduction, 20x faster quotes, 4x better test coverage, and dramatically improved maintainability. Why we’re rebuilding the foundation for long-term success.

Day’s Work: System Initializer Rename, LST Oracle Support, and Market Events

10 minute read

Published:

Three major improvements today: renamed event-preparer to system-initializer to reflect expanded capabilities, added production-grade LST token support with oracle price feeds and deviation detection, and implemented market event publishing for real-time trading data distribution.

reliability

Quote Service Architecture: The HFT Engine Core

27 minute read

Published:

Deep dive into quote-service architecture: Go-powered quote engine with sub-10ms responses, gRPC streaming, NATS event publishing, Redis crash recovery, and 99.99% availability. The critical data layer powering our HFT pipeline.

research

The Research Behind the Plan: Two Years and Three Prototypes

16 minute read

Published:

Five years of Solana development and three working trading prototypes inform the production system. This post provides context on that research journey, the lessons learned, and why the challenge itself is valuable regardless of outcome.

rust

Architecture Assessment: Sub-500ms Solana HFT System Design

28 minute read

Published:

Comprehensive architectural assessment of a production-grade Solana HFT system. Event-driven design, FlatBuffers zero-copy serialization, polyglot microservices, and 6-stream NATS architecture achieve sub-500ms execution with 87% CPU savings. Grade: A (93/100).

scanner

Day’s Work: NATS Event Publishing and TypeScript Scanner Service Foundation

8 minute read

Published:

Published market events to NATS JetStream in the quote-service with comprehensive Grafana monitoring, and created a TypeScript scanner-service stub as the foundation for real-time trading opportunity detection. The TypeScript version will be implemented first, with a high-performance Rust version planned for later.

scanner-framework

scanner-service

shared-memory

Happy New Year 2026! Quote Service Evolution: From 3 to 5 Microservices

16 minute read

Published:

🎉 Happy New Year 2026! Quote service evolution continues: splitting the quote-service into 3 specialized services (local, external, aggregator) for a total of 5 microservices with dual shared memory for ultra-fast IPC, batch streaming, and 100× faster oracle validation.

solana

Pool Discovery Refactored: Bug Fixes, Architecture Simplification, and Comprehensive Testing

23 minute read

Published:

Pool Discovery Service undergoes major refactoring after discovering critical liquidity calculation bugs. Architecture simplified to focus solely on discovery, comprehensive test suite validates 716 unique pools across 13 DEXes, and extensive token pair support beyond LST tokens. Production metrics confirm improvements with proper liquidity tracking and accurate pool counting.

Happy New Year 2026! Quote Service Evolution: From 3 to 5 Microservices

16 minute read

Published:

🎉 Happy New Year 2026! Quote service evolution continues: splitting the quote-service into 3 specialized services (local, external, aggregator) for a total of 5 microservices with dual shared memory for ultra-fast IPC, batch streaming, and 100× faster oracle validation.

Pool Discovery Service: Triangular Arbitrage Support and Production Insights

15 minute read

Published:

Pool Discovery Service reaches production milestone with triangular arbitrage support (45 token pairs), completing the Quote Service Rewrite architecture. Observability reveals surprising market insights: SOL/USDT has 278B liquidity (vs SOL/USDC 226B), and forward/reverse pool discovery yields asymmetric results.

Quote Service Rewrite: Clean Architecture for Long-Term Maintainability

27 minute read

Published:

🎄 Merry Christmas! Planning a comprehensive rewrite of quote-service with clean architecture principles: 85% code reduction, 20x faster quotes, 4x better test coverage, and dramatically improved maintainability. Why we’re rebuilding the foundation for long-term success.

Quote Service Architecture: The HFT Engine Core

27 minute read

Published:

Deep dive into quote-service architecture: Go-powered quote engine with sub-10ms responses, gRPC streaming, NATS event publishing, Redis crash recovery, and 99.99% availability. The critical data layer powering our HFT pipeline.

Architecture Assessment: Sub-500ms Solana HFT System Design

28 minute read

Published:

Comprehensive architectural assessment of a production-grade Solana HFT system. Event-driven design, FlatBuffers zero-copy serialization, polyglot microservices, and 6-stream NATS architecture achieve sub-500ms execution with 87% CPU savings. Grade: A (93/100).

Unified Observability: Migrating to Grafana LGTM Stack with Alloy

13 minute read

Published:

Migrated from deprecated Promtail to Grafana Alloy and upgraded to the complete Grafana LGTM stack (Loki, Grafana, Tempo, Mimir) for unified observability. Updated the Events Dashboard with real-time NATS event monitoring, preparing for a potential future migration to Grafana Cloud.

Day’s Work: NATS Event Publishing and TypeScript Scanner Service Foundation

8 minute read

Published:

Published market events to NATS JetStream in the quote-service with comprehensive Grafana monitoring, and created a TypeScript scanner-service stub as the foundation for real-time trading opportunity detection. The TypeScript version will be implemented first, with a high-performance Rust version planned for later.

The Research Behind the Plan: Two Years and Three Prototypes

16 minute read

Published:

Five years of Solana development and three working trading prototypes inform the production system. This post provides context on that research journey, the lessons learned, and why the challenge itself is valuable regardless of outcome.

Day’s Work: System Initializer Rename, LST Oracle Support, and Market Events

10 minute read

Published:

Three major improvements today: renamed event-preparer to system-initializer to reflect expanded capabilities, added production-grade LST token support with oracle price feeds and deviation detection, and implemented market event publishing for real-time trading data distribution.

streaming

system-design

tempo

Unified Observability: Migrating to Grafana LGTM Stack with Alloy

13 minute read

Published:

Migrated from deprecated Promtail to Grafana Alloy and upgraded to the complete Grafana LGTM stack (Loki, Grafana, Tempo, Mimir) for unified observability. Updated the Events Dashboard with real-time NATS event monitoring, preparing for a potential future migration to Grafana Cloud.

testing

Pool Discovery Refactored: Bug Fixes, Architecture Simplification, and Comprehensive Testing

23 minute read

Published:

Pool Discovery Service undergoes major refactoring after discovering critical liquidity calculation bugs. Architecture simplified to focus solely on discovery, comprehensive test suite validates 716 unique pools across 13 DEXes, and extensive token pair support beyond LST tokens. Production metrics confirm improvements with proper liquidity tracking and accurate pool counting.

tracing

trading

Pool Discovery Refactored: Bug Fixes, Architecture Simplification, and Comprehensive Testing

23 minute read

Published:

Pool Discovery Service undergoes major refactoring after discovering critical liquidity calculation bugs. Architecture simplified to focus solely on discovery, comprehensive test suite validates 716 unique pools across 13 DEXes, and extensive token pair support beyond LST tokens. Production metrics confirm improvements with proper liquidity tracking and accurate pool counting.

Pool Discovery Service: Triangular Arbitrage Support and Production Insights

15 minute read

Published:

Pool Discovery Service reaches production milestone with triangular arbitrage support (45 token pairs), completing the Quote Service Rewrite architecture. Observability reveals surprising market insights: SOL/USDT has 278B liquidity (vs SOL/USDC 226B), and forward/reverse pool discovery yields asymmetric results.

Quote Service Rewrite: Clean Architecture for Long-Term Maintainability

27 minute read

Published:

🎄 Merry Christmas! Planning a comprehensive rewrite of quote-service with clean architecture principles: 85% code reduction, 20x faster quotes, 4x better test coverage, and dramatically improved maintainability. Why we’re rebuilding the foundation for long-term success.

Quote Service Architecture: The HFT Engine Core

27 minute read

Published:

Deep dive into quote-service architecture: Go-powered quote engine with sub-10ms responses, gRPC streaming, NATS event publishing, Redis crash recovery, and 99.99% availability. The critical data layer powering our HFT pipeline.

Unified Observability: Migrating to Grafana LGTM Stack with Alloy

13 minute read

Published:

Migrated from deprecated Promtail to Grafana Alloy and upgraded to the complete Grafana LGTM stack (Loki, Grafana, Tempo, Mimir) for unified observability. Updated the Events Dashboard with real-time NATS event monitoring, preparing for a potential future migration to Grafana Cloud.

Day’s Work: NATS Event Publishing and TypeScript Scanner Service Foundation

8 minute read

Published:

Published market events to NATS JetStream in the quote-service with comprehensive Grafana monitoring, and created a TypeScript scanner-service stub as the foundation for real-time trading opportunity detection. The TypeScript version will be implemented first, with a high-performance Rust version planned for later.

The Research Behind the Plan: Two Years and Three Prototypes

16 minute read

Published:

Five years of Solana development and three working trading prototypes inform the production system. This post provides context on that research journey, the lessons learned, and why the challenge itself is valuable regardless of outcome.

Day’s Work: System Initializer Rename, LST Oracle Support, and Market Events

10 minute read

Published:

Three major improvements today: renamed event-preparer to system-initializer to reflect expanded capabilities, added production-grade LST token support with oracle price feeds and deviation detection, and implemented market event publishing for real-time trading data distribution.

triangular-arbitrage

Pool Discovery Service: Triangular Arbitrage Support and Production Insights

15 minute read

Published:

Pool Discovery Service reaches production milestone with triangular arbitrage support (45 token pairs), completing the Quote Service Rewrite architecture. Observability reveals surprising market insights: SOL/USDT has 278B liquidity (vs SOL/USDC 226B), and forward/reverse pool discovery yields asymmetric results.

typescript

Architecture Assessment: Sub-500ms Solana HFT System Design

28 minute read

Published:

Comprehensive architectural assessment of a production-grade Solana HFT system. Event-driven design, FlatBuffers zero-copy serialization, polyglot microservices, and 6-stream NATS architecture achieve sub-500ms execution with 87% CPU savings. Grade: A (93/100).

Day’s Work: NATS Event Publishing and TypeScript Scanner Service Foundation

8 minute read

Published:

Published market events to NATS JetStream in the quote-service with comprehensive Grafana monitoring, and created a TypeScript scanner-service stub as the foundation for real-time trading opportunity detection. The TypeScript version will be implemented first, with a high-performance Rust version planned for later.

websocket

zero-copy