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
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Hash Lin
August 14, 2018
Technology
670
2
Share
看 KKBOX 怎麼走通知這條路 @ COSCUP 2018
小小的鈴鐺按鈕背後隱藏了許多的秘密,分享 KKBOX 怎麼建構通知中心的大小事。
KKBOX 如何透過 Redis 來建構通知中心
Hash Lin
August 14, 2018
More Decks by Hash Lin
See All by Hash Lin
如何在微服務系統架構上導入 CI/CD
hashman
1
170
MOPCON 2019 資訊組工作方法
hashman
0
420
單體式服務邁向微服務 @ MOPCON 2019
hashman
3
2k
Other Decks in Technology
See All in Technology
20260528_生成AIを専属DSに_Howの次にすべきことを考える
doradora09
PRO
0
190
LLM時代のリファクタリング戦略_AIエージェントによる段階的・安全なTS移行方法
play_inc
0
180
Kaggle未経験社員をメダリストに育てる「AIドラゴン桜」
lycorptech_jp
PRO
0
550
自作エディターをOSSにして分かった、一人に刺さる開発が世界を動かす理由
shinyasaita
1
310
「使われるデータ基盤」を目指してデータアナリストとワークショップをやった話
jackojacko_
2
850
TSKaigi 2026 - 10秒のビルドを1秒へ:tsdownが切り拓く2026年のTypeScriptライブラリ開発
teamlab
PRO
2
260
Geek Woman の育ち方 〜コミュニティとAIと〜
chicaco
0
410
基礎から解説!Icebergで紐解くSnowflake×Databricks連携の現在地
cm_yasuhara
0
290
【ハノーバーメッセ振り返りイベントat名古屋】データは集約からAI起点の収集に ~組織内・組織間でのデータ連携~
tanakaseiya
0
110
ソフトウェアサプライチェーン攻撃対策として今からサクッとできること
flatt_security
2
130
RubyでRuby拡張を書いたらRubyより35倍速になったってどういうこと??
kazuho
3
600
AI時代に求められる思考のパラダイムシフト
nrinetcom
PRO
1
140
Featured
See All Featured
Building Applications with DynamoDB
mza
96
7k
Automating Front-end Workflow
addyosmani
1370
210k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
54k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
370
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
So, you think you're a good person
axbom
PRO
2
2k
How to Ace a Technical Interview
jacobian
281
24k
Visualization
eitanlees
151
17k
Amusing Abliteration
ianozsvald
1
180
Become a Pro
speakerdeck
PRO
31
5.9k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
220
Exploring anti-patterns in Rails
aemeredith
3
360
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]