Skip to content

SYS-04 · Golootlo (DECAGON) · 2019 — 2025

Elasticsearch Search Infrastructure

A read-optimized search and data layer that grew from powering 35+ APIs to serving 50+ customer-facing APIs with sub-500ms responses under 60K+ concurrent users.

ROLE — Designed the original layer and later redesigned it

response at 60K+ concurrency
<500ms
customer-facing APIs
50+
database load
−50%
data loss across 8M+ users
0

Overview

Orders, QR deals and merchant data were read far more than written. I designed a centralized Elasticsearch layer as the read-optimized source for customer-facing APIs, and later redesigned it for a much larger platform.

Architecture

  • Elasticsearch as the read-optimized data source behind customer-facing APIs (orders, QR deals, merchants).
  • Dual-database synchronization between MySQL and Elasticsearch, keeping data consistent across 8M+ users with zero data loss.
  • Redis caching and query optimization in front of the primary database.

Evolution

  • v1 (Software Engineer): powered 35+ APIs and reduced API response times by 50%.
  • v2 (Senior Software Engineer): redesigned to serve 50+ APIs at sub-500ms under 60K+ concurrent users, while improving search relevance.

Outcome

  • Sub-500ms responses under 60K+ concurrent users.
  • Database load reduced by 50% and API latency by 30%.

Technology

  • Elasticsearch
  • MySQL
  • Redis
  • Laravel
  • AWS