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

看 KKBOX 怎麼走通知這條路 @ COSCUP 2018

Hash Lin
August 14, 2018

看 KKBOX 怎麼走通知這條路 @ COSCUP 2018

小小的鈴鐺按鈕背後隱藏了許多的秘密,分享 KKBOX 怎麼建構通知中心的大小事。
KKBOX 如何透過 Redis 來建構通知中心

Hash Lin

August 14, 2018
Tweet

More Decks by Hash Lin

Other Decks in Technology

Transcript

  1. This presentation is provided on a strictly private and confidential

    basis for information purposes only. 看 KKBOX 怎麼走 通知中心這條路 presented by Hash Lin 2018/08/02
  2. Who am I • KKBOX Product Platform Develop Devision(PPDD) Programmer

    • Full-Stack Programmer • Love Community, PHP, Open Source
  3. What’s Notification Center • Announcement • New Release • Listen-with

    Artist online • Subscritpion • Billing Announcement • ...
  4. Why Redis • Flexible Data Structure • Some powerful command

    ◦ INCR ◦ ZADD ◦ LPUSH ◦ ZREVRANGE ◦ … • Twitter
  5. Case 1. Read after write problem • Do not use

    different connection when write/get the same key (Singleton) • write key ‘hash’ in master • read key ‘hash’ in slave • I can’t get key ‘hash’ in slave Orz...