Lesson 109 - BASE Transactions and Eventual Consistency

  Рет қаралды 4,990

Mark Richards

Mark Richards

Күн бұрын

Пікірлер: 5
@oleksiim1283
@oleksiim1283 3 жыл бұрын
Awesome, it could not be an even more clear explanation. Well done Mark. Thank You!
@gerarldlee
@gerarldlee 2 жыл бұрын
Thanks Mark! I purchased both of your & Neal Ford's book. Also the explanations in this video is very clear.
@mgiriprasad123
@mgiriprasad123 3 жыл бұрын
As usual a great video. Very informative. In event synchronisation pattern - The customer information service is deleting the record in the database and publishing the message to the queue/topic, what happens if either the database or the publish fail?
@markrichards5014
@markrichards5014 3 жыл бұрын
In the event-based scenario, I would always do the database action first. That way, if the database action fails, I haven't published the message yet. In the event I cannot publish the message, I would either reverse the database action or store off the event message for publishing at a later time.
@dimitrikalinin3301
@dimitrikalinin3301 3 ай бұрын
You still have guarantees with the technologies used. Firstly, there are ACID database transactions. You store your payload and the instruction to place a message into the queue within a single atomic transaction (transactional outbox table). Secondly, the queue uses a publisher confirms mechanism. You do not mark your instruction as executed until you receive confirmation from the message broker (using message relay). Thirdly, the consumer acknowledgment mechanism ensures that the message remains in the queue until it is successfully consumed. Of course, implementing retry mechanisms and ensuring idempotent communication throughout the entire processing chain is essential, but this approach is reliable.
Lesson 108 - The Role of a Software Architect
9:12
Mark Richards
Рет қаралды 4,7 М.
Lesson 110 - The Pros and Cons of Event Driven Architecture
11:09
Mark Richards
Рет қаралды 9 М.
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29
Cool Parenting Gadget Against Mosquitos! 🦟👶 #gen
00:21
TheSoul Music Family
Рет қаралды 32 МЛН
REAL 3D brush can draw grass Life Hack #shorts #lifehacks
00:42
MrMaximus
Рет қаралды 12 МЛН
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 17 МЛН
Lesson 53 - Distributed Transactions Using Sagas
8:02
Mark Richards
Рет қаралды 9 М.
Lesson 124 - Challenges of Distributed Architectures
8:57
Mark Richards
Рет қаралды 4,1 М.
Lesson 116 - Negotiation Tips for Software Architects
13:19
Mark Richards
Рет қаралды 4,9 М.
Lesson 100 - My Architecture Journey: Lessons Learned
14:47
Mark Richards
Рет қаралды 4,5 М.
Project Scheduling Lecture 1
28:09
Nadeem
Рет қаралды 41
Lesson 105 - Stamp Coupling
8:27
Mark Richards
Рет қаралды 4 М.
Lesson 131 - Microservices vs Event-Driven Architecture
8:19
Mark Richards
Рет қаралды 11 М.
IntC3T1PC4
17:01
Sean Moran
Рет қаралды 109
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29