在本版吸收大家的經驗跟知識,小弟感激不盡,這次來介紹『用 Go 語言實作 Job
Queue 機制』,用簡單的 Channel + Goroutine 來實現簡單的 Job Queue,底下是投影
片大綱:
1. what is the different unbuffered and buffered channel?
2. how to implement a job queue in golang?
3. how to stop the worker in a container?
4. Shutdown with Sigterm Handling
5. Canceling Workers without Context
6. Graceful shutdown with worker
7. How to auto-scaling build agent?
8. How to cancel the current Job
裡面講了很多實作細節,後續會將上面的細節錄製成影片,放在 Udemy 或 Youtube 上面
。
部落格: https://blog.wu-boy.com/2019/10/job-queue-in-golang/
投影片: https://www.slideshare.net/appleboy/job-queue-in-golang-184064840
Youtube 影片: https://www.youtube.com/channel/UCLCZJ9d_I7UJP2bpXpge8KA