Ilmu Komputer & AI editorial
Open AccessOA2026
Lifecycle-Aware Archival for Asymmetric Financial Datasets: A Production Study
A production study of lifecycle-aware archival at Razorpay, addressing the Celebrity Partition Problem and ID-monotonicity deduplication for asymmetric financial datasets.
Tulika Manekยท 2026ยท DOI 10.48550/arXiv.2608.12367
The core problem
Large-scale financial transaction databases must balance operational freshness with storage efficiency. At Razorpay, a financial transaction service manages billions of records on PostgreSQL Aurora (version 14), occupying tens of terabytes and sustaining peak write throughput in the thousands of TPS. The core challenge is the tension between keeping recent data hot for fast access and archiving older data to reduce costs. This paper presents the design, implementation, and production evaluation of a lifecycle-aware archival system that addresses this tension. The authors make two key contributions: first, an analytical characterization of the Celebrity Partition Problem, where lifecycle-state partitioning concentrates all operationally active rows in a single default partition, leading to planning overhead, execution I/O regression, and write amplification; second, an ID-monotonicity-based deduplication technique that exploits temporal encoding in monotonically increasing ID schemes (e.g., Snowflake IDs, ULIDs) to route only potentially-archived re-inserts to a warm database lookup, eliminating the need for Bloom filters, idempotency tables, or external dependencies. The system is
Innovation
The production deployment yielded substantial improvements. Hot storage size was reduced by 95%, significantly lowering storage costs. Monthly database infrastructure cost decreased by 53%. Service-level p99 processing latency was reduced by approximately 60%, enhancing user experience. Writer CPU utilization dropped by 51 percentage points, indicating more efficient resource usage. The system sustained operation at peak write TPS, demonstrating reliability under high load. These results were achieved without schema changes to the primary transaction table, minimizing disruption. The deduplication technique successfully routed only potentially-archived re-inserts to the warm database, avoiding unnecessary lookups and maintaining performance. The Celebrity Partition Problem was mitigated by the lifecycle-aware archival design, which prevented the concentration of active rows in a single partition. Overall, the system demonstrates that lifecycle-aware archival can effectively manage asymmetric financial datasets at scale.
Large-scale financial transaction databases must balance operational freshness with storage efficiency. At Razorpay, a financial transaction service manages billions of records on PostgreSQL Aurora (version 14), occupying tens of terabytes and sustaining peak write throughput in the thousands of TPS. The core challenge is the tension between keeping recent data hot for fast access and archiving older data to reduce costs. This paper presents the design, implementation, and production evaluation of a lifecycle-aware archival system that addresses this tension. The authors make two key contributions: first, an analytical characterization of the Celebrity Partition Problem, where lifecycle-state partitioning concentrates all operationally active rows in a single default partition, leading to planning overhead, execution I/O regression, and write amplification; second, an ID-monotonicity-based deduplication technique that exploits temporal encoding in monotonically increasing ID schemes (e.g., Snowflake IDs, ULIDs) to route only potentially-archived re-inserts to a warm database lookup, eliminating the need for Bloom filters, idempotency tables, or external dependencies. The system is fully deployed and reports significant production results.
The methodology centers on two innovations. First, the Celebrity Partition Problem is analytically characterized. In lifecycle-state partitioning, a table is partitioned by a lifecycle state (e.g., active, archived). However, all operationally active rows end up in a single default partition, causing the query planner to incur overhead of , where is the number of partitions and is the number of active rows. Execution I/O regresses to , and every state transition causes write amplification. This problem is formalized and its impact on performance is quantified.
Why it matters
The results validate the effectiveness of the proposed techniques. The Celebrity Partition Problem is a critical bottleneck in lifecycle-state partitioning, and its analytical characterization provides a foundation for future optimizations. The ID-monotonicity-based deduplication technique is novel in its simplicity and efficiency, eliminating external dependencies and reducing overhead. The production results show that significant cost and performance benefits are achievable without major schema changes. However, the approach relies on monotonically increasing ID schemes, which may not be universal. Future work could explore adaptation to other ID schemes. The system's success at Razorpay suggests broader applicability to other financial transaction services with similar characteristics. The architecture, illustrated in the Mermaid diagram, can be replicated. The study contributes to the field of database management for financial systems, offering a practical solution to a common problem.
Who should read this
CS practitioners and researchers
Opening member contentโฆ