Ready to get started with TiDB?
The most advanced distributed SQL database for modern applications.
Started in 2013, Bolt is an on-demand mobility company, supporting 100 million users across 500 cities. Bolt is at the center of private mobility in the EMEA region. The company offers services across ride sharing, local delivery, and vehicle rental. Recently valued at $8.4 billion, Bolt has experienced 400% growth since the pandemic, making it the fastest growing company in Europe.
For starters, adding a column in their MySQL database could take up to a week on a loaded 1 terabyte (TB) table. To scale with the business, they had to rethink development, deployment, and how to scale their applications.
AWS and Kubernetes were instrumental in their scaling challenges. However, you can’t scale a database technology (MySQL) when it is not architected to do so—not at Bolt’s scale. Operating and maintaining their MySQL databases with fast-changing new microservices became “a waking nightmare.”
Additionally, to support its millions of customers, the company has incredibly high expectations for system uptime and disaster recovery. But again, their MySQL database was too fragile to survive disasters. That means they would occasionally lose data, even though they deployed a multi-master cluster like Galera to enhance the system’s availability.
Bolt had been a heavy MySQL shop for some time. The company used it as its main database. However, as the business expanded, MySQL was unable to keep up with the increasing workload. In short, the database had become difficult to scale, operate, and maintain.
Today, Bolt’s engineering team operates thousands of microservices, 400+ schema, several hundred TBs of data, all on AWS. Business growth has pushed the engineering team to the limit, while the operational burden continued to accumulate around managing scalability and availability.
Bolt needed a database solution that could scale dynamically on both reads and writes while providing strong consistency. To accommodate their agile development teams, they also needed a solution that was open source and integrated with their data pipeline built on Apache Kafka.
To ease their operational burden, they wanted a relational database architected for AWS. With a global customer base, their database has to have zero downtime during maintenance and upgrade windows. Finally, their required solution also had to provide exceptional cost efficiency.
Bolt spent quite a bit of time exploring new solutions. Vitess was at one point a strong contender. However, it turned out that this database clustering system required too many changes to Bolt’s applications—all while having similar operational issues to MySQL. Additionally, Vitess had limited MySQL compatibility.
After much testing, Bolt decided on modernizing MySQL with TiDB, an advanced open-source distributed SQL database for the most demanding modern applications. They chose TiDB for the following reasons:
One of the technical wins the Bolt team highlighted: They saw an average compression rate of 3 when migrating their data from MySQL to TiDB. This means 3 TBs of data on a MySQL database becomes 1 TB after migrating to TiDB due to optimized storage while experiencing higher availability and resiliency. On top of that, they can now run TiDB on AWS ARM64 for better price performance.
As of October 2022, Bolt has deployed seven TiDB clusters storing dozens of TBs of data and hundreds of schemas:
“We leverage TiDB today as the store of record for our most critical applications, including microservices supporting order creation, commerce, and payment processing,” said Boris Savelev, Senior Engineering Manager at Bolt. “On average, we are processing 35K QPS on TiDB. TiDB gives the engineering team the confidence to scale effectively and efficiently on AWS, and the performance and consistency needed serving a global customer base.”
Not only was moving to TiDB necessary to scale with the business, it gave Bolt the ability to scale their cluster flexibly across a range of AWS compute & storage services (EC2, S3, EBS, NVMe, local storage, in the future EKS). TiDB’s distributed architecture also allows Bolt to take advantage of the granularity of Amazon EC2 instance types. This allows them to architect their applications for elasticity and cost efficiency.
The most advanced distributed SQL database for modern applications.