← All stories
● Covered by 1 source · 1 reportMedium impact1 neutral

Agoda Migrates Hotel Price Cache from SQL Server to DragonflyDB for Performance and Scaling

🔄 Updated 9d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Agoda migrated its hotel Price Cache from SQL Server to DragonflyDB.
  • The previous SQL Server setup used 72 shards and faced scaling issues.
  • DragonflyDB improved P99 read latency by approximately eight times.
  • The new system handles 300,000 reads and 1.5 million writes per second.

Migration to DragonflyDB

Agoda has moved its tier-one hotel Price Cache from a 72-shard Microsoft SQL Server deployment to DragonflyDB. This change addresses the growing volume of reads and writes, and aims to simplify the scaling process for the cache, which stores about 1.5 TB of volatile pricing data.

Performance Improvements

Following the migration, Agoda reported an approximately eightfold improvement in P99 read latency. DragonflyDB now serves about 300,000 requests per second at around 8 milliseconds P99 latency. The system also processes approximately 1.6 million writes per second at around 10 milliseconds P99 latency.

Challenges with Previous Architecture

Agoda's prior architecture required application-level shard routing across 72 SQL Server shards. Scaling involved predefined hardware increments and manual shard remapping and data migration. The team found that continuously adding resources to SQL Server was not a viable long-term strategy due to cost and operational complexity.

Evaluation and Implementation

Agoda evaluated DragonflyDB based on its shared-nothing, multithreaded architecture, Redis compatibility, cluster-based scaling, and built-in key expiration, which aligned with the Price Cache workload's heavy reliance on MGET and SET operations. The migration was incremental, starting with a 1 TB DragonflyDB instance and eventually expanding to a three-shard-per-cluster design to hold the full 1.5 TB dataset.

Before fully shifting customer traffic, Agoda implemented dual reads, where SQL Server continued to serve requests while the Price API asynchronously retrieved data from DragonflyDB. This allowed for parity checks, with both supplier counts and price-data lengths achieving over 99.9% parity. Customer traffic was then gradually moved to DragonflyDB using an A/B experiment.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~26 min · 21 stories · Sep 23

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

Agoda replaced its 72-shard Microsoft SQL Server-based hotel Price Cache with DragonflyDB, an in-memory datastore, to handle increasing read and write volumes and simplify scaling. This migration resulted in an approximately eightfold improvement in P99 read latency and better management of its 1.5 TB volatile pricing data.