Show
Overview of OLTPOLTP or Online Transaction Processing is a type of data processing approach where the transactions play a major role in data manipulation in the database. This provides facts and statistics for the Business Intelligence required for the business decision-making process. OLTP is usually applied on applications related to e-commerce, online banking, online shopping, sales and service platforms, etc. This type of data processing is known for its high performance, faster accessibility, and reliable & consistent data. Understanding OLTPOLTP supports only those operations that are already defined. For example, In the case of online airline booking, we need to book an airline that is related to insertion in the database. OLTP ensures the availability in the cart and concurrency in case a large number of users are accessing the same website at the same time. This is done using the following characteristics of OLTP:-
How does OLTP make working so easy?
When two users trying to access the same data in a particular database system, none of them will be able to change the data until and unless one user has finished processing. In general, one user will process, and one will wait while making any amendments. This is coined as Concurrency controls. Atomicity controls guarantee that in a transaction, all steps are completed successfully as a group. That is, if any steps between the transaction fail, all other steps must fail also.
What can you do with OLTP?
Working with OLTP
Some crucial segments that affect the performance of OLTP are
Advantages1. Concurrency: OLTP ensures transactions made into the database should not deplete the concurrency between different users. Otherwise, the users will not be able to change, or he has to wait for other users to complete so that there is not a deadlock situation. 2. Acid Compliance: ACID means a database that holds properties such as atomicity, consistency, isolated and durable. This property is an essential part of the database that records the transactions made on money. One failure could lead to much big loss. Thus OLTP ensures there is no loss of transactions and maintains the ACID property to its databases. 3. Availability: The latest data is available to all the users as concurrency is properly maintained. 4. Integrity: As the normalized database is maintained, integrity holds at every step in the case of OLTP transactions. DisadvantagesFor such concurrency, availability, and faster transactions, OLTP often requires support for transactions that include many company’s networks. Thus in today’s era, we require a more decentralized system. ExamplesSome examples of OLTP systems include
Why should we use OLTP?1. To use less paper and make a faster, more accurate prediction of revenues and expenses. 2. The system that requires offline maintenance makes a good requirement for online transaction processing. 3. Availability, concurrency, and atomicity of data are much more important. Why do we need OLTP?We need OLTP to perform the tasks which are often performed by the system and require only a smaller number of records. The tasks are related to the insertion, update or deletion of data in databases. Consistency and concurrency are required to perform such tasks, which ensures its greater availability. OLTP maintains normalized databases and decentralized systems, which provides greater availability and consistency. This also ensures maintaining concurrency among the database. OLTP often works differently in the case of batch processing and grid computing. On the contrary, OLAP(Online Analytic Processing) works on a greater number of tasks related to complex on databases used in main business intelligence tasks. ConclusionOLTP is a type of data processing where a large number of users make transactions, i.e. updation, insertion or deletion, that deals with a smaller number of records. It always ensures concurrency, atomicity, availability of data using normalized databases, decentralized systems, and less historical data. Recommended ArticlesThis has been a guide to What is OLTP. Here we discussed the Basic concepts, Definitions, and Advantages of OLTP. You can also go through our other suggested articles to learn more –
OLTP (online transaction processing) is a class of software programs capable of supporting transaction-oriented applications. In computing, a transaction is a sequence of discrete information exchanges that are treated as a unit. Many everyday acts involve OLTP, including online banking, online shopping and even in-store shopping when the point of sale (POS) terminal is tied to inventory management software. Two important characteristics of an OLTP system are concurrency and atomicity. Atomicity guarantees that if one step is incomplete or fails during the transaction, the process will not continue. Concurrency prevents multiple users from altering the same data at the same time. In order for a transaction to be completed successfully, all database changes must be permanent, a condition known in computing as atomic statefulness. To avoid single points of failure, OLTP systems are often decentralized. For example, Google Cloud Spanner is a distributed relational database service that runs on Google Cloud. It is designed to support global online transaction processing. How OLTP worksOLTP involves taking transactional data, processing it and updating a back-end database to reflect the new input. While the applications may be complex, these updates are usually simple and involve only a few database records. A relational database management system is often used to manage OLTP. Relational databases are a good option for OLTP because it requires a database that can handle a large number of queries and updates while supporting fast response times. OLTP is used for executing online database transactions that frontline workers such as cashiers and bank tellers generate. Customer self-service applications like online banking, travel and e-commerce also generate database transactions and are tied into OLTP systems. Online transactional processing systems typically use a 3-tiered architecture, which consists of presentation, application and data tiers. Characteristics of OLTPOLTP-based applications have a range of characteristics and features. They include the following:
OLTP vs. OLAPIt is important to distinguish between OLTP databases and online analytical processing (OLAP) ones. To bridge the two systems, extract, transform and load processes can periodically move data from an OLTP database to an OLAP database. OLTPOLTP systems were originally designed to handle only operational data. They process various different kinds of queries and are geared toward surface-level transactions. Today, some in-memory databases are able to process memory-optimized tables of transaction data stored in system memory instead of having to pull them from disk storage. This approach is called in-memory OLTP. OLTP transactions provide data that OLAP systems analyze. They then use the results of the analysis to change how the OLTP system operates. There are many differences between OLAP and OLTP, but they are often used in tandem to process transactional application data.OLAPOLAP databases handle any analytical processes. They are generally optimized for read-only queries and are geared toward "what if" thinking, more complex queries and deeper business analytics. The business intelligence insights derived from OLAP systems can be used to inform an organization's OLTP strategy. OLAP collects data from multiple sources and then cleanses and stores it in OLAP cubes where it can be analyzed.Benefits and challenges of OLTPOLTP systems provide several benefits to users, but they also come with challenges. BenefitsAs mentioned earlier, concurrency and atomicity are the two main benefits of OLTP. Together, they provide order to real-time online transactions with the following capabilities:
These traits lead to several benefits for businesses, including the following:
ChallengesDespite its benefits, there are challenges and shortcomings in OLTP systems if they aren't properly designed and managed. They include the following:
Examples of OLTP systems and transactions OLTP systems are used across a variety of industries and are in many consumer-facing systems. Some common examples of systems that use OLTP include:
An example of an OLTP transaction would be at an ATM. In this scenario, two people share a joint bank account. They go to ATMs in separate locations at about the same time and try to withdraw all the money in the shared account. The OLTP system handles this transaction in real time. It allows the withdrawal from the ATM that finishes the authentication process first and then deals with, and ultimately denies, the second request. Future of OLTPToday's big data stores are too complex and voluminous for legacy OLTP systems to process and draw insights from on the fly. To successfully use the massive amounts of data organizations deal with, the OLAP's deeper processing capabilities must be merged with OLTP's ability to analyze data fast. As such, businesses may turn to more advanced data processing technology like predictive analytics and data structures like probabilistic databases, which deal with data that is recorded only on certain conditions. Still, OLTP systems will likely be used in many transactional applications for the foreseeable future and in cases in which merging the real-time capabilities of OLTP and OLAP isn't feasible. Find out more about the strategy behind Oracle's move to combine OLTP and OLAP capabilities on its MySQL platform. |