diff --git a/w11-eda/11-eda.html b/w11-eda/11-eda.html index 8ff6fdf0b8c29b27b2b89ff4048eef1db1dd83d1..f6a6f2ab4aa18e18c5bb0dfff4034241ee60faf8 100644 --- a/w11-eda/11-eda.html +++ b/w11-eda/11-eda.html @@ -28,6 +28,10 @@ width: 30%; vertical-align: middle; } + p img.logo-1 { + width: 60%; + vertical-align: middle; + } </style> </head> @@ -111,7 +115,7 @@ --- - ### 🧭 patterns et cas d'usage courants + ### 🧭 cas d'usage courants * 🛒 e-commerce : gestion des commandes, mises à jour de stock * 🌡️ IoT : traitement de données de capteurs @@ -119,6 +123,73 @@ * 🍡 Micro-services : communication asynchrones * 🗄️ CDC : Change-Data-Capture : capture des changement d'une base de données + --- + + ### Patterns + + #### [Event Sourcing](https://martinfowler.com/eaaDev/EventSourcing.html) + +  <!-- .element: class="logo" --> +  <!-- .element: class="logo" --> + + * liste des évènements + * possibilité de reconstruire entièrement l'état de l'application + * rejeu d'évènements + + --- + + ### Patterns + + #### [CQRS](https://martinfowler.com/bliki/CQRS.html) + +  <!-- .element: class="logo-1" --> + + * séparation des _Query_ (lecture) et des _Command_ (écriture) + * L'EDA implémente souvent la partie _Command_ + * ⚠️ Consistence des données + + --- + + #### 🛣️ Road to CQRS (1/3) + +  + + --- + + #### 🛣️ Road to CQRS (2/3) + +  + + --- + + #### 🛣️ Road to CQRS (3/3) + +  + + --- + + #### [Outbox](https://microservices.io/patterns/data/transactional-outbox.html) + + rend l'écriture des messages (évènements) transactionnelle + +  + + --- + + #### [CDC](https://sudohainguyen.github.io/2023-11-20-change-data-capture/) : Change-Data-Capture + + synchroniser des systèmes, intégrer de l'EDA dans du legacy + +  + + (Kafka Connect / Debezium) + + --- + + #### [Event types](https://eda-visuals.boyney.io/visuals/event-types) + +  + </textarea> </section> diff --git a/w11-eda/images/cdc.png b/w11-eda/images/cdc.png new file mode 100644 index 0000000000000000000000000000000000000000..1ba93a0a9bc45fb03a1a4709d3ad798cbcf5a7e3 Binary files /dev/null and b/w11-eda/images/cdc.png differ diff --git a/w11-eda/images/cqrs-1.png b/w11-eda/images/cqrs-1.png new file mode 100644 index 0000000000000000000000000000000000000000..fbb23d421f9895b69c6540f7d7751afd04ec6e2f Binary files /dev/null and b/w11-eda/images/cqrs-1.png differ diff --git a/w11-eda/images/cqrs-2.png b/w11-eda/images/cqrs-2.png new file mode 100644 index 0000000000000000000000000000000000000000..0e917050debffe28134cd948bd9157a134b58503 Binary files /dev/null and b/w11-eda/images/cqrs-2.png differ diff --git a/w11-eda/images/cqrs-3.png b/w11-eda/images/cqrs-3.png new file mode 100644 index 0000000000000000000000000000000000000000..c6d1d64cb603d98536a85db2763343be116413c3 Binary files /dev/null and b/w11-eda/images/cqrs-3.png differ diff --git a/w11-eda/images/cqrs.png b/w11-eda/images/cqrs.png new file mode 100644 index 0000000000000000000000000000000000000000..77a18e831e675b00f6a621738d44a7667fd1f220 Binary files /dev/null and b/w11-eda/images/cqrs.png differ diff --git a/w11-eda/images/es-1.gif b/w11-eda/images/es-1.gif new file mode 100644 index 0000000000000000000000000000000000000000..b7d0bb5ed94cb8aefc8478b841fcd150ef3820db Binary files /dev/null and b/w11-eda/images/es-1.gif differ diff --git a/w11-eda/images/es-2.gif b/w11-eda/images/es-2.gif new file mode 100644 index 0000000000000000000000000000000000000000..ae72b5cd65c428ebc13146e414b874c092de3661 Binary files /dev/null and b/w11-eda/images/es-2.gif differ diff --git a/w11-eda/images/event-types.png b/w11-eda/images/event-types.png new file mode 100644 index 0000000000000000000000000000000000000000..6af251c61c47cb55aa58ee451d8bd9e8b71f2a9a Binary files /dev/null and b/w11-eda/images/event-types.png differ diff --git a/w11-eda/images/outbox.png b/w11-eda/images/outbox.png new file mode 100644 index 0000000000000000000000000000000000000000..0aaff7b058e84bbd05c266a451d5247adb0b3ad4 Binary files /dev/null and b/w11-eda/images/outbox.png differ