Rate Engine Microservice

FX Platforms Trading Systems
High-performance FX rate aggregation and distribution service handling 10,000+ requests per second.

Provided Technologies

Go GraphQL Redis Kubernetes AWS

A specialized microservice handling FX rate aggregation from multiple liquidity providers, intelligent rate selection, and distribution to downstream services with sub-millisecond latency.

The Challenge

The client's existing rate infrastructure was a bottleneck—built as a monolithic component, it couldn't scale to meet growing demand. They needed a dedicated service that could aggregate rates from multiple providers, apply business logic, and serve thousands of concurrent requests without breaking a sweat.

Technical Architecture

We built the service in Go for maximum performance, with an in-memory rate cache updated via WebSocket connections to liquidity providers. The service implements circuit breakers for provider failover and publishes rate updates to downstream consumers via Redis pub/sub.

Key Features

  • Multi-provider rate aggregation from 12 liquidity sources
  • Intelligent rate selection with configurable strategies
  • Sub-5ms response time at p99
  • Automatic failover with circuit breaker pattern
  • GraphQL API for flexible querying
  • Real-time rate streaming via WebSockets

Results

The service handles 10,000+ requests per second with p99 latency under 5ms. Provider failover is automatic and transparent to consumers. Rate freshness improved from 5-second updates to real-time streaming.

Technologies Used

Go, GraphQL, Redis, Kubernetes, Prometheus, Grafana