Mafiree logo
  • About
  • Services
  • Blogs
  • Careers
  • Products
    • orbit logo Orbit
    • streamer logo Xstreami
  • Contact
Schedule a Call
Menu
  • About
  • Services
  • Blogs
  • Careers
  • Products
    • orbit logo Orbit
    • streamer logo Xstreami
  • Contact
  • Schedule a Call
Database
Database Managed Database Services
MySQL MySQL
MySQL Consulting
MySQL Migration Services
MySQL Optimization & Query Tuning
MySQL Database Administration
MySQL Backup & Recovery
MySQL Security & Maintenance
MySQL Cloud Services (AWS RDS, Aurora, Google Cloud SQL, Azure)
MySQL for Ecommerce
MySQL High Availability & Replication
MongoDB MongoDB
MongoDB Consulting
MongoDB Migration Services
MongoDB Optimization & Query Tuning
MongoDB Database Administration
MongoDB Backup & Recovery
MongoDB Security & Maintenance
MongoDB Cloud (Atlas)
MongoDB Solutions by Industry
MongoDB High Availability & Replication
PostgreSQL PostgreSQL
PostgreSQL Consulting
PostgreSQL Migration & Upgrades
Performance Tuning & Query Optimization
PostgreSQL Administration & Managed Services
High Availability, Clustering & Replication
PostgreSQL Backup, Recovery & Disaster Planning
PostgreSQL Security, Compliance & Auditing
PostgreSQL for Analytics & Data Warehousing
PostgreSQL on Cloud & Containers
PostgreSQL Extensions & Open-Source Integrations
PostgreSQL for Every Industry
SQL Server MSSQL
MSSQL Consulting
MSSQL Migration Services
MSSQL Optimization & Query Tuning Services
MSSQL Database Administration Services
MSSQL Backup & Recovery Services
MSSQL High Availability & Replication Services
MSSQL Security & Compliance Services
MSSQL Performance Monitoring & Health Checks
MSSQL Solutions by Industry
Aerospike Aerospike
Aerospike Consulting
Aerospike Migration Services
Aerospike Performance Optimization & Tuning
Aerospike Backup & Recovery
Aerospike High Availability
Aerospike Cloud & Hybrid Deployments
Aerospike for Real-Time Applications (AdTech, FinTech, Retail, IoT)
Clickhouse Clickhouse
ClickHouse Consulting
ClickHouse Migration Services
ClickHouse Optimization & Query Tuning
ClickHouse Database Administration
ClickHouse Backup & Recovery
ClickHouse Security & Maintenance
ClickHouse Cloud Services (ClickHouse Cloud, AWS, GCP, Azure)
ClickHouse Solutions by Industry
ClickHouse High Availability & Replication
TiDB TiDB
TiDB Consulting
TiDB Administration & Maintenance
TiDB Security and Privacy Maintenance
TiDB Performance & Query Optimization
TiDB Migration Services
TiDB Backup & Disaster Recovery
TiDB High Availability Solutions
TiDB Solutions by Industry
TiDB Cloud Services
ScyllaDB ScyllaDB
ScyllaDB Consulting
ScyllaDB Administration & Maintenance
ScyllaDB Security and Privacy Maintenance
ScyllaDB Performance & Query Optimization
ScyllaDB Migration Services
ScyllaDB Backup & Disaster Recovery
ScyllaDB High Availability Solutions
ScyllaDB Solutions by Industry
ScyllaDB Cloud Services
DevOps
DevOps DevOps Services
Version Control Version Control
Kubernetes Kubernetes
Infrastructure Infrastructure Management
Web Servers Web Servers
Networking
Networking Networking Services
Basic Basic
Advanced Advanced
MySQL MySQL
MongoDB MongoDB
PostgreSQL PostgreSQL
MSSQL MSSQL
Aerospike Aerospike
Clickhouse Clickhouse
TiDB TiDB
ScyllaDB ScyllaDB
Version Control Version Control
Kubernetes Kubernetes
Infrastructure Infrastructure Management
Web Servers Web Servers
Basic Basic
Advanced Advanced
MySQL Consulting
MySQL Migration Services
MySQL Optimization & Query Tuning
MySQL Database Administration
MySQL Backup & Recovery
MySQL Security & Maintenance
MySQL Cloud Services (AWS RDS, Aurora, Google Cloud SQL, Azure)
MySQL for Ecommerce
MySQL High Availability & Replication
MongoDB Consulting
MongoDB Migration Services
MongoDB Optimization & Query Tuning
MongoDB Database Administration
MongoDB Backup & Recovery
MongoDB Security & Maintenance
MongoDB Cloud (Atlas)
MongoDB Solutions by Industry
MongoDB High Availability & Replication
PostgreSQL Consulting
PostgreSQL Migration & Upgrades
Performance Tuning & Query Optimization
PostgreSQL Administration & Managed Services
High Availability, Clustering & Replication
PostgreSQL Backup, Recovery & Disaster Planning
PostgreSQL Security, Compliance & Auditing
PostgreSQL for Analytics & Data Warehousing
PostgreSQL on Cloud & Containers
PostgreSQL Extensions & Open-Source Integrations
PostgreSQL for Every Industry
MSSQL Consulting
MSSQL Migration Services
MSSQL Optimization & Query Tuning Services
MSSQL Database Administration Services
MSSQL Backup & Recovery Services
MSSQL High Availability & Replication Services
MSSQL Security & Compliance Services
MSSQL Performance Monitoring & Health Checks
MSSQL Solutions by Industry
Aerospike Consulting
Aerospike Migration Services
Aerospike Performance Optimization & Tuning
Aerospike Backup & Recovery
Aerospike High Availability
Aerospike Cloud & Hybrid Deployments
Aerospike for Real-Time Applications (AdTech, FinTech, Retail, IoT)
ClickHouse Consulting
ClickHouse Migration Services
ClickHouse Optimization & Query Tuning
ClickHouse Database Administration
ClickHouse Backup & Recovery
ClickHouse Security & Maintenance
ClickHouse Cloud Services (ClickHouse Cloud, AWS, GCP, Azure)
ClickHouse Solutions by Industry
ClickHouse High Availability & Replication
TiDB Consulting
TiDB Administration & Maintenance
TiDB Security and Privacy Maintenance
TiDB Performance & Query Optimization
TiDB Migration Services
TiDB Backup & Disaster Recovery
TiDB High Availability Solutions
TiDB Solutions by Industry
TiDB Cloud Services
ScyllaDB Consulting
ScyllaDB Administration & Maintenance
ScyllaDB Security and Privacy Maintenance
ScyllaDB Performance & Query Optimization
ScyllaDB Migration Services
ScyllaDB Backup & Disaster Recovery
ScyllaDB High Availability Solutions
ScyllaDB Solutions by Industry
ScyllaDB Cloud Services
  1. Home
  2. > Blogs
  3. > TiDB
  4. > Scaling Databases Horizontally: A Solution for High-Concurrency Systems

