An in-depth introduction to Blue Green Deployments

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

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

  • @MohammadShahid-y5y
    @MohammadShahid-y5y 3 หลายเดือนก่อน +1

    We were saving the infra cost by reducing the number of instances in blue bucket once green appears stable.
    From the backward compatibility POV, if you applications are creating entries in any queue or event bus then you must have make sure those events are also backward compatible. I have observed a huge mess because of this.

  • @kalpeshmali8498
    @kalpeshmali8498 9 หลายเดือนก่อน +1

    Great Indepth Video Sir just one request can you please provide the notes for every video in a zip file it will be helpful for us

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

    Thanks for video was looking for something on Deployment

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

    As usual great explanation thank you.

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

    Thanks Arpit for this in-depth explanation. If you don’t mind can you briefly explain about the “handling of shared services across blue green”. What exactly it is?

  • @girishkuruba3303
    @girishkuruba3303 5 หลายเดือนก่อน

    Very detailed explanation

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

    Hi Arpit, Loved the depth of this video. Can you please talk about AB deployment as well?

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

    Awesome 😍

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

    Hi Arpit. Thanks for the valuable information. How can we handle kafka consumption in case of blue green deployment

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

    when we provision/shift to green infra, is DB also replicated generally?
    Or its same for both instances - considering there can be schema/migration changes
    edit - had commented mid way, turns out DB is covered in limitations :) thanks!

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

    How you are syncing db data? In case it's postgres having schema changes?

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

    Will liquibase help here, if we have schema changes?

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

    What happens to a request(s) which is being served by the Blue fleet and we flip the switch to the green fleet?

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

      Graceful termination. We never abruptly terminate the connection. We flip, and new connection goes to new cluster. We wait old ones to drain.

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

    Hey Arpit, I have one question. What happened to the existing requests(the requests sent to the old green) when the reverse proxy switches the servers and blue becomes the new green? Do they fail?

    • @AsliEngineering
      @AsliEngineering  2 ปีที่แล้ว +6

      Gracefully handled. When we say 100 percent of request moving to New setup it implies that 100 percent of the new request moving to New fleet.
      The old ones will continued to be served from old one. Once they are completed and we see 0 request from proxy to old fleet, is when we know that we do not have any dependency on the old fleet and that it can now be terminated.

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

      @@AsliEngineering Thank you! Also, how do we know if a request is complete or not? Is that the job of Reverse proxy? And when exactly do we send signal to terminate old cluster?

  • @harshitanand7349
    @harshitanand7349 9 หลายเดือนก่อน

    Hi Arpit,
    I have few questions.
    1. Does blue-green deployment makes sense if product is going live for the first time? I mean there will be no old blue or green server.
    2. Let's say an application is running having image version - v2.0 and it's the blue server. Deployment is scheduled with latest image version - v2.1 and now green server is up with this latest image. So in case I need to rollback to blue server then do I really need backward compatibility? Because anyway old image is running in the blue server.

    • @AsliEngineering
      @AsliEngineering  9 หลายเดือนก่อน

      1. No. You do not need a fancy setup on day 0
      2. Your code always needs to be backward compatible irrespective of the deployment strategy used

  • @pramodpatil-ue8sm
    @pramodpatil-ue8sm ปีที่แล้ว

    8:51 - Prepare a fleet of servers that is warm - Din't understand the 'warm' meaning here. Can you please elaborate ?

    • @komalthecoolk
      @komalthecoolk 7 หลายเดือนก่อน +1

      Warm means that servers don't start or boot up when needed as that can take time. That is called cold start. Warm start means servers are already running and ready to accept traffic as soon as application is deployed.

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

      @@komalthecoolk thanks for the clarification!

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

    I didn't see any diff bwn BG and Canary, except that in Canary, we do A/B testing. Is that correct Arpit?

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

      Canary you are using a few servers from your existing server infra. BG you run an entire duplicate infra for new and old version.