NEW
Systems optimized for high-throughput, low-latency transactional workloads with many short, atomic operations and strict consistency guarantees.
DESCRIPTION
OLTP systems process large volumes of simple, concurrent transactions, such as inserts, updates, and deletes. They emphasize ACID properties, low latency, and high availability. Typical use cases include e-commerce, banking, and operational applications. Schema design focuses on normalization and indexing for write efficiency and consistency. OLTP contrasts with OLAP, which emphasizes analytical queries on aggregated data. Replication, partitioning, and failover strengthen resilience in OLTP environments.
ALTERNATIVE DEFINITIONS
IBM
Online transaction processing (OLTP) is a class of systems that facilitate and manage transaction-oriented applications, typically for data entry and retrieval transaction processing.
Focuses on transaction-oriented applications and data entry/retrieval at scale.
Microsoft Learn
OLTP workloads involve many short, atomic transactions and are optimized for fast processing and data integrity in multiuser environments.
Emphasizes short transactions, performance, and integrity with concurrent users.
Oracle
OLTP systems support a large number of concurrent users performing quick, atomic transactions that maintain data consistency.
Stresses concurrency and atomicity for consistency.
RELATED TERMS
ACID Relational Database Indexing Isolation Levels Write-Ahead Logging Replication Sharding Row Store Isolation (ACID) Checkpointing
COMPETING TERMS
KNOWLEDGE AREAS
Data Storage & Operations Software Engineering Data Architecture Infrastructure
TARGET AUDIENCE
Software Developer Data Engineer Data Architect Cloud Architect DevOps Engineer
EXTERNAL SOURCES
- Wikipedia - Online transaction processing
- PostgreSQL - Transaction isolation levels reference
- Microsoft - OLTP vs OLAP in Azure SQL
- MySQL - InnoDB transactional model details
TOP QUESTIONS
What makes OLTP different from batch processing?
OLTP handles many short, real-time transactions with immediate consistency, while batch processing executes large jobs periodically with eventual consolidation.
Category: Misunderstanding
What are key risks in OLTP systems?
Hotspots, lock contention, and replication lag can degrade performance and consistency. Poor indexing and missing capacity planning cause outages.
Category: Risk
What metrics are critical for OLTP performance?
P95/P99 latency, throughput (TPS), lock wait time, deadlock rate, and replication lag are essential indicators.
Category: Measurement
How does normalization help OLTP?
Normalization reduces redundancy and update anomalies, improving write performance and data integrity in transactional workloads.
Category: Example
How do OLTP systems scale?
Vertical scaling, read replicas, partitioning, and sharding help, along with connection pooling and optimized indexes.
Category: Implementation
Should OLTP databases serve analytics directly?
Generally no. Analytical queries can harm transactional performance; use replicas or a warehouse for analytics.
Category: Opinion
What is the role of ACID in OLTP?
ACID ensures atomicity, consistency, isolation, and durability, maintaining correctness amid concurrent transactions and failures.
Category: Requirements
How does OLTP relate to microservices?
Each service often manages its own transactional store, using patterns like sagas for distributed consistency.
Category: Relationship
Which engines are popular for OLTP?
PostgreSQL, MySQL/InnoDB, SQL Server, Oracle, and cloud-native engines like Aurora and Spanner are common.
Category: Overview