Publish-Subscribe Pattern vs Message Queues vs Request Response (Detailed Discussions with Examples)

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ย. 2024

ความคิดเห็น • 70

  • @hnasr
    @hnasr  4 หลายเดือนก่อน

    Fundamentals of Backend Engineering backend.win

  • @riderprovider6213
    @riderprovider6213 3 ปีที่แล้ว +4

    Came from LinkedIn for watching this awesome explanation

  • @thomasmartres2963
    @thomasmartres2963 3 ปีที่แล้ว +10

    Thank you Hussein for all these resources, you're a proper G.

  • @SyedAli-rl8de
    @SyedAli-rl8de 2 ปีที่แล้ว +1

    You are a blessing.these contents for free is life

  • @assimd7790
    @assimd7790 4 หลายเดือนก่อน

    Very informative video.

  • @mannion1985
    @mannion1985 3 ปีที่แล้ว +1

    Put this in my watch later just dropped in to say you are doing amazing work with your channel.

  • @maheshtenapali8938
    @maheshtenapali8938 3 ปีที่แล้ว

    I have a user story for testing next week to work on pub sub using Kafka......it's very useful.... this session is useful...I gained some knowledge

  • @marouanebenmoussa1289
    @marouanebenmoussa1289 ปีที่แล้ว

    U got me in that's what she said ! thank you for these valuables videos

  • @varunupadhyay3836
    @varunupadhyay3836 3 ปีที่แล้ว +1

    Thank you so much for this. Really good overview.

  • @cyrilogoh6171
    @cyrilogoh6171 3 ปีที่แล้ว

    2 courses finished in 30 min 😅😅😅thanks

  • @HellGuyRj
    @HellGuyRj ปีที่แล้ว

    Heelo Sir. I have a question. Are you a god? cuz ur contents are godly.

  • @ibknl1986
    @ibknl1986 3 ปีที่แล้ว +1

    What a wonderful way of explaining.

  • @ritwizsinha1261
    @ritwizsinha1261 3 ปีที่แล้ว

    Great Hussein, read my mind

  • @hemanthaugust7217
    @hemanthaugust7217 6 หลายเดือนก่อน

    for request-response, you mentioned that client/server have to be running as a Con.
    When you use Queue, both Client & Queue have to be running. So, we just shifted the point of failure from server to queue, that's all. How is this not a con for MQ?

  • @colinmaharaj
    @colinmaharaj 2 ปีที่แล้ว +3

    I did my own disk back queues years ago. It uses a get/set/delete logic. The producer sets a value, the consumer gets it and the consumer deletes it once it has validated it has gotten the data correctly. Also it's FIFO based and there is no data loss in a power outage

  • @04minutes53
    @04minutes53 3 ปีที่แล้ว +1

    Im a fan of your knowledge.please use images more,if possible animations like tech with Nana channel.

  • @abhay8437
    @abhay8437 3 ปีที่แล้ว +4

    Half of the comments be like: Damn, the timing of this video, I was just reading about this. Holy mother of coincidences.
    Also, it's not a 44 minutes lecture, it's [44 / play speed] minutes lecture. I recently gave a system design interview, had this been uploaded earlier, I would have nailed it.

  • @yangbi6788
    @yangbi6788 3 ปีที่แล้ว +2

    I'm so distracted by the jokes you put into those videos.
    28:48
    "Obviously this guy has to be up all the time, that's what she said." lmao.

    • @hnasr
      @hnasr  3 ปีที่แล้ว +1

      Distraction is good 😌

  • @iamrafiqulislam
    @iamrafiqulislam 2 ปีที่แล้ว

    Awesome Roses!!!

  • @mohammadakbari5180
    @mohammadakbari5180 3 ปีที่แล้ว

    Awesome bro. keep going.

  • @ivandrofly
    @ivandrofly ปีที่แล้ว

    Thanks

  • @raochaudhriIT
    @raochaudhriIT 3 ปีที่แล้ว

    Thanks!

  • @ebinantoneyt5978
    @ebinantoneyt5978 3 ปีที่แล้ว

    please do a video on NATS

  • @FilthySnob
    @FilthySnob 3 ปีที่แล้ว

    Thats awesome thanks

  • @nicknick1411
    @nicknick1411 ปีที่แล้ว +1

    God, he has beautiful eyes!

  • @adrianfgutierrez2836
    @adrianfgutierrez2836 3 ปีที่แล้ว

    Hussein, you have an opinion about Mercure?

  • @Gerald-iz7mv
    @Gerald-iz7mv 2 ปีที่แล้ว

    can you use rabbitmq and kafaka here? im asking because kafka is more for streaming? or can you tune kafka to work like rabbitmq?

  • @youssefelshiaty5343
    @youssefelshiaty5343 6 หลายเดือนก่อน

    22:25 😂😂😂

  • @iamshadmirza
    @iamshadmirza ปีที่แล้ว

    Publisher is Gary vee 😂

  • @hemanttoday
    @hemanttoday 2 ปีที่แล้ว

    Kindly improve content. Substance should be more and cut down other discussion.

  • @ibknl1986
    @ibknl1986 3 ปีที่แล้ว

    Kafka

  • @f135ta
    @f135ta 2 ปีที่แล้ว

    Horrendous. Thanks.

  • @omarkarim9298
    @omarkarim9298 3 ปีที่แล้ว +1

    You need to be more to the point man, content is first class, but you drag on way to much.

    • @zedzpan
      @zedzpan 3 ปีที่แล้ว

      That's part of his attraction. His flare and passion enforces his videos. If you want plain, go find Jane.

    • @f135ta
      @f135ta 2 ปีที่แล้ว

      The whole thing was waffle, lacked any actual facts and the more i think about it - it was entirely useless.. I’m not sure if this was aimed at junior developers or something but anyone with at least 6 months dev on their CV needs to go elsewhere for a proper grown up answer

  • @AshutoshAnandashu
    @AshutoshAnandashu 3 ปีที่แล้ว +28

    Such a coincidence, was just learning about Pub/Sub and Cloud Tasks (Queues) in GCP. This is valuable.

    • @ritwizsinha1261
      @ritwizsinha1261 3 ปีที่แล้ว +1

      Same happened with me, I was deciding whether to use pub sub vs queue in a project

    • @murugankannan7285
      @murugankannan7285 3 ปีที่แล้ว

      Same for me

    • @ritwizsinha1261
      @ritwizsinha1261 3 ปีที่แล้ว +1

      Do not go to flixzone, its a shady website, the above two are bots

    • @MT87840
      @MT87840 7 หลายเดือนก่อน

      Not a coincidence, they're spying on us! :D

  • @robertmazurowski5974
    @robertmazurowski5974 2 ปีที่แล้ว +1

    ME: "Hussein are you telling me there is something better than that where the client can go offline and the server can go offline, and still they can communicate?"
    Hussein: Yes, Quantum-Psychic-Biological computer. It is not on or off because it is biological, It is multidimensional and communicates with brainwaves even between dimensions.
    Happy April fools!

  • @KamalnathPolakam
    @KamalnathPolakam 6 หลายเดือนก่อน

    That's so haaarddd! That's what she said as well! ;-P

  • @hanifali3396
    @hanifali3396 3 ปีที่แล้ว +9

    28:50
    "Obviously, this guy has to be up all the time.... That's what she said" XD

  • @f135ta
    @f135ta 2 ปีที่แล้ว

    Absolute waffle.. You couldnt even explain the difference between sync and async clearly.. I cant trust a word you say..

  • @smithmarta
    @smithmarta 2 ปีที่แล้ว +1

    *guys and gals!!! :)

  • @prathameshmahankal4180
    @prathameshmahankal4180 2 ปีที่แล้ว +1

    This content is gold.

  • @hafizhabdillah3030
    @hafizhabdillah3030 3 ปีที่แล้ว +1

    thanksss broo, really enjoy how you explain all these things

    • @hafizhabdillah3030
      @hafizhabdillah3030 3 ปีที่แล้ว

      th-cam.com/video/DXTHb9TqJOs/w-d-xo.html
      can i ask ?
      ive built message queue service using rabbitMq. as you said, once the request has been received by the server, we can sent the response to the client with identifier, so they can come back to check the condition for that request. talking about channel, so in this approach you talk about, we set the client to subs to same channel as the server use ? and there wont be any request response to check the condition for that request ? . for my case, iam still using request response for the client to check the condition of thier request before, and for the ux its really annoying for me (?) because they have to refersh the request to check the updates

  • @khushbuchoudhary5185
    @khushbuchoudhary5185 2 ปีที่แล้ว

    I became a member today in order to download the slides for this course but I am still being asked to pay 0.99USD.Can you please look into it.

    • @hnasr
      @hnasr  2 ปีที่แล้ว

      Hi , you can go to your membership tab and find link to download all slides along side over 60+ member only videos

  • @a7md940
    @a7md940 3 ปีที่แล้ว

    انت راجل ميه ميه..
    سؤال.. بالنسبة للمثال بتاع اليوتيوب uploading video
    لو الففيديو حجمه كبير 2جيجا او 4 مثلا هيكون سهل على ال message broker يبعته في ال queue لل consumer ؟
    اقصد حجم الملف مش هيعمل مشكلة؟

    • @hnasr
      @hnasr  3 ปีที่แล้ว

      سؤال ممتاز، يعتمد اذا قررت حفظ الفيديو في المسج كيو ام لا. شخصيا افضل حفظ الملف في blob ستور ووضع وصله في الكيو

    • @a7md940
      @a7md940 3 ปีที่แล้ว

      @@hnasr لو عملت موضوع الوصله ده.
      هل هحتاج shared storage
      عشان ال distributed services؟
      ولا السؤال بتاعي غلط اصلا بسبب عدم فهمي الكامل للموضوع؟

  • @erikslorenz
    @erikslorenz 3 ปีที่แล้ว +1

    This is by far my fav youtube channel

    • @hnasr
      @hnasr  3 ปีที่แล้ว +1

      🙏

    • @erikslorenz
      @erikslorenz 3 ปีที่แล้ว

      @@hnasr no one else ever talks about the back end!! This is required viewing for the guys I hire.

  • @chiefolk
    @chiefolk 3 ปีที่แล้ว

    the bicycle animation was epic😂😂

  • @pabastian
    @pabastian 3 ปีที่แล้ว

    first comment

    • @PiggyQuacks
      @PiggyQuacks 3 ปีที่แล้ว +2

      First comment to first comment

  • @alek282
    @alek282 3 ปีที่แล้ว +1

    For request/response model, do we not solve the issue of blocked requests with event based architectures? ie in JavaScript you encapsulate requests / responses with promises. So if you send a request, you are free to do other things on the client. You are still blocked on that particular request in a sense but you are free to report some feedback to the user

    • @hnasr
      @hnasr  3 ปีที่แล้ว +3

      Good question, javascript promises only provide a client side asynchronous behavior, the backend is still synchronously processing your request.
      This video describes the asynchronousity on the backend
      And if you are taking about JS promises on the backend than it depends on workload. Most workloads will go on the mainthread which will still execute requests synchronously and block.
      More here th-cam.com/video/gMtchRodC2I/w-d-xo.html

    • @alek282
      @alek282 3 ปีที่แล้ว +1

      @@hnasr Thank you Hussein! Just to let you know im framing the "Good question" part :)

  • @AgentZeroNine1
    @AgentZeroNine1 3 ปีที่แล้ว

    Ugh. TH-camrs recycling their instagram content is the worst. Nothing like watch portrait videos on a laptop. Maybe I should turn my laptop sideways :-/