Skip to main content

πŸ—“οΈ 07082025 1042
πŸ“Ž

htap

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 separateUnified system
ETL delaysReal-time sync
High infra complexitySimpler architecture
Costly duplicationSingle source of truth

🧩 How Does HTAP Work?​

HTAP systems often:

  1. Store data once, but in formats suited for both workloads
  2. Use multi-engine architectures (row store + column store)
  3. Separate compute for isolation (no interference)
  4. Leverage MVCC, HTAP schedulers, or replication to optimize for both use cases

πŸ› οΈ Real-World Examples​

SystemHTAP Capabilities
TiDB (PingCAP)OLTP (MySQL-like) + OLAP (TiFlash)
SingleStoreUnified row/column engine
CockroachDBOLTP + some analytical support
MySQL + HeatWaveHTAP via in-memory analytics
ClickHouseOLAP-focused, but moving toward HTAP with insert speed improvements
DorisDB / StarRocksEmerging 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