The Amazon Aurora Vs TiDB Comparison Guide To Find The Right Distributed Database For Your Requirements 1727203412
The Amazon Aurora Vs TiDB Comparison Guide To Find The Right Distributed Database For Your Requirements 1727203412
Amazon
Aurora
TiDB
A Guide to Distributed
Database Architectures
Table of Contents
Introduction 3
TiDB Architecture 4
Comparative Analysis 5
Scaling TiDB 6
Comparative Analysis 10
TiDB Reliability 13
Comparative Analysis 14
Placement Rules 15
Resource Control 16
TiDB Pricing 16
Comparative Analysis 17
Conclusion 18
Businesses are increasingly reliant on robust Amazon Aurora, part of Amazon Web
and scalable database solutions to manage Services (AWS), is a fully-managed relational
their growing data needs. Two prominent DBaaS available in both MySQL- and
technologies have emerged to offer unique PostgreSQL-compatible versions. It’s
features and capabilities: TiDB and Amazon typically used in a wide range of applications,
Aurora. from small-scale projects to large enterprise
systems. Its performance and compatibility
TiDB is an advanced open-source, distributed with existing MySQL and PostgreSQL
SQL database that’s MySQL compatible and applications make it a go-to choice for
can be deployed as a fully-managed, businesses looking to migrate their existing
Database-as-a-Service (DBaaS). TiDB is relational databases to the cloud.
designed to offer horizontal scalability, strong
consistency, and high availability. It also Both TiDB and Amazon Aurora offer
supports Hybrid Transactional/Analytical MySQL-compatible solutions that represent
Processing (HTAP) capabilities, allowing for significant advancements in database
both transactional and analytical processing technology. However, they cater to different
within the same database. TiDB stands out for needs and use cases. TiDB’s HTAP capabilities,
its high performance and scalability for both strong consistency, and read/write scalability
read and write workloads, making it a model make it ideal for real-time,
versatile choice for businesses dealing with data-intensive applications. On the other
large-scale, complex data scenarios. hand, Amazon Aurora’s read performance
and ease of management make it suitable
Typically, TiDB is used in scenarios where for a broad range of applications, particularly
businesses require strong consistency and where compatibility with MySQL or PostgreSQL
real-time analytics on a massive data is a high priority.
footprint. It’s well-suited for industries like
e-commerce, gaming, and financial services, This white paper dissects and evaluates the
where there is a need to handle large volumes distinct characteristics, performance metrics,
of transactions while simultaneously scalability options, cost-effectiveness, and
performing analytical queries on the same ease of use of both database platforms. It
dataset. Its cloud-native architecture also provides valuable insights for organizations
makes it a popular choice for organizations in their quest to optimize data management
who want the flexibility and scalability of cloud and operational efficiency.
computing.
TiDB, developed by PingCAP, offers a distributed SQL architecture that emphasizes horizontal
scalability across multiple scaling vectors. On the other hand, Amazon Aurora leverages an
approach similar to a traditional relational database but with significant enhancements for
storage scalability. These architectural distinctions underscore the varied approaches to data
management, scalability, and performance optimization. They also reflect the diverse needs and
challenges faced by modern businesses in data handling and processing.
TiDB Architecture
TiDB’s strength is found in its approach to separating compute and storage. The TiDB cluster
consists of three main components, as shown in the below diagram:
Comparative Analysis
Both TiDB and Amazon Aurora offer horizontal
scalability. Amazon Aurora’s compute tier is
reminiscent of a more traditional
single-primary, multi-read model. TiDB’s
architecture offers the benefit of a multi-write
and multi-read implementation. Additional
considerations include:
• Scalability: TiKV enables TiDB to scale horizontally with data volume. As the amount of data
grows, you can simply add more TiKV nodes to the cluster. This distributes the data across a
larger set of nodes, preventing any single node from becoming a bottleneck.
• Database sharding: TiKV automatically splits data into small, manageable chunks or “regions.”
As the data volume increases, these regions are distributed across the TiKV nodes in the
cluster, ensuring balanced data distribution and storage scalability.
The TiDB server is stateless and can be scaled concurrency through the TiDB server, and
out to increase the number of read and write addressing complex analytical workloads with
connections that can be handled concurrently. TiFlash. This multi-vector scalability makes
By adding more TiDB server nodes, the system TiDB a versatile and robust choice for busi-
can handle more concurrent requests, nesses facing diverse and evolving data
Workload Complexity
Scalability with TiFlash
TiFlash is a columnar storage extension of TiDB,
designed to efficiently process complex
analytical queries. It can also handle:
This scalability is achieved through two key components: Aurora’s distributed storage for data
voume and the addition of replica instances for read concurrency.
Single point of failure can affect the cluster, 100% A single point of failure affects only 1/n flow, RTO 30s
write traffic, RTO 120s
Applications require read-write separation Multi-point read and write, the application does not
need read-write separation
The compute layer in TiDB, represented by • Read replica failover: Amazon Aurora
the TiDB servers, is stateless. This means that enhances reliability through its read
these servers do not store any data replicas. In the event of a primary instance
themselves; instead, they process SQL queries failure, Amazon Aurora can promote a read
and interact with the TiKV nodes for data replica to a primary instance, minimizing
storage and retrieval. TiDB’s stateless downtime.
compute layer impacts overall reliability in the
following ways:
Comparative Analysis
TiDB’s distributed nature across multiple
components (i.e., TiKV, TiDB server, and TiFlash)
offers a high degree of fault tolerance and
data redundancy. On the other hand, Amazon
Aurora relies on its robust storage layer and
multi-zone replication for data durability. Both
systems also provide the following capabilities:
These features, unique to TiDB and not available in Amazon Aurora, allow for fine-grained control
over data placement and resource allocation, making TiDB an attractive option for scenarios
requiring complex multi-tenancy configurations.
Placement Rules
Placement Rules in TiDB are designed to control the physical location of data within the cluster.
On the other hand, Amazon Aurora, with its focus on read scalability and automated management
within the AWS ecosystem, is well-suited for applications with high read-to-write ratios. Its
architecture, emphasizing data volume scalability and read concurrency, makes it a strong
contender for businesses seeking a reliable, cloud-native relational database service with high
read concurrency. However, its limitations in write scalability and less granular control over
multi-tenancy compared to TiDB might be a deciding factor for certain use cases.
Ultimately, the choice between TiDB and Amazon Aurora will depend on the specific requirements of
the workload, the desired balance between read and write operations, and the need for advanced
multi-tenancy features.
Want to explore how leading companies are adopting TiDB over Amazon Aurora and other cloud
services? Check out our Customer Story page for detailed case studies.
Performance High throughput reads, suitable for High concurrency, high throughput
transactional workloads up to a limit reads and writes, supports HTAP
Security Secure by default with multiple layers Multi-level security features, including
of security encryption at rest and in transit
Management Fully-managed DBaaS with 24/7 sup- Fully-managed DBaaS with 24/7
port support
MySQL Compatibility Yes, compatible with MySQL protocol Yes, compatible with MySQL protocol
and syntax and syntax
Data Migration Supported through AWS Database Supported through TiDB Lightning and
Migration Service Data Migration tools
Backup and Restore Automatic backups and PiTR Automatic backups and PiTR