As one of Indonesia’s leading logistics companies, Anteraja has established itself as a trusted provider of courier and delivery services. With a robust network spanning the entire country, Anteraja caters to individual and corporate customers, offering reliable service and a commitment to customer satisfaction.

The Challenge: Navigating System Overloads and Real-Time Demands

Anteraja’s rapid growth in Indonesia’s logistics market presented unique operational challenges, particularly in its courier management system. The system, designed on a legacy database architecture, could not cope with the demands of an expanding customer base and surging transaction volumes. Although designed for batch processing, it struggled to cope with real-time demands. This resulted in high CPU usage, slow response times, and data inconsistencies.

Figure 1: Anteraja’s Original Architecture

The complexity of Anteraja’s legacy database architecture significantly hindered the team’s ability to address the increasing demands.

  • High CPU Usage: As order volumes surged, database CPU utilization climbed to 100% during peak times, causing severe slowdowns and long queues for critical transactions.
  • Slow Queries: Increased CPU load resulted in degraded query performance, delaying real-time updates on delivery statuses and prolonging transaction processing, frustrating both customers and internal teams.
  • Locking Issues: Concurrent transactions overwhelmed the database’s capacity, leading to frequent locking problems. Multiple processes attempting to access the same data caused bottlenecks, further slowing operations.
  • Database Freeze: During peak loads, the entire database would sometimes freeze, halting new data insertion and causing unprocessed transactions to accumulate. The only temporary fix—restarting the database—was disruptive and risky, especially during crucial periods.
  • Data Corruption Risk: Repeated restarts heightened the risk of data corruption, resulting in inaccurate order records and mismanaged deliveries, which undermined customer trust.
  • Package Delivery Delays: System downtime directly impacted operations, delaying package processing and delivery, eroding customer confidence, and increasing pressure on logistics teams to meet SLAs.
  • Temporary Manual Sharding Complexity: To manage the growing data load, the database was split into 40 partitions, distributing the load but significantly complicating system maintenance and query coordination, making troubleshooting resource-intensive.

These challenges hindered Anteraja’s ability to scale effectively and threatened its reputation for reliable service. The courier management system’s limitations necessitated a more robust, scalable solution capable of handling the real-time demands of a modern logistics business.

The Solution: Unifying and Streamlining Operations with Distributed SQL

To address these challenges, Anteraja migrated its courier management system to TiDB, a distributed SQL database renowned for its scalability and performance. This migration consolidated the 40 fragmented databases into a single TiDB cluster. TiDB’s distributed architecture and horizontal scalability provided an efficient, resilient solution to meet Anteraja’s growing needs.

The new architecture streamlined operations, reducing complexity and ensuring smooth, real-time processing. TiDB’s ability to scale horizontally and handle online transactional processing (OLTP) and online analytical processing (OLAP) workloads enabled Anteraja to maintain high performance under peak loads.

Figure 2: Anteraja’s New Architecture with TiDB

The Result: Driving Cost Savings, Performance, and Growth with TiDB

The transition to TiDB proved to be a game-changer for Anteraja. The new database architecture provided the scalability and performance needed to handle peak workloads in the company’s Courier Management System without disruptions. Key benefits included:

  • Improved Scalability: TiDB’s distributed architecture allowed Anteraja to handle increasing data volumes and transaction rates effortlessly.
  • Enhanced Performance: The database’s high-performance capabilities ensured faster response times by up to 50%, even during peak periods.
  • Reduced Costs: The migration to TiDB resulted in significant cost savings of up to 70% due to its efficient resource utilization.
  • Increased Reliability: The system’s stability and resilience to failures have significantly improved customer satisfaction.. 

By embracing a distributed SQL architecture, Anteraja achieved significant gains in scalability, operational efficiency, cost savings, and system reliability. These improvements have enabled the company to easily handle growing data volumes, deliver exceptional customer experiences, and maintain its position as a leader in Indonesia’s logistics industry.