Speaker Deck
Speaker Deck Pro
Sign in
Sign up
for free
看 KKBOX 怎麼走通知這條路 @ COSCUP 2018
Hash Lin
August 14, 2018
Technology
2
580
看 KKBOX 怎麼走通知這條路 @ COSCUP 2018
小小的鈴鐺按鈕背後隱藏了許多的秘密,分享 KKBOX 怎麼建構通知中心的大小事。
KKBOX 如何透過 Redis 來建構通知中心
Hash Lin
August 14, 2018
Tweet
Share
More Decks by Hash Lin
See All by Hash Lin
hashman
0
160
hashman
3
1.6k
Other Decks in Technology
See All in Technology
yuuturn
1
130
pinboro
1
1.4k
kyonmm
1
1.9k
hamadakoji
0
1.1k
kanaugust
PRO
0
210
omn
0
550
110y
3
690
ocise
1
900
shimacos
2
260
vkbaba
0
100
shomaekawa
2
920
cmwatanabeseigo
0
320
Featured
See All Featured
malarkey
192
8.5k
addyosmani
1348
190k
edds
56
9.3k
jonyablonski
14
1.1k
holman
461
280k
reverentgeek
27
1.9k
andyhume
62
3.3k
bkeepers
52
4.1k
geeforr
332
29k
lara
16
2.6k
lynnandtonic
270
16k
zenorocha
297
39k
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 • hashmanlin@kkbox.com