Event-Driven Architecture: Explained in 7 Minutes!

  Рет қаралды 84,301

Alex Hyett

Alex Hyett

Күн бұрын

Event-driven architecture is an essential architectural pattern used with microservices. In this video, I cover what it is, when you should use it and the pros and cons.
☕️ I don’t accept paid sponsorships and I have turned off mid-video ads. You’re welcome! If you would like to support my channel see: ko-fi.com/alexhyett
📨 Join my free weekly newsletter for advice, technology and more: newsletter.alexhyett.com
🗺️ Backend Developer Roadmap: www.alexhyett.com/backend-dev...
📝 Related blog post: www.alexhyett.com/event-drive...
🎓 RECOMMENDED COURSES (Use code FRIENDS10 for 10% off)
The Complete Web Developer Course - academy.zerotomastery.io/a/af...
The Complete Junior to Senior Web Developer Roadmap - academy.zerotomastery.io/a/af...
Complete SQL + Databases Bootcamp - academy.zerotomastery.io/a/af...
📚 RECOMMENDED BOOKS
Clean Code - geni.us/5AEwj2
Domain Driven Design - geni.us/WiR0Q0x
Design Patterns - geni.us/5ncUt
Developer Hegemony - geni.us/lAXy
Pragmatic Programmer - geni.us/GfNj9
Data Structures and Algorithms Made Easy - geni.us/sqg6kJ
Refactoring - geni.us/ufAP0mE
Pragmatic Thinking and Learning - geni.us/x81A
Microservices - geni.us/8vMA
🚀 MY FAVOURITE TOOLS
PIA VPN - piavpn.com/AlexHyett (86% off)
Visual Studio Code - code.visualstudio.com/
Obsidian - obsidian.md/
Notion - affiliate.notion.so/alexhyett
⏳ TIMESTAMPS
00:00 - What is Event Driven Architecture?
02:24 - When to use it?
03:12 - Advantages
04:41 - Disadvantages
You can check out more of my favourite tools on my website:
www.alexhyett.com/tech/
🔗 MY KEY LINKS
🌍 Blog - www.alexhyett.com/
🐘 Mastodon - social.alexhyett.com/@alex
🧑‍💻 WHO AM I
I’m Alex, a Software Developer and KZbin working in the UK. I make videos about software development to help developers with the skills they need to be senior developers. As well as this KZbin Channel, I also write articles on my website (alexhyett.com) as well as write a regular newsletter that contains some thoughts to help aspiring developers.
‼️ DISCLAIMERS
Some of the links in this description are affiliate links, for which I get a small commission, at no extra cost to you 🙂. I appreciate you supporting my channel so I can continue providing you with free software development content!
#coding #programming #developer