Scaling Databases Horizontally: A Solution for High-Concurrency Systems

Blog post on how TiDB handles the OLAP requests without compromising OLTP

sukan September 20, 2023

Subscribe for email updates

Summarize with AI: ChatGPT Google AI Perplexity Claude Grok

In today’s dynamic landscape, effective data management is paramount. The demands of high concurrency and the exponential growth in data volume present formidable challenges, particularly in the context of horizontally scaling MySQL databases.

While deploying replicas can mitigate some of these challenges, scaling the single master poses intricate problems, often resulting in escalated IOPS costs—especially during the execution of resource-intensive analytical queries.

Faced with these formidable hurdles, our esteemed banking client embarked on a quest for a resilient warehousing solution.

After extensive discussions with our client to understand their specific requirements, we’ve identified TiDB as a promising candidate to address their scalability and performance needs.

The Power of TiDB

TiDB boasts a range of features that make it an ideal choice for our client’s operations:

Distributed Database

TiDB offers a distributed architecture that enables the seamless handling of large datasets, making it well-suited for applications with a substantial data footprint.

High Availability

Banking domain or any high critical system, downtime is not an option. TiDB ensures high availability, minimizing the risk of disruptions and ensuring that critical services remain accessible.

Horizontal Scalability

Scalability is a key concern when dealing with high-concurrency environments. TiDB’s horizontal scalability ensures that as data and user demands grow, the system can effortlessly expand to meet these requirements.

