EVENTS IS THE SOLUTION. EVENT-DRIVEN ARCHITECTURE IN PYTHON

Sdílet
Vložit
  • čas přidán 19. 04. 2022
  • Andrey Ivanov - Python
    Use my discount link for OKEX crypto exchange: www.okx.com/join/PYTHONANDREY
    My UDEMY courses: www.udemy.com/user/andrey-iva...
    Donations: www.donationalerts.com/r/pyth...
    Github: github.com/knucklesuganda
    Telegram канал: t.me/pypapyrus
    Other videos on Python: • Python
    Leave your like and subscribe!
    #Python #program #it #tutorial #guide #begginers #code #programming

Komentáře • 10

  • @questionableperson8293
    @questionableperson8293 Před 4 měsíci

    I love the fact that you showed us the main issue of using stuff such as dependencies injection then giving us a reason to use event bus

  • @programming_etc
    @programming_etc Před 10 měsíci +1

    The video is fire very informative. However I would like to add that you can use defaultdict from collections module for that purposes and avoid if-elses. I'm talking about building an initial event bus at 7:37. The video is great though keep it going!

  • @TheSillysoupman
    @TheSillysoupman Před 7 měsíci

    This was a clear explanation of the pros of using events, but it didn’t mention the pitfalls of that style of architecture. Obscuring the dependencies of certain actions (ie create_user -> send_email) makes it difficult to ensure atomicity over the aggregate of the actions (if sending an email fails, don’t register the user). Similarly, it makes it difficult to ensure proper isolation/concurrence safety (ie if you need to get a lock to do some action A, later when you’re handling the event sent from A, you don’t know if you still have that same lock or what the current context is. Those drawbacks makes it difficult to use an event oriented approach for complex cases unless you implement an even more complex distributed architecture.

  • @marcgentner1322
    @marcgentner1322 Před měsícem

    How do you struture a big project with test based design in minde?

  • @LAKD
    @LAKD Před rokem

    It's rare to find videos where people actually explain their code clearly. People tend to just say what they type, instead of explaining the logic. You explained it perfectly, very practical and easy to understand that way!

  • @davidsyengo1893
    @davidsyengo1893 Před rokem

    Clear and concise

  • @wa.6006
    @wa.6006 Před rokem

    Hi! Thanks for this video!
    I noticed you mentioned where each function might be in the code.
    Is it more common to have the event system structured as an object that stores event objects? (OOP)
    Or is it more common to have it in a more functional way as you presented (i guess) ?
    I'm currently practising to structure my code properly and learning some coding concept as such, but cant decide how it's best to structure my code in this case.

  • @angelbarrantes3226
    @angelbarrantes3226 Před rokem +1

    great buddy, really practical and easy to implement... hope more videos from you and i will give you an star for you repo py_assimilator, it's good

  • @HannaTokarieva
    @HannaTokarieva Před rokem

    Nice. I think you mean if handles is None: on the 9:20 ?