Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
看 KKBOX 怎麼走通知這條路 @ COSCUP 2018
Search
Hash Lin
August 14, 2018
Technology
2
640
看 KKBOX 怎麼走通知這條路 @ COSCUP 2018
小小的鈴鐺按鈕背後隱藏了許多的秘密,分享 KKBOX 怎麼建構通知中心的大小事。
KKBOX 如何透過 Redis 來建構通知中心
Hash Lin
August 14, 2018
Tweet
Share
More Decks by Hash Lin
See All by Hash Lin
如何在微服務系統架構上導入 CI/CD
hashman
1
110
MOPCON 2019 資訊組工作方法
hashman
0
370
單體式服務邁向微服務 @ MOPCON 2019
hashman
3
1.8k
Other Decks in Technology
See All in Technology
ロリポップ! for Gamersを支えるインフラ/lolipop for gamers infrastructure
takumakume
0
130
AIを活用した柔軟かつ効率的な社内リソース検索への取り組み
cygames
0
180
不動産tech Product Night#2_AIことはじめ_GA橋本
takehikohashimoto
0
190
開発者の定量・定性データを組み合わせて開発者体験を把握するための取り組み
ham0215
1
140
Technical Writing Meetup vol.35
soracom
PRO
2
120
Oracle Autonomous Database:サービス概要のご紹介
oracle4engineer
PRO
1
7.1k
OSTという文化を組織に根付かせてみた
sansantech
PRO
2
400
技術的負債解消の取り組みと専門チームのお話
bengo4com
0
340
Jetpack Compose Modifier 徹底解説 / Jetpack Compose Modifier
wiroha
0
200
どこよりも遅めなWinActor Ver.7.5.0 新機能紹介
tamai_63
0
210
watsonx.ai Dojo 環境準備について
oniak3ibm
PRO
0
340
OCI で始める!! Red Hat OpenShift / Get Started OpenShift on OCI
oracle4engineer
PRO
1
190
Featured
See All Featured
The Power of CSS Pseudo Elements
geoffreycrofte
71
5.3k
A better future with KSS
kneath
235
17k
Building a Modern Day E-commerce SEO Strategy
aleyda
36
6.8k
Being A Developer After 40
akosma
84
590k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
354
29k
Adopting Sorbet at Scale
ufuk
73
8.9k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
89
16k
A Philosophy of Restraint
colly
202
16k
Raft: Consensus for Rubyists
vanstee
135
6.5k
Into the Great Unknown - MozCon
thekraken
29
1.4k
What's new in Ruby 2.0
geeforr
340
31k
Transcript
This presentation is provided on a strictly private and confidential
basis for information purposes only. 看 KKBOX 怎麼走 通知中心這條路 presented by Hash Lin 2018/08/02
Who am I • KKBOX Product Platform Develop Devision(PPDD) Programmer
• Full-Stack Programmer • Love Community, PHP, Open Source
Agenda • What’s Notification Center • How we use Notification
Center • Case study
What’s Notification Center • Announcement • New Release • Listen-with
Artist online • Subscritpion • Billing Announcement • ...
Notification Center history • MySQL • more… more… more… ◦
Kind of message ◦ Users ◦ Faster
Why Redis • Flexible Data Structure • Some powerful command
◦ INCR ◦ ZADD ◦ LPUSH ◦ ZREVRANGE ◦ … • Twitter
Data Structure
Redis Replication Structure
Monitor
Monitor
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...
Case 2. Failover bandwidth problem
Conclusion • What’s Notification Center • How we use Notification
Center • Case study
Contact me • hashman @ Github • Hash Lin @
Facebook •
[email protected]