OLAP Support (HTAP)

TiDB supports Online Analytical Processing (OLAP), allowing our client to perform complex analytics queries without compromising system performance.

Our Suggested Solution

To maximize the benefits of TiDB while preserving existing MySQL infrastructure, we propose the following architecture:

Architecture Overview

Our architecture is designed with multiple stages in mind. Let’s take a closer look at the first stage:

Stage 1: TiDB Cluster

TiDB cluster consists of following components

TiDB Nodes: These nodes take the front seat, serving as the stateless components responsible for managing user interactions.

TiKV Nodes: All your data finds a secure and persistent home within these nodes, ensuring its safekeeping and availability.

PD Nodes: These nodes play a pivotal role in orchestrating and optimizing data distribution among the TiKV nodes, ensuring efficient data management.

Stage 2: Live Replication Support from MySQL

Data is continually streamed from the MySQL database to ensure real-time updates in TiDB. Unlike traditional OLAP solutions that require complex ETL (Extract, Transform, Load) processes, TiDB simplifies live replication with its migration tool, making the integration process straightforward and efficient.

Stage 3: TiFlash for Analytics

TiFlash is our go-to component for advanced analytics. It stores data in a column-based format, ideal for OLAP workloads. Unlike other databases that require ETL or external jobs to convert data, TiDB seamlessly replicates data from TiKV to TiFlash, simplifying your analytical processes.

Stage 4: Establishing a Comprehensive Data Warehouse

In this stage, our architecture achieves a holistic data warehousing setup. The application server employs MySQL for transactional (OLTP) workloads, while TiDB cluster takes the reins for analytical (OLAP) tasks.
Data which is replicated from MySQL is ingested into the TiDB cluster, providing a highly available and horizontally scalable environment for serving read requests and running OLAP queries. This ensures that both critical transactions and analytical tasks can coexist without compromising performance.

In conclusion, when dealing with the challenges of horizontally scaling databases in high-concurrency systems, TiDB emerges as a compelling solution. Its distributed architecture, reliability, scalability, and OLAP support position it as a powerful choice for modernizing data management.

With native support for seamlessly transitioning from row-based to column-based storage and facilitating Hybrid Transaction and Analytic Processing (HTAP), TiDB simplifies complex tasks.

Stay tuned for more insightful blogs on TiDB as we continue to explore its capabilities in-depth.

Author Bio

sukan

Sukan is Database Team Lead at Mafiree with over a decade of experience in database systems, architecture, and performance optimization. He specializes in MySQL, MongoDB, TiDB, and ClickHouse, developing architectural improvements that make data platforms faster, more efficient, and cost-effective. Sukan writes about practical database engineering topics, real-world performance tuning, data replication, and high-scale system design, drawing from extensive hands-on experience solving complex technical challenges.

Leave a Comment

Related Blogs

TiDB Out of Memory (OOM) Errors: Root Cause Analysis & Memory Tuning Guide

TiDB OOM Errors fall into two types — a full node crash triggered by the OS, or a single query cancelled by TiDB's own memory controls. This guide walks through how to confirm which occurred, identify the SQL patterns most responsible (HashJoin, HashAgg, large transactions, stale statistics), configure the four key memory parameters, enable disk spill as a safety net, and verify production readiness with a structured checklist.

  329 views
Manage Large Data Import in TiDB

