Coinbase, a leading cryptocurrency exchange, has historically struggled to stay online during periods of extreme market volatility, particularly when Bitcoin prices surge or crash. However, the company announced on Monday that it has developed and deployed a machine learning model designed to predict traffic spikes and automatically scale its resources to prevent downtime and increase platform efficiency.
In a blog post, Coinbase explained that traditional scaling efforts often start too late—when traffic is already high—making it difficult to manage sudden surges. The new AI model aims to address this issue by predicting traffic spikes and triggering resource scaling before the surge hits.
The exchange noted that this AI solution has already demonstrated its effectiveness during recent periods of market volatility. “As traffic increased, so did our scale target, doubling twice a few hours before peak traffic,” Coinbase wrote. The model continued to adjust scaling based on daily usage patterns until volatility subsided, ensuring the platform remained stable throughout.
The AI model provides a signal with a 60-minute lead time before a predicted traffic spike. Coinbase had previously attempted to use a time-series forecasting model to predict traffic levels 60 minutes into the future, but found this approach ineffective due to the lag in underlying statistics. The new model instead focuses on a longer-term classification problem, leveraging external signals such as price fluctuations in major cryptocurrencies like Bitcoin and Ethereum to predict whether traffic will exceed a certain threshold in the next few hours.
A key insight from the model is that high cryptocurrency price volatility combined with rapidly increasing traffic significantly raises the likelihood of a traffic spike. The AI system was designed to balance between avoiding missed spikes and reducing false alerts, which is crucial because false alerts can waste resources, while missed spikes could result in system crashes during high-traffic periods.
Coinbase’s history with market volatility has been fraught with outages and technical issues. For instance, on May 14, 2024, the exchange experienced a major outage that lasted more than three hours, affecting both desktop and mobile platforms. Users encountered a ‘503 service temporarily unavailable’ message on the website and incorrect ‘planned maintenance’ notifications on the mobile app. Similar incidents occurred earlier that year during significant market movements, leaving many users unable to capitalize on their gains.
The new AI-driven scaling solution represents a significant step forward in Coinbase’s efforts to maintain platform stability during periods of intense market activity, potentially preventing the kind of outages that have plagued the exchange in the past.