Пікірлер: 59
@faheemshahidkc
@faheemshahidkc 4 ай бұрын
i am so happy to easy this. because i am a self learning software developer. thanks a looot!!!! keep going!
@selebogosegatlaka4190
@selebogosegatlaka4190 3 ай бұрын
Amazing videos man, keep them coming. Thanks!
@RishiRajxtrim
@RishiRajxtrim Ай бұрын
thank you very much for covering so many aspects... so well.
@thenullpointer
@thenullpointer 10 ай бұрын
Hi! Nice explanation! I appreciate the balanced approach to discussing the pros and cons of event-driven architecture. It's important to consider both sides before making a decision, especially eventual consistency, and this video did a great job of laying that out!
@alexhyettdev
@alexhyettdev 10 ай бұрын
Thank you! I am glad you enjoyed it!
@lokithor83
@lokithor83 4 күн бұрын
very clear and informative.. Thanks Alex..
@smouflih
@smouflih 3 ай бұрын
Great explanation, thank you !
@vasanthbalaji4768
@vasanthbalaji4768 5 ай бұрын
Good and very detailed explanation.
@CodeOnBlocks
@CodeOnBlocks 23 күн бұрын
This was an excellent video, thank you! Subscribed. :)
@39_ganesh_ghodke98
@39_ganesh_ghodke98 2 ай бұрын
Thank you for this amazing video
@ArunChapagain-ir8st
@ArunChapagain-ir8st 2 ай бұрын
I love this explanation.. Great guy
@MarinaMarina-fr8ex
@MarinaMarina-fr8ex 6 ай бұрын
Great video!
@mundakamaal302
@mundakamaal302 Жыл бұрын
Hi Alex, your videos are precise, short and informative. I am loving it and watching it, however on this specific video, wouldn’t it be great to provide more comparative aspect between messages and event based architecture along with more used cases for each?
@alexhyettdev
@alexhyettdev Жыл бұрын
Thank you! Yes, I will make sure I do some videos on that in the future. I didn't want to cram too much in my first video on the topic.
@seanelias6478
@seanelias6478 5 ай бұрын
Thank you for the amazing explanation
@alexhyettdev
@alexhyettdev 5 ай бұрын
Glad it was helpful!
@joaopedrorocha4790
@joaopedrorocha4790 3 ай бұрын
Feels like the observer pattern but through a network.
@fuadadio
@fuadadio Ай бұрын
Great video.
@olliDeg
@olliDeg 10 ай бұрын
Great video! One questing about 3:53: Wouldn't you have the same kind of reliability if you installed a broker between the two services in an event driven architecture, as this would introduce asynchronous execution?
@alexhyettdev
@alexhyettdev 10 ай бұрын
Yes if reliability is your only concern then an event broker would work too. Event-driven architecture does tend to change how you view the architecture of your whole application.
@SPribyt
@SPribyt 3 ай бұрын
thank you!
@abdelbassetomiri530
@abdelbassetomiri530 10 ай бұрын
Hello, great video. I am fairly new to this, would you use EDA for this use case: due to Regulatory reasons the company needs to forward emails to certain recipients in the event of an agree-upon trigger. I am sorry if the question is too specific. keep up the good work.
@alexhyettdev
@alexhyettdev 10 ай бұрын
Thanks. Yes, that is quite specific and a difficult one to answer without knowing the system in detail. In theory, you could raise an EmailSent event but you would still need to read the message for the trigger word and then forward it.
@nkulmati
@nkulmati 8 ай бұрын
A brief dive into queue-based vs log-based would help to make this more complete (eg rabbitmq vs kafka)
@alexhyettdev
@alexhyettdev 7 ай бұрын
Sure I will add it to the list and I can do a video on that in the future.
@takatakboy
@takatakboy 10 ай бұрын
Wow this is the easiest explainer of event driven architecture I've seen! Thank you so much. I used to work with WCF and MSMQ and I feel it's kinda the same except for the fact there's no broker that pushes the events to consumers. I'm kinda curious what the event message looks like in the event driven architecture way of things.
@alexhyettdev
@alexhyettdev 9 ай бұрын
You're very welcome! The event messages can vary quite depending on who is implementing them. Some prefer small messages that just mention that an event occurred. This therefore requires the consumer to call the producer to get more information. Others create quite detailed events that contain all the information that a user would need. As a producer, it can be a bit of a balancing act between having to constantly add new information to an event which is likely also available via API or having consumers also call your API for every event that comes in.
@takatakboy
@takatakboy 9 ай бұрын
@@alexhyettdev thank you so much for detailing that! The fun in there is choosing what approach to take then. Might need more experience to find out what kind of event messages to send (from very verbose to just a request to have them poll from the producer the related info)
@alexhyettdev
@alexhyettdev 9 ай бұрын
It mostly comes down to performance. If you need to process hundreds or thousands of events a second you don't want to have to go off to an API to get more information.
@spolio8795
@spolio8795 8 ай бұрын
Very clear thank you! +1 subscriber! :)
@alexhyettdev
@alexhyettdev 7 ай бұрын
Thank you, I am glad it was useful.
@codewithkashif
@codewithkashif 10 ай бұрын
Great tutorial! One important question -- Is there any difference between Event Driven Architecture and Reactive Programming?
@alexhyettdev
@alexhyettdev 10 ай бұрын
Not really, reactive programming is generally implemented using an event based system.
@SiiitiiFreelancing-jl3ty
@SiiitiiFreelancing-jl3ty 2 ай бұрын
can you suppress that background barking kind of sound that emits from your laptop when you are running thru the slides
@Simvetanylen
@Simvetanylen Жыл бұрын
On an "API driven architecture", you have consistency problems too. When a microservice calls another microservice, they aren't bound to the same transaction (unless using 2PC). Futhermore, it's hard to manage rollbacks in case of rest call failure. The structure can become really fragile easily.
@alexhyettdev
@alexhyettdev Жыл бұрын
Yes they both have consistency problems. I am not sure anyone has come up with a way around that without causing scaling problems.
@Simvetanylen
@Simvetanylen Жыл бұрын
@@alexhyettdev There is no solution on distributed environnements (CAP theorem)
@ViralLordGaming
@ViralLordGaming 4 ай бұрын
i couldnt understand 1:22-1:30, can you please elaborate on that?
@shaileshagarwal1
@shaileshagarwal1 Жыл бұрын
Won't broker in event driven architecture is similar to Orchestrator ?
@alexhyettdev
@alexhyettdev Жыл бұрын
An orchestrator handles everything including the communication back to the parent service. The event broker on the other hand just passes events along for services that are subscribed. Orchestration is pretty much the opposite of event driven architecture.
@ggroch95
@ggroch95 6 ай бұрын
Great content! But this sound effect every time when slide appears is suuuuuuper annoying...
@shafiq_ramli
@shafiq_ramli 6 ай бұрын
Same
@alexhyettdev
@alexhyettdev 6 ай бұрын
Noted!
@shafiq_ramli
@shafiq_ramli 6 ай бұрын
Keep up the good work! @@alexhyettdev
@Vitoria-rv7bx
@Vitoria-rv7bx 5 ай бұрын
I like it actually
@arielguzman2875
@arielguzman2875 4 ай бұрын
I didn’t start feeling annoyed until you said that 😅
@anaz6794
@anaz6794 9 ай бұрын
You could decrease the background music
@user-mx8ij4tk6i
@user-mx8ij4tk6i Жыл бұрын
What if a subscriber can't keep up with the events produced by the producer?
@alexhyettdev
@alexhyettdev Жыл бұрын
It is just a case of scaling up the number of subscribers. Of course, this can have its own limitations. There might be a bottleneck downstream that caps how many events you can process. This is especially true if each of those subscribers is writing to the same database. This is where you need to start looking at things such as database sharding or caching all the reads.
@user-mx8ij4tk6i
@user-mx8ij4tk6i Жыл бұрын
@@alexhyettdev Thanks, great video by the way!
@alexhyettdev
@alexhyettdev Жыл бұрын
@@user-mx8ij4tk6i Thanks!
@Tony-dp1rl
@Tony-dp1rl 8 ай бұрын
Nice video, really liked it, but I get the feeling you dragged "eventual consistency" kicking and screaming into your example of services being slow to pick up events. It probably doesn't belong there, as that term is more about data consistency between different databases ... even though it could be related in some scenarios I guess.
@alexhyettdev
@alexhyettdev 8 ай бұрын
Haha I love the analogy. Yes it definitely depends on the scenario. A lot of the time when I have used EDA is where I have had reporting systems fed from it hence it coming up.
@judevector
@judevector 6 ай бұрын
I like the explanation but one thing that i so much wanted but it seems lacking in the video is showing us how it's done or where it's used in real life applications, this is what makes the video relatable not just telling us the advantages and disadvantages. How do I know ad and disadv when i don't even know how it works in a real life application Great video tho
@yesicanhearyouclemfandango
@yesicanhearyouclemfandango 9 күн бұрын
Could you please drop the "welcome back to the channel" bit?! It's so cringe. Just a hello will do.
@neonx9356
@neonx9356 2 күн бұрын
Wtf, I am literally speechless Is it that annoying? That's just a damn four words more!
@dianadutka5764
@dianadutka5764 Жыл бұрын
@alexhyettdev
@alexhyettdev Жыл бұрын
I am not sure if that emoji is pointing upwards or giving me the finger 🤣. I hope it’s the former!
Khóa ly biệt
01:00
Đào Nguyễn Ánh - Hữu Hưng
Рет қаралды 19 МЛН
Китайка и Пчелка 4 серия😂😆
00:19
KITAYKA
Рет қаралды 3,7 МЛН
Haha😂 Power💪 #trending #funny #viral #shorts
00:18
Reaction Station TV
Рет қаралды 6 МЛН
Event-Driven Architecture (EDA) vs Request/Response (RR)
12:00
Confluent
Рет қаралды 115 М.
Monolithic vs Microservice Architecture: Which To Use and When?
10:43
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Alex Hyett
Рет қаралды 189 М.
A Beginner's Guide to Event-Driven Architecture
37:28
Software Developer Diaries
Рет қаралды 4,9 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,3 МЛН
Event Driven Architecture - Understanding the Basics
14:49
Execute Automation
Рет қаралды 72 М.
What is Event Driven Architecture (EDA)?
12:10
IBM Technology
Рет қаралды 178 М.
Domain Driven Design: What You Need To Know
8:42
Alex Hyett
Рет қаралды 97 М.
The Thing No One Tells You About Microservices
13:40
Continuous Delivery
Рет қаралды 56 М.
Samsung S24 Ultra professional shooting kit #shorts
0:12
Photographer Army
Рет қаралды 25 МЛН
ТОП-5 культовых телефонов‼️
1:00
Pedant.ru
Рет қаралды 19 М.
Как работает автопилот на Lixiang L9 Max
0:34
Семен Ефимов
Рет қаралды 16 М.
5 НЕЛЕГАЛЬНЫХ гаджетов, за которые вас посадят
0:59
Кибер Андерсон
Рет қаралды 1,6 МЛН
Apple watch hidden camera
0:34
_vector_
Рет қаралды 64 МЛН
AI от Apple - ОБЪЯСНЯЕМ
24:19
Droider
Рет қаралды 127 М.