Managing large-scale data import in TiDB requires specialized tools and strategies due to its distributed architecture. Unlike traditional databases, TiDB must efficiently distribute data across multiple nodes while maintaining consistency and performance. TiDB Lightning is the primary high-performance tool designed for bulk data ingestion, supporting formats like CSV, Parquet, and Dumpling exports. It offers two import modes: physical mode for maximum speed during initial loads and logical mode for safer imports into active production environments. Additionally, TiDB introduces IMPORT INTO, a SQL-based import method that simplifies data loading for moderate datasets with minimal setup. This guide covers TiDB Lightning architecture, import modes, performance comparisons, complete migration workflows, and best practices to help you efficiently manage large amounts of data, avoid common failures, and choose the right import strategy for your use case.

  1387 views
How to Automate Data Deletion Using TiDB TTL

TiDB TTL (Time-To-Live) automatically removes expired rows based on a defined retention period. It helps manage growing datasets, reduce storage usage, and minimize the need for manual cleanup. This guide covers TTL configuration, scheduled cleanup jobs, conditional expiration, monitoring, and key limitations.

  13180 views
Sync-Diff-Inspector: Your Go-To Tool for Verifying Data Consistency Across TiDB and MySQL

A powerful tool to compare, detect, and fix data inconsistencies across distributed databases—ensure accurate migrations and seamless replication with Sync-Diff-Inspector.

  2918 views
The Feature You’ve Been Looking For – Speed Up Your Queries with TiDB Cached Tables!

Boost database performance with TiDB cached tables—reduce latency and accelerate read-heavy queries.

  2754 views
How TiDB 7.4 Resource Isolation Improves Workloads

TiDB Resource Control helps manage resource usage by assigning limits and priorities to different workloads. It allows high-priority applications to get the resources they need while preventing other workloads from affecting critical operations. This is especially useful when multiple teams or workloads share the same TiDB cluster.

  572 views
Introducing Foreign Keys and more: Exploring New Features in TiDB v8.5.0

Explore the latest features in TiDB v8.5.0, including support for Foreign Keys, improved performance, and enhanced security for modern database management.

  3233 views
Optimizing Storage Using TiDB Placement Rules

TiDB Placement Rules help control where data is stored within a TiKV cluster. By assigning data to specific storage tiers, zones, or hosts, they can improve performance, resource utilization, and cost efficiency.

  13145 views
How Selective Row Replication Works: MySQL to TiDB

Analytics with TiDB's Row-Wise Filtering. Discover how our client slashed costs and boosted flexibility with TiDB's granular data management features. Dive into the future of database optimization with Mafiree

  529 views
TiDB Pause Resume DDL: Safely Manage Long-Running Schema Changes in Production

TiDB provides a powerful pause and resume DDL feature that allows database administrators to control long-running schema changes without canceling them. Instead of aborting operations like index creation or column modifications during peak traffic, teams can pause the DDL job and resume it later during low-traffic periods. This guide explains how TiDB pause resume DDL works, when to use pause vs resume vs cancel, and provides step-by-step commands for managing DDL operations safely in production environments.

  1712 views
Why TiDB? - 5 Indicators You've Outgrown MySQL

Dive into our blog post to uncover signs that hint it's time to move on from MySQL and find out how TiDB steps up as the ideal solution

  3699 views

Subscribe for email updates

Get in touch with us

Highlights

More than 6000 Servers Monitored

Happy Clients

Certified DBAs

24 x 7 x 365 Support

PCI

Database Services

MySQL MongoDB PostgreSQL SQL Server Aerospike Clickhouse TiDB ScyllaDB

Quick Links

Careers Blog Contact Privacy Policy Disclaimer Policy

Contacts

Linkedin Mafiree Facebook Mafiree Twitter Mafiree

Nagercoil Office

Miru IT Park, Vallankumaranvillai,

Nagercoil, Tamilnadu - 629 002.

Bangalore Office

Unit 303, Vanguard Rise,

5th Main, Konena Agrahara,

Old Airport Road, Bangalore - 560 017.

Call: +91 6383016411

Email: sales@mafiree.com


Copyright © - All Rights Reserved - Mafiree