AI hardware maker Plaud restructured its backend data architecture after its initial relational setup encountered scaling bottlenecks around 300 million rows. By migrating its structured metadata layer to TiDB, the team resolved schema change constraints and expanded its query headroom while maintaining sub-10-millisecond P95 latency.
The Transcript Sidecar Bottleneck
Plaud originally implemented a common two-tier storage pattern, placing structured metadata in MySQL and raw audio or transcript files in Amazon S3. While effective for initial operations, separating metadata from content payloads created architectural challenges. Without a shared transaction boundary across both storage locations, data consistency relied on reconciliation logic within the application layer.
As concurrent user access grew, relying on object storage as the primary path for multi-megabyte payloads introduced variable retrieval latency. Additionally, latency spikes and replication delays risked creating temporary consistency gaps where metadata marked a transcript ready before the corresponding S3 object became accessible.
Schema Constraints at 300 Million Rows
As the single-instance MySQL metadata store reached approximately 300 million rows, schema modifications grew increasingly risky. Data Definition Language operations required table locks and generated replication strain, forcing the engineering team to schedule updates within dedicated maintenance windows.
This database ceiling impacted product delivery, as routine modifications like adding columns or altering indexes were tied to operational maintenance cycles rather than flexible release schedules.
Migrating Metadata to Distributed SQL
To remove the scale ceiling, Plaud migrated its structured metadata layer to TiDB, a distributed SQL database, while keeping large audio payloads in object storage. The updated architecture enabled online DDL execution, allowing schema updates without requiring downtime windows.
The migration increased Plaud's query-per-second capacity by approximately tenfold while keeping tail latency under 10 milliseconds, preventing data retrieval delays from compromising the end-user experience.
AI-generated editorial illustration; not a documentary photograph.
Source: The Database Is the Product: What Breaks When Memory Devices Scale

Leave a Reply