Week 2 - Introduction to Transaction Processing Systems
Week 2 - Introduction to Transaction Processing Systems
ke
OUTLINE
Definition: Transaction Processing Systems (TPS) are computer-based systems that manage
and process transactions, which are discrete units of work involving the creation,
Explanation: TPS architecture is designed to ensure the efficient and reliable execution of
transactions in various industries, such as banking, retail, healthcare, and more. It typically
single central server or mainframe computer. This approach is suitable for smaller
• Real-World Example: A small retail store uses a centralized TPS for handling sales
Abdulrahman A. Mohamed Mobile: +254 713 500 814 Email: [email protected]
across multiple interconnected servers or nodes. This approach is suitable for larger
tolerance.
4. TP Monitor:
efficiently.
millions of daily transactions across its global network of branches. The TP Monitor
ensures that transactions are processed consistently and that failures are managed
5. Isolation:
withdraw money from their accounts at different ATMs, isolation ensures that each
transaction deducts the correct amount without interference from the other.
6. Cascaded Aborts:
• Explanation: Cascaded aborts occur when a transaction failure leads to the rollback
of dependent or cascading transactions. This ensures that changes made by the main
transaction fails, cascaded aborts would ensure that any inventory reservation or
order creation transactions associated with it are also rolled back to maintain
consistency.
7. Strictness:
• Explanation: Strictness in TPS refers to the degree of control and constraint imposed
• Real-World Example: A stock exchange uses strict TPS controls to ensure that buy
Abdulrahman A. Mohamed Mobile: +254 713 500 814 Email: [email protected]
and sell orders are executed in a strict and regulated manner, preventing any
Definition: Transaction Processing in a Centralized System refers to the approach where all
Explanation: In a centralized TPS architecture, the core idea is to centralize all transaction-
related operations and data on a single, powerful server. This model is suitable for smaller
organizations or those with relatively low transaction volumes. Here's a more detailed
breakdown:
• Single Central Server: The central server, often a mainframe computer or a powerful
• Data Storage: All data, including the database, is typically stored on the central
server. This ensures that there is a single source of truth for the organization's data.
since all transactions are processed on the same server. This helps in enforcing data
distributed system.
central server fails, it can lead to a complete system outage. Therefore, backup and
Real-World Example: Consider a small local retail store that uses a centralized TPS for its
daily operations. All cash registers in the store are connected to a central server where sales
transactions are processed, inventory levels are updated, and customer accounts are
managed. This centralization simplifies data management and ensures consistency in sales
data.
the workload is distributed across multiple servers or nodes. This model is suitable for larger
organizations with higher transaction volumes and offers benefits such as scalability and
share the load of processing transactions. These servers can communicate with each
increase, new servers can be added to the network, distributing the workload and
If one server fails, other servers can continue processing transactions, minimizing
• Data Distribution: Data may be distributed across multiple nodes, and data access
distributed TPS. Multiple servers in different regions process orders, manage inventory, and
handle customer accounts. This architecture allows the platform to handle high traffic loads
Explanation: Heterogeneous TPS architecture deals with systems that have varying
technologies and infrastructures. These systems might include a mix of hardware platforms,
operating systems, and databases. Ensuring seamless communication and data exchange
between these diverse components is the primary challenge. Here's a more detailed
explanation:
servers, databases, and software applications. These components may not naturally
disparate systems to work together, ensuring passengers can book flights and access their