Upgrade to Pro — share decks privately, control downloads, hide ads and more …

RedisとGoで実装するリアルタイム通知 / Real-time notification developed by Redis and Go

RedisとGoで実装するリアルタイム通知 / Real-time notification developed by Redis and Go

hiroki.saito

January 18, 2019
Tweet

More Decks by hiroki.saito

Other Decks in Technology

Transcript

  1. 送信の並列処理 go func(to string, title string, body string, data map[string]string)

    { workersChanel <- struct{}{} // この呼び出し先が実際にNotificationを送信する invoker.Sender.Send(to, title, body, data) <-workersChanel wg.Done() }(device.Token, title, body, data)