Тёмный

Gotchas! in Event Driven Architecture - What you need to be aware of 

CodeOpinion
Подписаться 87 тыс.
Просмотров 13 тыс.
50% 1

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 29   
@LuisRuizHalo
@LuisRuizHalo 2 года назад
In addition, duplication may happen even from the system design of the broker as it requires to be highly available. Moreover, a replication strategy between data held among shards is required to be implemented, leading into duplication of messages regardless our acknowledgment mechanism.
@brightshadow9480
@brightshadow9480 11 месяцев назад
Tip: don't use a full white background. Those with HDR monitors thank you.
@redouane5626
@redouane5626 2 года назад
Your videos are concise and contain tons of information, Thanks!
@CodeOpinion
@CodeOpinion 2 года назад
Thanks!
@kenjohnsiosan9707
@kenjohnsiosan9707 2 года назад
I really love watching your videos so far. but as a beginner like me where I could possibly start implementing this kind of pattern. Do you have sample projects for references.. appreciate some advise. thank you sir. ☺️
@CodeOpinion
@CodeOpinion 2 года назад
I'm working on something more complete that involves a lot of the concepts I talk about in these videos. Stay tuned!
@hrtummala
@hrtummala 2 года назад
Gotcha🙂, question on DLQ ..if your consumer is calling I/O service to make state changes then there is always a great chance that newer message gets successful than the old message in DLQ. How do we handle this ?
@CodeOpinion
@CodeOpinion 2 года назад
Depends what your consumer is doing. This one is hard to explain via a comment and I should probably create a video about ordering and expectations. The short answer is don't create event consumers that try and use event state to maintain some type of their own state. Expect to consume out of order.
@hrtummala
@hrtummala 2 года назад
@@CodeOpinion thank you. Will look forward for the video.
@rodrigoalves8554
@rodrigoalves8554 9 месяцев назад
Congratulations for the high level of your channel! Great content! Best Regards
@shahrazkl
@shahrazkl 2 года назад
Another great topic and great video! Thank you!
@CodeOpinion
@CodeOpinion 2 года назад
Glad you enjoyed it!
@nieve4939
@nieve4939 2 года назад
Regarding handling failures- you're suggesting retrials might have an impact on the overall processing times of other messages by the consumer. But, aren't there buses and brokers that will reintroduce the failed message into the back of the queue, so that other messages will be handled before the failed one will get the retry? In some cases you get this by default, no?
@CodeOpinion
@CodeOpinion 2 года назад
At the end I'm suggesting each individual http call to the external service be driven by an individual message in a queue. In that case it will not have an impact on any other work. How it was implemented in the example would have an impact because all the http calls were made within the same process. If one causes an exception is would fail the message. If it was retried, it would end up making duplicate calls that could have worked the first time.
@Greenthum6
@Greenthum6 2 года назад
You make pizza delivery sound pretty difficult:) Anyways, great info on the topic again!
@CodeOpinion
@CodeOpinion 2 года назад
Thanks! 😃
@EverydayRoadster
@EverydayRoadster 2 года назад
The topic of your talk really is messaging, not eventing.
@CodeOpinion
@CodeOpinion 2 года назад
Agreed.
@aleksg2925
@aleksg2925 2 года назад
Love your videos! At 4:30 state update and message sending is in two separate transactions. I know you're familiar with the outbox pattern (you have a brilliant video about it) - dont you think these two operations _always_ need to be done in one transaction? If not, you have 'at most once delivery'. You wont even have eventual consistency - in a large production system you're basically guaranteed inconsistency?
@CodeOpinion
@CodeOpinion 2 года назад
Correct, if you aren't using the outbox pattern then you could fail to publish the event to the broker but still have saved state. If you are using the outbox pattern, then you can also introduce publishing duplicate messages if the publish occurs to the broker, but fails to remove from the outbox.
@aleksg2925
@aleksg2925 2 года назад
@@CodeOpinion Thanks for your answer! Indeed, though duplicate messages seems like a much better problem to have 😄
@idan5323
@idan5323 2 года назад
Hey Derek, nice video! I have a question: What do you think about the design of the Blazor Hero template? I would love to hear your opinion about that
@CodeOpinion
@CodeOpinion 2 года назад
I'll take a look. Can't say I've looked at Blazor too much really.
@idan5323
@idan5323 2 года назад
@@CodeOpinion Well I actually think blazor is great. I was a bit skeptic at the beginning, but I found out that you can build good looking apps with little effort and almost no js. The performence is pretty good aswell. There are improvements to be made, like better hot reload, but as of now I think it is totally production ready and a real game changer
@gokera.9935
@gokera.9935 2 года назад
Nice one, thanks.
@sanjevsaalaivazan7786
@sanjevsaalaivazan7786 2 года назад
Thanks a Ton, Will try to send more often.
@CodeOpinion
@CodeOpinion 2 года назад
Thank you! I really appreciate that!
@Nekroido
@Nekroido 2 года назад
Thanks!
@CodeOpinion
@CodeOpinion 2 года назад
Welcome!
Далее
Building a Webhooks System
10:35
Просмотров 57 тыс.
НОВАЯ "БУХАНКА" 2024. ФИНАЛ
1:39:04
Просмотров 173 тыс.
Event Sourcing: Rehydrating Aggregates with Snapshots
14:54
Eventual Consistency is a UX Nightmare
11:23
Просмотров 15 тыс.
Wix.com -  5 Event Driven Architecture Pitfalls!
13:36
Event Carried State Transfer: Keep a local cache!
11:49
Q&A: Messaging, CQRS & Event Sourcing!
14:37
Просмотров 10 тыс.
НОВАЯ "БУХАНКА" 2024. ФИНАЛ
1:39:04
Просмотров 173 тыс.