Applying the Saga Pattern. Caitie McCafffrey
|
|
|
- Ethelbert Mitchell Watts
- 9 years ago
- Views:
Transcription
1 Applying the Saga Pattern Caitie McCafffrey
2 Caitie McCaffrey! Distributed Systems CaitieM.com
3
4 Why Sagas? Sagas Paper Distributed Sagas Sagas in Halo 4
5 Systems Used to Be Simple
6 Serializability & ACID
7 SOA/Microservices
8 Two Phase Commit
9 2PC: Prepare Phase
10 2PC: Commit Phase
11 2PC Doesn t Scale O(n^2) Messages Coordinator: Single Point of Failure Reduced Throughput
12 Spanner Google s Globally-Distributed Database Corbett et. al.
13 Spanner is Google s scalable, multi-version, globally distributed, and synchronouslyreplicated database. It is the first system to distribute data at global scale and support externally-consistent distributed transactions. Corbett et al.
14 The key enabler of these properties is a new TrueTime API and its implementation using multiple modern clock references (GPS and atomic clocks). Corbett et al.
15 Spanner is Expensive & Proprietary Custom Hardware & Data-Centers Synchronization Not Solved
16 Distributed Transactions are Hard & Expensive
17 Can We Do Better?
18 Can We Do Better?
19 Sagas Hector Garcia-Molina, Kenneth Salem Princeton University 1987
20 Sagas are Long Lived Transactions
21 A Saga is a Long Lived Transaction that can be written as a sequence of transactions that can be interleaved. All transactions in the sequence complete successfully or compensating transactions are ran to amend a partial execution.
22 A Saga is a Collection of Sub-Transactions T1, T2 Tn
23 Each Sub-Transaction has a Compensating Transaction C1, C2 Cn
24 Cn Semantically Undoes Tn
25 Saga Guarantee Either T1, T2 Tn or T1, T2 Tj, Cj, C2, C1
26 Trade-Off: Atomicity for Availability
27 Sagas are a Failure Management Pattern
28 Large Single Transaction
29 Sagas Book Hotel (T1) Book Car (T2) Book Flight (T3) Cancel Hotel (C1) Cancel Car (C2) Cancel Flight (C3)
30 Saga Execution Coordinator (SEC)
31 Saga Log Begin Saga End Saga Abort Saga Begin Ti End Ti Begin Ci End Ci
32 Successful Saga Begin Saga! Start Book Hotel (T1) End Book Hotel (T1) Start Book Car Rental (T2) End Book Car Rental (T2) Start Book Flight (T3) End Book Flight (T3) End Saga
33 Successful Saga Begin Saga Start Book Hotel (T1)! End Book Hotel (T1) Start Book Car Rental (T2) End Book Car Rental (T2) Start Book Flight (T3) End Book Flight (T3) End Saga
34 Successful Saga Begin Saga Start Book Hotel (T1) End Book Hotel (T1)! Start Book Car Rental (T2) End Book Car Rental (T2) Start Book Flight (T3) End Book Flight (T3) End Saga
35 Successful Saga Begin Saga Start Book Hotel (T1) End Book Hotel (T1) Start Book Car Rental (T2)! End Book Car Rental (T2) Start Book Flight (T3) End Book Flight (T3) End Saga
36 Successful Saga Begin Saga Start Book Hotel (T1) End Book Hotel (T1) Start Book Car Rental (T2) End Book Car Rental (T2)! Start Book Flight (T3) End Book Flight (T3) End Saga
37 Successful Saga Begin Saga Start Book Hotel (T1) End Book Hotel (T1) Start Book Car Rental (T2) End Book Car Rental (T2) Start Book Flight (T3)! End Book Flight (T3) End Saga
38 Successful Saga Begin Saga Start Book Hotel (T1) End Book Hotel (T1) Start Book Car Rental (T2) End Book Car Rental (T2) Start Book Flight (T3) End Book Flight (T3)! End Saga
39 Successful Saga Begin Saga Start Book Hotel (T1) End Book Hotel (T1) Start Book Car Rental (T2) End Book Car Rental (T2) Start Book Flight (T3) End Book Flight (T3) End Saga
40 Unsuccessful Saga Backwards Recovery
41 Unsuccessful Saga Begin Saga! Start Book Hotel (T1) End Book Hotel (T1) Start Book Car Rental (T2) Abort Saga Start Compensate Car Rental (C2) End Compensate Car Rental (C2) Start Compensate Book Hotel (C1) End Compensate Book Hotel (C1) End Saga
42 Unsuccessful Saga Begin Saga Start Book Hotel (T1)! End Book Hotel (T1) Start Book Car Rental (T2) Abort Saga Start Compensate Car Rental (C2) End Compensate Car Rental (C2) Start Compensate Book Hotel (C1) End Compensate Book Hotel (C1) End Saga
43 Unsuccessful Saga Begin Saga Start Book Hotel (T1) End Book Hotel (T1)! Start Book Car Rental (T2) Abort Saga Start Compensate Car Rental (C2) End Compensate Car Rental (C2) Start Compensate Book Hotel (C1) End Compensate Book Hotel (C1) End Saga
44 Unsuccessful Saga Begin Saga Start Book Hotel (T1) End Book Hotel (T1) Start Book Car Rental (T2)! Abort Saga Start Compensate Car Rental (C2) End Compensate Car Rental (C2) Start Compensate Book Hotel (C1) End Compensate Book Hotel (C1) End Saga
45 Unsuccessful Saga Begin Saga Start Book Hotel (T1) End Book Hotel (T1) Start Book Car Rental (T2) Abort Saga! Start Compensate Car Rental (C2) End Compensate Car Rental (C2) Start Compensate Book Hotel (C1) End Compensate Book Hotel (C1) End Saga
46 Unsuccessful Saga Begin Saga Start Book Hotel (T1) End Book Hotel (T1) Start Book Car Rental (T2) Abort Saga Start Compensate Car Rental (C2)! End Compensate Car Rental (C2) Start Compensate Book Hotel (C1) End Compensate Book Hotel (C1) End Saga
47 Unsuccessful Saga Begin Saga Start Book Hotel (T1) End Book Hotel (T1) Start Book Car Rental (T2) Abort Saga Start Compensate Car Rental (C2) End Compensate Car Rental (C2)! Start Compensate Book Hotel (C1) End Compensate Book Hotel (C1) End Saga
48 Unsuccessful Saga Begin Saga Start Book Hotel (T1) End Book Hotel (T1) Start Book Car Rental (T2) Abort Saga Start Compensate Car Rental (C2) End Compensate Car Rental (C2) Start Compensate Book Hotel (C1)! End Compensate Book Hotel (C1) End Saga
49 Unsuccessful Saga Begin Saga Start Book Hotel (T1) End Book Hotel (T1) Start Book Car Rental (T2) Abort Saga Start Compensate Car Rental (C2) End Compensate Car Rental (C2) Start Compensate Book Hotel (C1) End Compensate Book Hotel (C1)! End Saga
50 Unsuccessful Saga Begin Saga Start Book Hotel (T1) End Book Hotel (T1) Start Book Car Rental (T2) Abort Saga Start Compensate Car Rental (C2) End Compensate Car Rental (C2) Start Compensate Book Hotel (C1) End Compensate Book Hotel (C1) End Saga
51 Sagas in Distributed Systems Due to space limitations, we only discuss Sagas in a centralized System, although clearly they can be implemented in a distributed database system. Molina et. al
52 SOA/Microservices
53 Requests instead of Transactions Book Hotel (T1) Book Car (T2) Book Flight (T3) \ Cancel Hotel (C1) Cancel Car (C2) Cancel Flight (C3)
54 A Distributed Saga is a Collection of Sub-Requests T1, T2 Tn Each Sub-Request has a Compensating Request C1, C2 Cn
55 Successful Distributed Saga Begin Saga Start Book Hotel Request (T1) End Book Hotel Request (T1) Start Book Car Rental Request (T2) End Book Car Rental Request (T2) Start Book Flight Request (T3) End Book Flight Request (T3) End Saga
56 Saga Log Durable & Distributed
57 Saga Execution Coordinator (SEC) Interprets & Writes to Saga Log Applies Saga Sub-Requests Applies Saga Compensating Requests when Necessary
58
59
60
61
62
63
64
65
66
67 Apply Compensating Requests Aborted Saga Response Start Request Fails SEC Crashes (non-safe state)
68
69
70
71 What Happens when Compensating Requests Fail?
72 Compensating Requests Must Be Idempotent
73 What Happens when SEC Fails?
74 Safe States All Executed Sub-Requests are Complete (Start Ti & End Ti both logged) Saga has been Aborted, Proceed with Compensating Transactions
75 Un-Safe State Start Ti logged, no End Ti logged Abort Saga Start Compensating Requests
76 Request Messaging Semantics Sub-Requests (Ti): At Most Once Compensating Requests (Ci): At Least Once
77 Distributed Saga Guarantee Either T1, T2 Tn or T1, T2 Tj, Cj, C2, C1
78 Distributed Sagas Distributed/Durable Saga Log SEC Process Compensating Requests: Idempotent
79
80 Halo Statistics
81 Halo Statistics Service
82 Halo Statistics Service with Sagas
83 Forward-Recovery
84 Game Grain / SEC Store Stats Player One Store Stats Player Two Store Stats Player Three Store Stats Player Four
85 Forward Recovery Sub-Requests Must Also Be Idempotent
86 Game Grain / SEC Store Stats Player One Store Stats Player Two Store Stats Player Three Store Stats Player Four
87 Game Grain / SEC Store Stats Player One Store Stats Player Two Store Stats Player Three Store Stats Player Four
88 Sagas Long Lived / Distributed Transactions Trade Atomicity for Availability Failure Management Pattern
89
90 Questions? Please remember to evaluate via the GOTO Guide
Recovery Theory. Storage Types. Failure Types. Theory of Recovery. Volatile storage main memory, which does not survive crashes.
Storage Types Recovery Theory Volatile storage main memory, which does not survive crashes. Non-volatile storage tape, disk, which survive crashes. Stable storage information in stable storage is "never"
Transaction Management Overview
Transaction Management Overview Chapter 16 Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Transactions Concurrent execution of user programs is essential for good DBMS performance. Because
Unit 12 Database Recovery
Unit 12 Database Recovery 12-1 Contents 12.1 Introduction 12.2 Transactions 12.3 Transaction Failures and Recovery 12.4 System Failures and Recovery 12.5 Media Failures and Recovery Wei-Pang Yang, Information
Failure Recovery Himanshu Gupta CSE 532-Recovery-1
Failure Recovery CSE 532-Recovery-1 Data Integrity Protect data from system failures Key Idea: Logs recording change history. Today. Chapter 17. Maintain data integrity, when several queries/modifications
Transaction Processing Monitors
Chapter 24: Advanced Transaction Processing! Transaction-Processing Monitors! Transactional Workflows! High-Performance Transaction Systems! Main memory databases! Real-Time Transaction Systems! Long-Duration
COS 318: Operating Systems
COS 318: Operating Systems File Performance and Reliability Andy Bavier Computer Science Department Princeton University http://www.cs.princeton.edu/courses/archive/fall10/cos318/ Topics File buffer cache
Transactions and the Internet
Transactions and the Internet Week 12-13 Week 12-13 MIE253-Consens 1 Schedule Week Date Lecture Topic 1 Jan 9 Introduction to Data Management 2 Jan 16 The Relational Model 3 Jan. 23 Constraints and SQL
Transactions and Recovery. Database Systems Lecture 15 Natasha Alechina
Database Systems Lecture 15 Natasha Alechina In This Lecture Transactions Recovery System and Media Failures Concurrency Concurrency problems For more information Connolly and Begg chapter 20 Ullmanand
Textbook and References
Transactions Qin Xu 4-323A Life Science Building, Shanghai Jiao Tong University Email: [email protected] Tel: 34204573(O) Webpage: http://cbb.sjtu.edu.cn/~qinxu/ Webpage for DBMS Textbook and References
How To Write A Transaction System
Chapter 20: Advanced Transaction Processing Remote Backup Systems Transaction-Processing Monitors High-Performance Transaction Systems Long-Duration Transactions Real-Time Transaction Systems Weak Levels
Database Concurrency Control and Recovery. Simple database model
Database Concurrency Control and Recovery Pessimistic concurrency control Two-phase locking (2PL) and Strict 2PL Timestamp ordering (TSO) and Strict TSO Optimistic concurrency control (OCC) definition
Extending Multidatabase Transaction Management Techniques to Software Development Environments
Purdue University Purdue e-pubs Computer Science Technical Reports Department of Computer Science 1993 Extending Multidatabase Transaction Management Techniques to Software Development Environments Aidong
Concurrency Control. Module 6, Lectures 1 and 2
Concurrency Control Module 6, Lectures 1 and 2 The controlling intelligence understands its own nature, and what it does, and whereon it works. -- Marcus Aurelius Antoninus, 121-180 A. D. Database Management
Introduction to Database Systems. Module 1, Lecture 1. Instructor: Raghu Ramakrishnan [email protected] UW-Madison
Introduction to Database Systems Module 1, Lecture 1 Instructor: Raghu Ramakrishnan [email protected] UW-Madison Database Management Systems, R. Ramakrishnan 1 What Is a DBMS? A very large, integrated
Lecture 7: Concurrency control. Rasmus Pagh
Lecture 7: Concurrency control Rasmus Pagh 1 Today s lecture Concurrency control basics Conflicts and serializability Locking Isolation levels in SQL Optimistic concurrency control Transaction tuning Transaction
Course Content. Transactions and Concurrency Control. Objectives of Lecture 4 Transactions and Concurrency Control
Database Management Systems Fall 2001 CMPUT 391: Transactions & Concurrency Control Dr. Osmar R. Zaïane University of Alberta Chapters 18 and 19 of Textbook Course Content Introduction Database Design
BookKeeper overview. Table of contents
by Table of contents 1 BookKeeper overview...2 1.1 BookKeeper introduction... 2 1.2 In slightly more detail...2 1.3 Bookkeeper elements and concepts...3 1.4 Bookkeeper initial design... 3 1.5 Bookkeeper
Understanding Windows File System Transactions
Understanding Windows File System Transactions Christian Allred Senior Software Development Engineer Microsoft Agenda Filesystems Today Transactional NTFS (TxF) TxF Scenarios Distributed TxF Transactions
Logistics. Database Management Systems. Chapter 1. Project. Goals for This Course. Any Questions So Far? What This Course Cannot Do.
Database Management Systems Chapter 1 Mirek Riedewald Many slides based on textbook slides by Ramakrishnan and Gehrke 1 Logistics Go to http://www.ccs.neu.edu/~mirek/classes/2010-f- CS3200 for all course-related
Introduction to Database Systems CS4320. Instructor: Christoph Koch [email protected] CS 4320 1
Introduction to Database Systems CS4320 Instructor: Christoph Koch [email protected] CS 4320 1 CS4320/1: Introduction to Database Systems Underlying theme: How do I build a data management system? CS4320
UVA. Failure and Recovery. Failure and inconsistency. - transaction failures - system failures - media failures. Principle of recovery
Failure and Recovery Failure and inconsistency - transaction failures - system failures - media failures Principle of recovery - redundancy - DB can be protected by ensuring that its correct state can
The ConTract Model. Helmut Wächter, Andreas Reuter. November 9, 1999
The ConTract Model Helmut Wächter, Andreas Reuter November 9, 1999 Overview In Ahmed K. Elmagarmid: Database Transaction Models for Advanced Applications First in Andreas Reuter: ConTracts: A Means for
Special Relativity and the Problem of Database Scalability
Special Relativity and the Problem of Database Scalability James Starkey NimbusDB, Inc. The problem, some jargon, some physics, a little theory, and then NimbusDB. Problem: Database systems scale badly
Information Systems. Computer Science Department ETH Zurich Spring 2012
Information Systems Computer Science Department ETH Zurich Spring 2012 Lecture VI: Transaction Management (Recovery Manager) Recovery Manager ETH Zurich, Spring 2012 Information Systems 3 Failure Recovery
BPMN by example. Bizagi Suite. Copyright 2014 Bizagi
BPMN by example Bizagi Suite Recruitment and Selection 1 Table of Contents Scope... 2 BPMN 2.0 Business Process Modeling Notation... 2 Why Is It Important To Model With Bpmn?... 2 Introduction to BPMN...
Recovery and the ACID properties CMPUT 391: Implementing Durability Recovery Manager Atomicity Durability
Database Management Systems Winter 2004 CMPUT 391: Implementing Durability Dr. Osmar R. Zaïane University of Alberta Lecture 9 Chapter 25 of Textbook Based on slides by Lewis, Bernstein and Kifer. University
Chapter 6 The database Language SQL as a tutorial
Chapter 6 The database Language SQL as a tutorial About SQL SQL is a standard database language, adopted by many commercial systems. ANSI SQL, SQL-92 or SQL2, SQL99 or SQL3 extends SQL2 with objectrelational
The first time through running an Ad Hoc query or Stored Procedure, SQL Server will go through each of the following steps.
SQL Query Processing The first time through running an Ad Hoc query or Stored Procedure, SQL Server will go through each of the following steps. 1. The first step is to Parse the statement into keywords,
File System Design and Implementation
Transactions and Reliability Sarah Diesburg Operating Systems CS 3430 Motivation File systems have lots of metadata: Free blocks, directories, file headers, indirect blocks Metadata is heavily cached for
Crashes and Recovery. Write-ahead logging
Crashes and Recovery Write-ahead logging Announcements Exams back at the end of class Project 2, part 1 grades tags/part1/grades.txt Last time Transactions and distributed transactions The ACID properties
Crash Recovery. Chapter 18. Database Management Systems, 3ed, R. Ramakrishnan and J. Gehrke
Crash Recovery Chapter 18 Database Management Systems, 3ed, R. Ramakrishnan and J. Gehrke Review: The ACID properties A tomicity: All actions in the Xact happen, or none happen. C onsistency: If each Xact
INTRODUCTION TO DATABASE SYSTEMS
1 INTRODUCTION TO DATABASE SYSTEMS Exercise 1.1 Why would you choose a database system instead of simply storing data in operating system files? When would it make sense not to use a database system? Answer
A Taxonomy of Partitioned Replicated Cloud-based Database Systems
A Taxonomy of Partitioned Replicated Cloud-based Database Divy Agrawal University of California Santa Barbara Kenneth Salem University of Waterloo Amr El Abbadi University of California Santa Barbara Abstract
Chapter 14: Recovery System
Chapter 14: Recovery System Chapter 14: Recovery System Failure Classification Storage Structure Recovery and Atomicity Log-Based Recovery Remote Backup Systems Failure Classification Transaction failure
Chapter 10. Backup and Recovery
Chapter 10. Backup and Recovery Table of Contents Objectives... 1 Relationship to Other Units... 2 Introduction... 2 Context... 2 A Typical Recovery Problem... 3 Transaction Loggoing... 4 System Log...
CPS221 Lecture - ACID Transactions
Objectives: CPS221 Lecture - ACID Transactions Last Revised 7/20/11 1.To introduce the notion of a transaction and the ACID properties of a transaction 2.To introduce the notion of the state of a transaction
Datenbanksysteme II: Implementation of Database Systems Recovery Undo / Redo
Datenbanksysteme II: Implementation of Database Systems Recovery Undo / Redo Material von Prof. Johann Christoph Freytag Prof. Kai-Uwe Sattler Prof. Alfons Kemper, Dr. Eickler Prof. Hector Garcia-Molina
(Pessimistic) Timestamp Ordering. Rules for read and write Operations. Pessimistic Timestamp Ordering. Write Operations and Timestamps
(Pessimistic) stamp Ordering Another approach to concurrency control: Assign a timestamp ts(t) to transaction T at the moment it starts Using Lamport's timestamps: total order is given. In distributed
How To Build Cloud Storage On Google.Com
Building Scalable Cloud Storage Alex Kesselman [email protected] Agenda Desired System Characteristics Scalability Challenges Google Cloud Storage What does a customer want from a cloud service? Reliability
Low-Latency Multi-Datacenter Databases using Replicated Commit
Low-Latency Multi-Datacenter Databases using Replicated Commit Hatem Mahmoud, Faisal Nawab, Alexander Pucher, Divyakant Agrawal, Amr El Abbadi University of California Santa Barbara, CA, USA {hatem,nawab,pucher,agrawal,amr}@cs.ucsb.edu
Distribution transparency. Degree of transparency. Openness of distributed systems
Distributed Systems Principles and Paradigms Maarten van Steen VU Amsterdam, Dept. Computer Science [email protected] Chapter 01: Version: August 27, 2012 1 / 28 Distributed System: Definition A distributed
Distributed Database Management Systems
Distributed Database Management Systems (Distributed, Multi-database, Parallel, Networked and Replicated DBMSs) Terms of reference: Distributed Database: A logically interrelated collection of shared data
Database Tuning and Physical Design: Execution of Transactions
Database Tuning and Physical Design: Execution of Transactions David Toman School of Computer Science University of Waterloo Introduction to Databases CS348 David Toman (University of Waterloo) Transaction
Distributed Databases: what is next?
Distributed Databases: what is next? Massive distribution / replication Nested transactions Transactions and web services Summary and final remarks New Challenges DDB and transactions in the past - few
Transactions. SET08104 Database Systems. Copyright @ Napier University
Transactions SET08104 Database Systems Copyright @ Napier University Concurrency using Transactions The goal in a concurrent DBMS is to allow multiple users to access the database simultaneously without
Definition of SOA. Capgemini University Technology Services School. 2006 Capgemini - All rights reserved November 2006 SOA for Software Architects/ 2
Gastcollege BPM Definition of SOA Services architecture is a specific approach of organizing the business and its IT support to reduce cost, deliver faster & better and leverage the value of IT. November
Transactions and Concurrency Control. Goals. Database Administration. (Manga Guide to DB, Chapter 5, pg 125-137, 153-160) Database Administration
Transactions and Concurrency Control (Manga Guide to DB, Chapter 5, pg 125-137, 153-160) 1 Goals Database Administration Concurrency Control 2 Database Administration All large and small databases need
To Install EdiView IP camera utility on Android device, follow the following instructions:
To Install EdiView IP camera utility on Android device, follow the following instructions: To install Ediview application, launch Market. (In your Android device s All apps menu). Click magnifier icon
Database Internals (Overview)
Database Internals (Overview) Eduardo Cunha de Almeida [email protected] Outline of the course Introduction Database Systems (E. Almeida) Distributed Hash Tables and P2P (C. Cassagne) NewSQL (D. Kim
Avoid a single point of failure by replicating the server Increase scalability by sharing the load among replicas
3. Replication Replication Goal: Avoid a single point of failure by replicating the server Increase scalability by sharing the load among replicas Problems: Partial failures of replicas and messages No
High Availability for Database Systems in Cloud Computing Environments. Ashraf Aboulnaga University of Waterloo
High Availability for Database Systems in Cloud Computing Environments Ashraf Aboulnaga University of Waterloo Acknowledgments University of Waterloo Prof. Kenneth Salem Umar Farooq Minhas Rui Liu (post-doctoral
Design Patterns for Distributed Non-Relational Databases
Design Patterns for Distributed Non-Relational Databases aka Just Enough Distributed Systems To Be Dangerous (in 40 minutes) Todd Lipcon (@tlipcon) Cloudera June 11, 2009 Introduction Common Underlying
Distributed Transactions
Distributed Transactions 1 Transactions Concept of transactions is strongly related to Mutual Exclusion: Mutual exclusion Shared resources (data, servers,...) are controlled in a way, that not more than
Derby: Replication and Availability
Derby: Replication and Availability Egil Sørensen Master of Science in Computer Science Submission date: June 2007 Supervisor: Svein Erik Bratsberg, IDI Norwegian University of Science and Technology Department
CAP Theorem and Distributed Database Consistency. Syed Akbar Mehdi Lara Schmidt
CAP Theorem and Distributed Database Consistency Syed Akbar Mehdi Lara Schmidt 1 Classical Database Model T2 T3 T1 Database 2 Databases these days 3 Problems due to replicating data Having multiple copies
Goals. Managing Multi-User Databases. Database Administration. DBA Tasks. (Kroenke, Chapter 9) Database Administration. Concurrency Control
Goals Managing Multi-User Databases Database Administration Concurrency Control (Kroenke, Chapter 9) 1 Kroenke, Database Processing 2 Database Administration All large and small databases need database
Concur Travel User Guide
1) Home Tab Includes the Travel Wizard for travel searches, Alerts for unused ticket availability and profile expiration notices, Company Notes for information and resources and My Trips for Upcoming Trips
Chapter Outline. Chapter 2 Distributed Information Systems Architecture. Middleware for Heterogeneous and Distributed Information Systems
Prof. Dr.-Ing. Stefan Deßloch AG Heterogene Informationssysteme Geb. 36, Raum 329 Tel. 0631/205 3275 [email protected] Chapter 2 Architecture Chapter Outline Distributed transactions (quick
Note: This App is under development and available for testing on request. Note: This App is under development and available for testing on request. Note: This App is under development and available for
Topics. Introduction to Database Management System. What Is a DBMS? DBMS Types
Introduction to Database Management System Linda Wu (CMPT 354 2004-2) Topics What is DBMS DBMS types Files system vs. DBMS Advantages of DBMS Data model Levels of abstraction Transaction management DBMS
Using Kafka to Optimize Data Movement and System Integration. Alex Holmes @
Using Kafka to Optimize Data Movement and System Integration Alex Holmes @ https://www.flickr.com/photos/tom_bennett/7095600611 THIS SUCKS E T (circa 2560 B.C.E.) L a few years later... 2,014 C.E. i need
Tree-Based Consistency Approach for Cloud Databases
Tree-Based Consistency Approach for Cloud Databases Md. Ashfakul Islam Susan V. Vrbsky Department of Computer Science University of Alabama What is a cloud? Definition [Abadi 2009] shift of computer processing,
Recovery: An Intro to ARIES Based on SKS 17. Instructor: Randal Burns Lecture for April 1, 2002 Computer Science 600.416 Johns Hopkins University
Recovery: An Intro to ARIES Based on SKS 17 Instructor: Randal Burns Lecture for April 1, 2002 Computer Science 600.416 Johns Hopkins University Log-based recovery Undo logging Redo logging Restart recovery
Chapter 10: Distributed DBMS Reliability
Chapter 10: Distributed DBMS Reliability Definitions and Basic Concepts Local Recovery Management In-place update, out-of-place update Distributed Reliability Protocols Two phase commit protocol Three
Review: The ACID properties
Recovery Review: The ACID properties A tomicity: All actions in the Xaction happen, or none happen. C onsistency: If each Xaction is consistent, and the DB starts consistent, it ends up consistent. I solation:
File System Reliability (part 2)
File System Reliability (part 2) Main Points Approaches to reliability Careful sequencing of file system opera@ons Copy- on- write (WAFL, ZFS) Journalling (NTFS, linux ext4) Log structure (flash storage)
Cloud DBMS: An Overview. Shan-Hung Wu, NetDB CS, NTHU Spring, 2015
Cloud DBMS: An Overview Shan-Hung Wu, NetDB CS, NTHU Spring, 2015 Outline Definition and requirements S through partitioning A through replication Problems of traditional DDBMS Usage analysis: operational
ZooKeeper. Table of contents
by Table of contents 1 ZooKeeper: A Distributed Coordination Service for Distributed Applications... 2 1.1 Design Goals...2 1.2 Data model and the hierarchical namespace...3 1.3 Nodes and ephemeral nodes...
Concur Mobile App Quick Overview
Concur Mobile App Quick Overview Table of Contents Mobile app overview.....3 Registering for mobile app...3 Launching the mobile app....4 Using the mobile app....5 Information for delegates.7 Information
Amr El Abbadi. Computer Science, UC Santa Barbara [email protected]
Amr El Abbadi Computer Science, UC Santa Barbara [email protected] Collaborators: Divy Agrawal, Sudipto Das, Aaron Elmore, Hatem Mahmoud, Faisal Nawab, and Stacy Patterson. Client Site Client Site Client
Operating Systems: Basic Concepts and History
Introduction to Operating Systems Operating Systems: Basic Concepts and History An operating system is the interface between the user and the architecture. User Applications Operating System Hardware Virtual
Entangled Transactions. Nitin Gupta, Milos Nikolic, Sudip Roy, Gabriel Bender, Lucja Kot, Johannes Gehrke, Christoph Koch
Entangled Transactions Nitin Gupta, Milos Nikolic, Sudip Roy, Gabriel Bender, Lucja Kot, Johannes Gehrke, Christoph Koch Coordination In the age of Web 2.0, users increasingly coordinate on data-driven
SwiftScale: Technical Approach Document
SwiftScale: Technical Approach Document Overview This document outlines a technology embodiment of the SwiftScale application including the technology, deployment and application architectures. Technology
FN:PCMCSET-M1.DOC. PCMCSET SOFTWARE for ATS Master Clocks System Clocks and Displays
FN:PCMCSET-M1.DOC PCMCSET SOFTWARE for ATS Master Clocks System Clocks and Displays ATS FREE SOFTWARE AGREEMENT Applied Technical Systems (ATS) grants you the right to use this software according to the
bigdata Managing Scale in Ontological Systems
Managing Scale in Ontological Systems 1 This presentation offers a brief look scale in ontological (semantic) systems, tradeoffs in expressivity and data scale, and both information and systems architectural
Standard Bank Mobile Banking Frequently Asked Questions FAQ s
Standard Bank Mobile Banking Frequently Asked Questions FAQ s Frequently asked questions Purpose The frequently asked questions (FAQ s) are designed to supply answers to possible questions that customers
Introduction to Database Management Systems
Database Administration Transaction Processing Why Concurrency Control? Locking Database Recovery Query Optimization DB Administration 1 Transactions Transaction -- A sequence of operations that is regarded
How To Install the Virtual Learning App
Table of Contents Installation Instructions... 2 MAC: Using Firefox... 2 MAC: Using Chrome... 6 Disabling PepperFlash... 9 MAC: Using Safari Unsafe Mode We Can t Control So Use Firefox or Chrome... 11
High Availability with Postgres Plus Advanced Server. An EnterpriseDB White Paper
High Availability with Postgres Plus Advanced Server An EnterpriseDB White Paper For DBAs, Database Architects & IT Directors December 2013 Table of Contents Introduction 3 Active/Passive Clustering 4
Transaction Management in Distributed Database Systems: the Case of Oracle s Two-Phase Commit
Transaction Management in Distributed Database Systems: the Case of Oracle s Two-Phase Commit Ghazi Alkhatib Senior Lecturer of MIS Qatar College of Technology Doha, Qatar [email protected] and Ronny
Weather Direct Displays show Lost Forecast (blank boxes in the picture icons)
Weather Direct Displays show Lost Forecast (blank boxes in the picture icons) Many routine events can cause a Lost Forecast situation. Examples include: Power outage Change batteries Internet down in your
Lecture 18: Reliable Storage
CS 422/522 Design & Implementation of Operating Systems Lecture 18: Reliable Storage Zhong Shao Dept. of Computer Science Yale University Acknowledgement: some slides are taken from previous versions of
