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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Hash Lin
August 14, 2018
Technology
2
670
看 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
150
MOPCON 2019 資訊組工作方法
hashman
0
410
單體式服務邁向微服務 @ MOPCON 2019
hashman
3
1.9k
Other Decks in Technology
See All in Technology
20260208_第66回 コンピュータビジョン勉強会
keiichiito1978
0
200
Cloud Runでコロプラが挑む 生成AI×ゲーム『神魔狩りのツクヨミ』の裏側
colopl
0
150
Amazon Bedrock Knowledge Basesチャンキング解説!
aoinoguchi
0
170
1,000 にも届く AWS Organizations 組織のポリシー運用をちゃんとしたい、という話
kazzpapa3
0
190
GitHub Copilot CLI を使いやすくしよう
tsubakimoto_s
0
110
We Built for Predictability; The Workloads Didn’t Care
stahnma
0
150
私たち準委任PdEは2つのプロダクトに挑戦する ~ソフトウェア、開発支援という”二重”のプロダクトエンジニアリングの実践~ / 20260212 Naoki Takahashi
shift_evolve
PRO
2
210
pool.ntp.orgに ⾃宅サーバーで 参加してみたら...
tanyorg
0
1.4k
GitHub Issue Templates + Coding Agentで簡単みんなでIaC/Easy IaC for Everyone with GitHub Issue Templates + Coding Agent
aeonpeople
1
260
日本の85%が使う公共SaaSは、どう育ったのか
taketakekaho
1
250
制約が導く迷わない設計 〜 信頼性と運用性を両立するマイナンバー管理システムの実践 〜
bwkw
3
1.1k
Kiro IDEのドキュメントを全部読んだので地味だけどちょっと嬉しい機能を紹介する
khmoryz
0
210
Featured
See All Featured
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
440
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
170
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
310
New Earth Scene 8
popppiees
1
1.5k
GraphQLとの向き合い方2022年版
quramy
50
14k
How STYLIGHT went responsive
nonsquared
100
6k
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]