ποΈ 07082025 1042
HTAP = Hybrid Transactional and Analytical Processing
Itβs a database architecture that supports both oltp and olap workloads on the same system, often in real time β without needing ETL.
π Why HTAP is a Big Dealβ
| π Traditional | π₯ HTAP | 
|---|---|
| OLTP + OLAP are separate | Unified system | 
| ETL delays | Real-time sync | 
| High infra complexity | Simpler architecture | 
| Costly duplication | Single source of truth | 
π§© How Does HTAP Work?β
HTAP systems often:
- Store data once, but in formats suited for both workloads
 - Use multi-engine architectures (row store + column store)
 - Separate compute for isolation (no interference)
 - Leverage MVCC, HTAP schedulers, or replication to optimize for both use cases
 
π οΈ Real-World Examplesβ
| System | HTAP Capabilities | 
|---|---|
| TiDB (PingCAP) | OLTP (MySQL-like) + OLAP (TiFlash) | 
| SingleStore | Unified row/column engine | 
| CockroachDB | OLTP + some analytical support | 
| MySQL + HeatWave | HTAP via in-memory analytics | 
| ClickHouse | OLAP-focused, but moving toward HTAP with insert speed improvements | 
| DorisDB / StarRocks | Emerging HTAP-style performance | 
β Benefitsβ
- π‘ Real-time analytics on live data
 - π« No need for ETL pipelines
 - π Strong consistency for both workloads
 - πΈ Lower infra & ops cost
 
β οΈ Challengesβ
- Still a maturing field β not all HTAP systems are equal
 - Balancing latency (OLTP) with throughput (OLAP)
 - Can be harder to tune for both workloads simultaneously
 
Referencesβ
- ChatGPT