Skip to content

Yu-Qi/one_punch_man

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

one_punch_man

Backend practice with golang

Practice

Graceful shutdown

  • 透過 channel 接收 os signal 並進行 graceful shutdown
  • 透過 context 控制 goroutine 的生命週期,包含關閉子 goroutine
  • 透過 context 控制 http server 的生命週期,包含關閉 server

Message queue

  • []支援 http request 的方式
  • []tcp 的方式
  • [x]不保證順序性
  • [x]當時間到或者數量到時,進行批次處理
  • 透過 for select 進行非同步處理

About

Backend practice with golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages