A software program or operating system that supports transaction-oriented applications in a three-tier architecture
OLTP or online transactional processing is a software program or operating system that supports transaction-oriented applications in a three-tier architecture. It facilitates and supports the execution of a large number of real-time transactions in a database.
OLTP monitors daily transactions and is typically done over an internet-based multi-access environment. It handles query processing and, at the same time, ensures and protects data integrity. The efficacy of OLTP is determined by the number of transactions per second that it can process. OLTP systems are optimized for transactional superiority hence, suitable for most monetary transactions.
The defining characteristic of OLTP transactions is atomicity and concurrency. Concurrency prevents multiple users from changing the same data simultaneously. Atomicity (or indivisibility) ensures that all transactional steps are completed for the transaction to be successful. If one step fails or is incomplete, the entire transaction fails.
Atomic statefulness is a computing condition in which database changes are permanent, requiring transactions to be completed successfully. OLTP systems enable inserting, deleting, changing, and querying data in a database.
OLTP systems activities consist of gathering input data, processing the data, and updating it using the data collected. OLTP is usually supported by a database management system (DBMS) and operates in a client-server system. It also relies on advanced transaction management systems to facilitate multiple concurrent updates.
OLTP systems facilitate many types of financial and non-financial transactions such as:
OLTP systems are found in a broad spectrum of industries with a concentration in client-facing environments.
OLTP systems maintain very short response times to be effective for users. For example, responses from an ATM operation need to be quick to make the process effective, worthwhile, and convenient.
OLTP systems support numerous small transactions with a small amount of data executed simultaneously over the network. It can be a mixture of queries and Data Manipulation Language (DML) overload. The queries normally include insertions, deletions, updates, and related actions. Response time measures the effectiveness of OLTP transactions, and millisecond responses are becoming common.
Data maintenance operations are data-intensive computational reporting and data update programs that run alongside OLTP systems without interfering with user queries.
OLTP systems are synonymous with a large number of users accessing the same data at the same time. Online purchases of a popular or trending gadget such as an iPhone may involve an enormous number of users all vying for the same product. The system is built to handle such situations expertly.
An OLTP environment experiences very high concurrency due to the large user population, small transactions, and very short response times. However, data integrity is maintained by a concurrency algorithm, which prevents two or more users from altering the same data at the same time. It prevents double bookings or allocations in online ticketing and sales, respectively.
A mobile money transfer application is a good example where concurrency is very high as thousands of users can be making transfers simultaneously on the platform at every time of the day.
OLTP systems often need to be available round the clock, 24/7, without interruption. A small period of unavailability or offline operations can significantly impact a large number of people and an equally huge transaction quantity.
Downtimes can also pose potential losses to organizations, e.g., an online banking system downtime has adverse consequences to the bank’s bottom line. Therefore, an OLTP system requires frequent, regular, and incremental backup.
OLTP systems experience periods of both high data usage and low data usage. Finance-related OLTP systems typically see high data usage during month ends when financial obligations are settled.
Index data sets are used to facilitate rapid query, search, and retrieval.
OLTP systems utilize a fully normalized schema for database consistency.
OLTP stores data records for the past few days or about a week. It supports sophisticated data models and tables.
The business strategy influences the OLTP systems design. The strategy is formulated at the senior management and the level of the board of directors.
They are processes by the OLTP system that will accomplish the goals set by the business strategy. The processes comprise a set of activities, tasks, and actions.
The OLTP database contains information on products, transactions, employees, and customers, and suppliers.
The ETL process extracts data from the OLTP database and transforms it into the staging area, which includes data cleansing and optimizing the data for analysis. The transformed data is then loaded into the online analytical processing (OLAP) database, which is synonymous with the data warehouse environment.
Data warehouses are central repositories of integrated data from one or more incongruent sources. A data mart is an access layer of the data warehouse that is used to access specific/summarized information of a unit or department.
The data stored in the data warehouse and data mart is used for analysis, data mining, and decision making.
Designing an OLTP system requires knowing its base characteristics such as atomicity, concurrency, and integrity and avoiding excessive use of clusters and indexes. The following factors should be considered in OLTP design.
OLTP feeds transactional data and provides support to the Online Analytical Processing (OLAP) system. The key differences between the two systems are indicated below:
OLTP provides accurate forecasts of revenues and expenses.
OLTP system crash and hardware failures that can lead to system downtime can severely affect online transactions. If the server hangs on for a few seconds, a large number of transactions can also get affected.
Thank you for reading CFI’s guide to OLTP. To keep advancing your career, the additional CFI resources below will be useful:
Access and download collection of free Templates to help power your productivity and performance.
Already have an account? Log in
Take your learning and productivity to the next level with our Premium Templates.
Upgrading to a paid membership gives you access to our extensive collection of plug-and-play Templates designed to power your performance—as well as CFI's full course catalog and accredited Certification Programs.
Already have a Self-Study or Full-Immersion membership? Log in
Gain unlimited access to more than 250 productivity Templates, CFI's full course catalog and accredited Certification Programs, hundreds of resources, expert reviews and support, the chance to work with real-world finance and research tools, and more.
Already have a Full-Immersion membership? Log in