Sistemas Transaccionales Práctica 2
Sistemas Transaccionales Práctica 2
Sistemas Transaccionales Práctica 2
Sistemas Transaccionales 2
Sistemas Transaccionales
Bogotá D.C
2024
2
¿Cuáles fueron los aprendizajes obtenidos al realizar esta guía?, lista como
RTA:
- cómo realizar un commit de dos fases y para qué casos se puede implementar.
datos.
cumplir la prueba acid sin importar cual sea desde que sea relacionada, en
cambio con motores de bases de datos no relacionales, toca mirar bien cada
de dos fases debido que era la primera vez usandolo y para resolver dudas y problemas se
Lea el siguiente artículo Weihai Yu, A dynamic two-phase commit protocol for
self-adapting services.
(Proporcionado por el docente).
The article "A Dynamic Two-Phase Commit Protocol for Self-Adapting Services" delves into
the challenges posed by next-generation applications built on Web services, particularly
regarding the coordination protocols necessary to ensure the integrity of distributed
transactions. Traditional protocols like the two-phase commit (2PC) have been widely used
but may not be optimally suited for the dynamic and diverse nature of modern Web services.
3
This paper specifically focuses on analyzing existing optimizations of the 2PC protocol and
proposes an improved version tailored to the needs of Web services-based applications. The
authors highlight the importance of accommodating the unique characteristics of these
applications, which often involve a network of heterogeneous services that may vary in terms
of performance, availability, and reliability.
One key innovation presented in the paper is the dynamic selection of presumptions by
individual service providers within the 2PC protocol. This dynamic adaptation allows each
service provider to choose the most suitable presumption for a given distributed transaction
based on factors such as its own capabilities and the current state of the system. By
enabling this flexibility, the protocol aims to enhance the efficiency and effectiveness of
transaction coordination in Web services environments.
Importantly, the proposed protocol is designed to integrate seamlessly with existing 2PC
variants without introducing additional overhead in terms of message exchange or resource
utilization. This ensures that the transition to the improved protocol is smooth and
cost-effective for organizations already utilizing 2PC or similar coordination mechanisms.
Overall, the article contributes to the ongoing efforts to advance the state-of-the-art in
transaction management for Web services, offering a practical and efficient solution that
addresses the evolving needs of modern distributed applications. Through empirical
evaluation and theoretical analysis, the authors demonstrate the effectiveness and viability
of the proposed protocol, paving the way for its adoption in real-world scenarios where
dynamic adaptation and self-adaptation are paramount.
Elabore una línea de tiempo donde relacione la evolución de los diferentes tipos de
Sistemas Transaccionales.
4
Procesamient sí sí sí sí sí
o controlado
Atomicidad sí sí sí sí sí
Consistencia sí sí sí sí sí
Aislamiento sí sí sí sí sí
Durabilidad sí sí sí sí sí
6
luego debemos crear un archivo el cual llamamos “cambios.sql” y con algún editor de código
le ponemos el comando que deseemos.
7
luego de eso desde la terminal del dispositivo ejecutamos un comando para llamar a
cambios.sql
cuando se ejecute nos pedirá la contraseña del usuario pero si usamos el predeterminado
de xampp este no contará con contraseña.
Ahora pasaremos a la última fase para observar que los cambios en los datos se confirmen
cómo permanentes.
ya con esto terminamos con una transacción satisfactoria y se visualiza con un cambio en la
base de datos permanente.
9
almacenados).
Cree y responda:
Una transacción es una serie de operaciones que se ejecutan como una unidad
transacción
En este ejemplo se hace una simulación de un error, donde se quería modificar la fecha de
una factura, pero no se introdujo que factura se quería cambiar la fecha así que se
Usando el procedure que genera 1’000.000 de datos luego de 3 horas corriendo el proceso
tanto en local con xamp y el servidor ninguno concluyó el proceso, así que podemos