Advanced patterns for use with Event Sourced systems - James Geall - DDD Europe 2023

  Рет қаралды 3,136

Domain-Driven Design Europe

Domain-Driven Design Europe

Күн бұрын

Пікірлер: 9
@JohnMcclaned
@JohnMcclaned 6 ай бұрын
23:50 - great idea to zoom in on his face when he is explaining something specific on his slides lmao
@Francis-b9e
@Francis-b9e Ай бұрын
this save my life
@jeafoo
@jeafoo 3 ай бұрын
Please share a link to the referenced book - Patterns of Software Architecture 5 (POSA5)
@racm2023
@racm2023 23 күн бұрын
Watch in 1.25x 😂
@mehdigoharinezhad1368
@mehdigoharinezhad1368 6 ай бұрын
Thanks it is impressive and useful talk❤
@vincentcifello4435
@vincentcifello4435 6 ай бұрын
I don’t see how that Reservation pattern could possibly work with concurrent users. Is there a more detailed description?
@ByronRuth
@ByronRuth 6 ай бұрын
There is still the consistency boundary around the availability of tickets/orders (effectively a counter) which means concurrent orders can be in flight, but only those that are reserved and finalized prior to running out of tickets will be accepted. Any other orders that are in-flight won't be finalized since the tickets ran out and thus are rejected by the end of the lifecycle.
@vincentcifello4435
@vincentcifello4435 6 ай бұрын
​ @ByronRuth Thank you, Byron. The ReserveTicketCommand reads and updates the TicketInventory resulting in a TicketsReservedEvent. The ProcessManager, based on that fact, assigns tickets to the order, but the deed is done as soon as the TicketReservedEvent occurs. If 2 concurrent ReserveTicketCommands read the TicketInventory (say one ticket left), it seems that this could result in 2 TicketReservedEvents. The question is how can this be implemented to prevent such an occurrence. (Even in a SQL database table within a transaction, concurrent read value->do a check->update value operations can fail under high concurrency unless you use pessimistic type locking.) JG qualifies this by saying "if you really have a problem with that, you can shard it into pulse (is that what he said?)" Why would he say this? What problem is "made small enough"? I just don't see how the ReserveTicketCommand->TicketInventory->TicketReservedEvent could possibly be implemented to avoid the potential concurrency issues.
@vincentcifello4435
@vincentcifello4435 6 ай бұрын
@@ByronRuth Thank you, Byron. ReserveTicketsCommand -> TicketInventory -> TicketsReservedEvent. Once the TicketsReserved event occurs, the deed is done. The tickets have already been reserved. No? He doesn't mention any other checks of inventory. The issue is how TicketInventory can possibly be implemented without having potential concurrency issues resulting in negative inventory. Even in a SQL database table's single row, concurrent transactions that read value->do a check->update value can fail under high concurrency without performance-destroying pessimistic locks. JG says something about "if you have a problem with that you can shard it into Pulse".Is that meant to address the potential concurrency issues? What problem is he talking about?
Event Driven Architecture & Governance in action - Wim Debreuck - DDD Europe 2023
52:27
Domain-Driven Design Europe
Рет қаралды 1,4 М.
Do you choose Inside Out 2 or The Amazing World of Gumball? 🤔
00:19
Офицер, я всё объясню
01:00
История одного вокалиста
Рет қаралды 5 МЛН
Modern Trade-off Analysis for Software Architecture - Neal Ford - DDD Europe
52:46
Domain-Driven Design Europe
Рет қаралды 6 М.
Многоликий DDD - Сергей Баранов
1:19:18
Конференция ArchDays
Рет қаралды 18 М.
Turn your startup in a stayup with DDD - Marijn Huizendveld
48:13
Domain-Driven Design Europe
Рет қаралды 6 М.
Bounded Contexts - Eric Evans - DDD Europe 2020
34:02
Domain-Driven Design Europe
Рет қаралды 77 М.
Balancing Coupling in Software Design - Vlad Khononov - DDD Europe 2023
50:43
Domain-Driven Design Europe
Рет қаралды 9 М.
Event Sourcing in Action - Anita Kvamme - DDD Europe 2023
50:21
Domain-Driven Design Europe
Рет қаралды 2,3 М.
3x 2x 1x 0.5x 0.3x... #iphone
0:10
Aksel Alze
Рет қаралды 2,7 МЛН
Проверил, как вам?
1:01
Коннор
Рет қаралды 1,2 МЛН
Что стало с Motorola Razr ?
1:01
МАДНЕСС
Рет қаралды 918 М.
Где купить колонку Алиса в ОАЭ или США ?
0:17
Electronics_latvia
Рет қаралды 3,6 МЛН