.jpg)
THE CHALLENGE
Scaling to meet Coinbase’s volatile traffic demand
While the cryptocurrency market can be volatile and unpredictable, leading exchanges must provide seamless performance irrespective of traffic levels. When Coinbase — one of the largest cryptocurrency exchanges in the United States — wanted to improve the user experience, its first step was to optimize its MongoDB database clusters to reduce downtime.
When Coinbase launched in 2012, it chose to use MongoDB hosted on Amazon Web Services. Since then, the company has grown from a few small database clusters to a fleet of roughly 700 clusters and has migrated to MongoDB Atlas with Atlas Data Federation powering its data warehousing pipeline.
Unlike traditional fintech companies, cryptocurrency exchanges are vulnerable to highly volatile and unexpected traffic. During periods of heavy demand, Coinbase’s largest clusters could take over an hour to scale. For the fast-moving cryptocurrency market, this lead time is unacceptable, as users suffer due to the performance degradation.
“When we see big traffic spikes, we need to scale our clusters as quickly as possible,” said Sean Hurley, Staff Software Engineer at Coinbase. “We can’t always be provisioned for peak capacity; we need to dynamically scale up and down with our traffic needs.”
OUR SOLUTION
Building a predictive scaling solution with MongoDB Atlas
Over the course of 90 days, Coinbase architected a MongoDB Atlas solution that would accelerate scaling for large clusters. “The MongoDB team has been really willing to engage and understand what we’re trying to accomplish,” said Hurley. “That collaboration has gone a long way.” First, Coinbase identified the clusters correlated with heavy user traffic, then used historical metrics to model how much capacity the clusters would need during traffic spikes.
