Create A Golang Web Server with Proper Graceful Shutdown From Scratch

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

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

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

    Excellent video - thank you! I subbed to your channel - looks like you make great content!!!

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

    Great ....

  • @ShaileshKumar-rb4xy
    @ShaileshKumar-rb4xy 2 ปีที่แล้ว

    Nice video-thank you! I subscribed to your channel .Request you to make a video of Graceful Restart .

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

      When it comes to graceful restart, it really depends on the nature of the application. in most cases for me, i run apps in kubernetes where it will handle the restart if if there is an unexpected failure. This only really works though if you are keeping your data outside of the container (highly recommended) so when the new pod starts it just picks up where the last one left off.

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

    Thanks for the tutorial!
    But i wonder how you shut down the server properly.
    For testing purposes i do "npx kill-port 10101", but this way it wont run through the idleConnsClosed Channel thing.

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

      The application is just looking for sigterm or sigkill so if you can just hit ctrl+c and that will send the signal