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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
Oracle AI Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
4
2.7k
まだ道半ば、AI-DLCを歩み始めている話
news_it_enj
2
210
脅威をエンジニアリングの糧にして:恐怖を乗り越えた先にあったもの / Turn threats into fuel for engineering: what lay beyond overcoming fear
nrslib
1
340
RubyでRuby拡張を書いたらRubyより35倍速になったってどういうこと??
kazuho
3
850
インフラが苦手でも大丈夫! 紙芝居 Kubernetes -WWGT 10周年編-
aoi1
1
300
layerx-fde-practices
cipepser
6
2.8k
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
5
1.7k
Gradle×GitHub_ActionsでCI時間を約50%短縮 ジョブ分割の設計と落とし穴 / Cutting CI Time by ~50% with Gradle and GitHub Actions: Job-Splitting Design and Pitfalls
takatty
0
510
Claude Codeですべての日常業務を爆速化しよう!
minorun365
PRO
16
15k
プラットフォームエンジニア ワークショップ/ platform-workshop
databricksjapan
0
110
地元にいないローカルオーガナイザーの立ち回り
uvb_76
1
250
イベントで大活躍する電子ペーパー名札 〜その3〜 / ビジュアルプログラミングIoTLT vol.23
you
PRO
0
160
Featured
See All Featured
The Curious Case for Waylosing
cassininazir
1
360
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.5k
A Soul's Torment
seathinner
6
2.8k
Music & Morning Musume
bryan
47
7.2k
Google's AI Overviews - The New Search
badams
0
1k
The Cost Of JavaScript in 2023
addyosmani
55
9.9k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
How GitHub (no longer) Works
holman
316
150k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
190
Code Review Best Practice
trishagee
74
20k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.8k
Building an army of robots
kneath
306
46k
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]