SlideShare a Scribd company logo
A 7 architecture sustaining line live
A 7 architecture sustaining line live
What is LINE LIVE?
Video streaming and hosting service
Watch streams from celebrities and companies
Host or watch streams from other users
Chat communication
Showing appreciation with “Loves”
History of LINE LIVE
Feb 2014
LINE LIVE CAST was released
History of LINE LIVE
Feb 2014
LINE LIVE CAST was released
Sep 2015
Kick off meeting for LINE LIVE
History of LINE LIVE
Feb 2014
LINE LIVE CAST was released
Sep 2015
Kick off meeting for LINE LIVE
Dec 2015
LINE LIVE was released
History of LINE LIVE
Feb 2014
LINE LIVE CAST was released
Sep 2015
Kick off meeting for LINE LIVE
Dec 2015
LINE LIVE was released
Aug 2016
LINE LIVE Version 2 is out
Tools and Staff
Java, Nginx, MySQL, Redis, Elasticsearch, Fluentd, CDN, etc.
Server (media 260+, chat 110+, API and other 100+)
Over 20 core engineers
Over 30 other related engineers (LINE app, storage, network, etc.)
LINE LIVE Architecture
OBS
Inhouse Storage
System
Hosting
Viewing
RTMP Media
Servers
API
Servers
LINE
Billing
CMS
Chat
WebSocket
JSON
API
CDN
Akamai
LINE
ServersUpload HLS Files
Cache
Send Operation
On JSON API
Send Events
On JSON API
Relationship with LINE
Data Analysis
For details, see the presentation,
“New Stream Processing Platform with Apache Flink"
Data Labs 荻林裕憲
Real-time viewer aggregation
Streaming program KPI measurement, etc.
Video Stream Delivery
HLS
(HTTP Live Streaming)
HLS
live-1_001.ts
live-1_002.ts
live-1_003.ts
live-1_004.ts
live-1_005.ts
(HTTP Live Streaming)
HLS
All compiled into
one video
live-1_001.ts
live-1_002.ts
live-1_003.ts
live-1_004.ts
live-1_005.ts
(HTTP Live Streaming)
HLS
live-1.m3u8
・live-1_001.ts
・live-1_002.ts
・live-1_003.ts
・live-1_004.ts
・live-1_005.ts
...
live-1_001.ts
live-1_002.ts
live-1_003.ts
live-1_004.ts
live-1_005.ts
(HTTP Live Streaming)
HLS
live-1.m3u8
・live-1_001.ts
・live-1_002.ts
・live-1_003.ts
・live-1_004.ts
・live-1_005.ts
...
live-1_001.ts
live-1_002.ts
live-1_003.ts
live-1_004.ts
live-1_005.ts
(HTTP Live Streaming)
CDN
HLS
live-1_720.m3u8
・live-1_720_001.ts
・live-1_720_002.ts
・live-1_720_003.ts
...
live-1.m3u8
・live-1_720.m3u8
・live-1_480.m3u8
・live-1_360.m3u8
...
live-1_480.m3u8
・live-1_480_001.ts
・live-1_480_002.ts
・live-1_480_003.ts
...
live-1_360.m3u8
・live-1_360_001.ts
・live-1_360_002.ts
・live-1_360_003.ts
...
live-1_720_001.ts
live-1_720_002.ts
live-1_720_003.ts
live-1_480_001.ts
live-1_480_002.ts
live-1_480_003.ts
live-1_360_001.ts
live-1_360_002.ts
live-1_360_003.ts
HLS
live-1_720.m3u8
・live-1_720_001.ts
・live-1_720_002.ts
・live-1_720_003.ts
...
live-1.m3u8
・live-1_720.m3u8
・live-1_480.m3u8
・live-1_360.m3u8
...
live-1_480.m3u8
・live-1_480_001.ts
・live-1_480_002.ts
・live-1_480_003.ts
...
live-1_360.m3u8
・live-1_360_001.ts
・live-1_360_002.ts
・live-1_360_003.ts
...
live-1_720_001.ts
live-1_720_002.ts
live-1_720_003.ts
live-1_480_001.ts
live-1_480_002.ts
live-1_480_003.ts
live-1_360_001.ts
live-1_360_002.ts
live-1_360_003.ts
Architecture
Media
Servers
API
Servers
OBS
Inhouse Storage System
CDN
Akamai
Hosting Viewing
RTMP
Architecture
Media
Servers
API
Servers
OBS
Inhouse Storage System
CDN
Akamai
Hosting Viewing
RTMP
Upload HLS Files
Architecture
Media
Servers
API
Servers
OBS
Inhouse Storage System
CDN
Akamai
Hosting Viewing
Send Events
On JSON API
RTMP
Upload HLS Files
Architecture
Media
Servers
API
Servers
OBS
Inhouse Storage System
CDN
Akamai
Hosting Viewing
Send Events
On JSON API
RTMP
Send
a
Push
Upload HLS Files
Architecture
Media
Servers
API
Servers
OBS
Inhouse Storage System
CDN
Akamai
Hosting Viewing
Send Events
On JSON API
Cache Download
HLS Files
RTMP
JSON
API
Upload HLS Files
HLS Good Hack
on LINE LIVE
HLS Good Hack for Data LIVE
http://〜/{encrypt(objectId, startAt, durationSec)}_720_xxx.ts
http://〜/{encrypt(objectId, startAt, durationSec)}.m3u8
http://〜/FooBar_720_xxx.ts
http://〜/FooBar.m3u8
Example : startAt=19:00
durationSec=3600
Prepare encrypted URL on server in advance
HLS Good Hack for Data LIVE
GET 200 GET 200
18:00 21:0019:00 20:00
http://〜/FooBar.m3u8
http://〜/FooBar_720_xxx.ts
HLS Good Hack for Data LIVE
Example : startAt=19:00
durationSec=3600
GET 404 GET 404 GET 404 GET 404
18:00 21:0019:00 20:00
http://〜/FooBar.m3u8
http://〜/FooBar_720_xxx.ts
HLS Good Hack for Auto play
http://〜/{encrypt(objectId, startAt, durationSec)}.m3u8
http://〜/FooBar_720_xxx.ts
Prepare encrypted URL on server in advance
Example : startAt=2sec
durationSec=6
001.ts 002.ts 003.ts 004.ts 005.ts xxx.ts …
HLS Good Hack for Auto play
Example : startAt=2sec
durationSec=6
001.ts 002.ts 003.ts 004.ts 005.ts xxx.ts …
GET 200 GET GET GET
http://〜/AcmeAcme.m3u8
foo-bar.m3u8
・002.ts
・003.ts
・004.ts
Flow When Stream Is Terminated
Media
Servers
API
Servers
OBS
Inhouse Storage System
CDN
Akamai
Hosting Viewing
RTMP
Upload HLS Files
Stream Terminated
Media
Servers
API
Servers
OBS
Inhouse Storage System
CDN
Akamai
Hosting Viewing
RTMP
Upload HLS Files
Stream Terminated
Media
Servers
API
Servers
OBS
Inhouse Storage System
CDN
Akamai
Hosting Viewing
2. Cache
RTMP
Upload HLS Files
1. GET HLS2. Fetch Origin
Stream Terminated
Media
Servers
API
Servers
OBS
Inhouse Storage System
CDN
Akamai
Hosting Viewing
3. 404 4. 404
RTMP
Upload HLS Files
1. GET HLS2. Fetch Origin
Standby Until Recovery
Media
Servers
API
Servers
OBS
Inhouse Storage System
CDN
Akamai
Hosting Viewing
3. 404 4. 404
RTMP
Upload HLS Files
Burst API
Server
6. SUSPEND
5. Polling
SUSPEND
Event
1. GET HLS2. Fetch Origin
Recovery Flow
Media
Servers
API
Servers
OBS
Inhouse Storage System
CDN
Akamai
Hosting Viewing
1. RTMP
restart
Upload HLS Files
Burst API
Server
2. RESTART
event
Recovery Flow
Media
Servers
API
Servers
OBS
Inhouse Storage System
CDN
Akamai
Hosting Viewing
1. RTMP
restart
Upload HLS Files
Burst API
Server
4. RESTART
3. Polling
2. RESTART
event
Recovery Flow
Media
Servers
API
Servers
OBS
Inhouse Storage System
CDN
Akamai
Hosting Viewing
Cache 5. Download
HLS Files
1. RTMP
restart
Upload HLS Files
Burst API
Server
4. RESTART
3. Polling
2. RESTART
event
Improved Hosting Performance
GPUCPU
720p 1080p
220%
267%
Chat
Chat Overview
CMS
Hosting Viewing
WebSocket
CHAT
API
Servers
JSON API
JSON API
JSON API
WebSocket
Chat Overview
Server 1 Server 2 Server 3
Room 1 Room 1
Redis Cluster
Publish/Subscribe
Chat Overview
Server 1 Server 2 Server 3
Room 1 Room 1
Room 2 Room 2
Redis Cluster
Room 2
Log Archive
live-1.chatlog
・live-1_001.json
・live-1_002.json
・live-1_003.json
・live-1_004.json
・live-1_005.json
...
live-1_001.json
live-1_002.json
live-1_003.json
live-1_004.json
live-1_005.json
Upload to the OBS
Issues
Issues
Over 10,000 messages per minute
LOVE
“Love-mashing”
is fun
"Love-mashing”
is communication
Love
Clients
Store
(Increment)
Flush
Burst
API
Redis
Cluster
MySQL
Clients
- ranking (ZSET)
- Total count (NUM)
Data
(log)
Using Lua Script
“Love” Total Ranking
Get
API Redis
Cluster
Clients
Using ZREVRANGE
“Love” Total Ranking
Get
(Archive)
API Redis
Cluster
Clients
MySQL
Using ZREVRANGE
Example 1
11 million Loves in 120 minutes
Example 2
2.3 million Loves in 30 minutes
Chat and “Love” Issues Are
Also Explained on our Blog
http://developers.linecorp.com/blog/ja/?p=3653
http://developers.linecorp.com/blog/ja/?p=3771
Summary
Provided overview of LINE LIVE
Talked about video streaming methods
Talked about implementation of traffic-inviting chat and “Love” features
Any Questions?
A 7 architecture sustaining line live

More Related Content

What's hot (20)

PDF
B 4 gravty
LINE Corporation
 
PDF
The Paved PaaS to Microservices at Netflix (IAS2017 Nanjing)
Yunong Xiao
 
PPTX
2600Hz - Least Cost Routing in the Cloud
2600Hz
 
PDF
Mastering Microservices with Kong (CodeMotion 2019)
Maarten Mulders
 
PPTX
MongoDB.local Dallas 2019: MongoDB Atlas for Your Enterprise
MongoDB
 
PDF
Serverless Media Workflow
MooYeol Lee
 
PDF
Manage your APIs and Microservices with an API Gateway
Thibault Charbonnier
 
PDF
Architecting &Building Scalable Secure Web API
SHAKIL AKHTAR
 
PDF
Prometheus meets Consul -- Consul Casual Talks
Satoshi Suzuki
 
PDF
APIdays Singapore 2019 - Blowing Up the Monolith: Adopting a Modern API Strat...
apidays
 
PDF
Introducing Gridiron Security and Compliance Management Platform and Enclave ...
Aptible
 
PPTX
2600Hz - The Next Wave - KazooCon 2015
2600Hz
 
PPTX
MongoDB.local Sydney: MongoDB Atlas for Your Enterprise
MongoDB
 
PDF
Timelines at Scale (Raffi Krikorian - VP of Engineering at Twitter)
Chris Bolman
 
PDF
Slaying Monoliths with Node and Docker
Yunong Xiao
 
PPTX
KazooCon 2014 - Introduction to Kazoo APIs!
2600Hz
 
PPTX
From ZERO to REST in an hour
Cisco DevNet
 
PPT
id.net APIs for Hosts
Edwin J.
 
PDF
Database transaction isolation and locking in Java
Constantine Slisenka
 
PDF
Exactly Once Delivery with Kafka - JOTB2020 Mini Session
Natan Silnitsky
 
B 4 gravty
LINE Corporation
 
The Paved PaaS to Microservices at Netflix (IAS2017 Nanjing)
Yunong Xiao
 
2600Hz - Least Cost Routing in the Cloud
2600Hz
 
Mastering Microservices with Kong (CodeMotion 2019)
Maarten Mulders
 
MongoDB.local Dallas 2019: MongoDB Atlas for Your Enterprise
MongoDB
 
Serverless Media Workflow
MooYeol Lee
 
Manage your APIs and Microservices with an API Gateway
Thibault Charbonnier
 
Architecting &Building Scalable Secure Web API
SHAKIL AKHTAR
 
Prometheus meets Consul -- Consul Casual Talks
Satoshi Suzuki
 
APIdays Singapore 2019 - Blowing Up the Monolith: Adopting a Modern API Strat...
apidays
 
Introducing Gridiron Security and Compliance Management Platform and Enclave ...
Aptible
 
2600Hz - The Next Wave - KazooCon 2015
2600Hz
 
MongoDB.local Sydney: MongoDB Atlas for Your Enterprise
MongoDB
 
Timelines at Scale (Raffi Krikorian - VP of Engineering at Twitter)
Chris Bolman
 
Slaying Monoliths with Node and Docker
Yunong Xiao
 
KazooCon 2014 - Introduction to Kazoo APIs!
2600Hz
 
From ZERO to REST in an hour
Cisco DevNet
 
id.net APIs for Hosts
Edwin J.
 
Database transaction isolation and locking in Java
Constantine Slisenka
 
Exactly Once Delivery with Kafka - JOTB2020 Mini Session
Natan Silnitsky
 

Similar to A 7 architecture sustaining line live (20)

PDF
실시간 서비스 플랫폼 개발 사례
John Kim
 
PPT
IIS-training-document-internal-users.ppt
mschaitanya4466
 
PPT
IIS internet information service NSA.ppt
ImranAhmadAhmad
 
PDF
Building Data Product Based on Apache Spark at Airbnb with Jingwei Lu and Liy...
Databricks
 
PPT
Session 2 - Silverlight Streaming, and Windows Live Search
ukdpe
 
PPT
Konsep pembangunan tapak web & laman web
Ahmad Faizar
 
PPTX
Cocoaheads - Streaming on iOS devices
Nirbhay Kundan
 
PPTX
SVR402: DirectAccess Technical Drilldown, Part 2 of 2: Putting it all together.
Louis Göhl
 
PDF
tdc2012
Juan Lopes
 
PDF
SoundCloud's Toolbox for Microservices
Bora Tunca
 
PPT
FMS Administration Seminar
Yoss Cohen
 
PDF
SaltStack's NetAPI at Photobucket - Denver SaltStack Meetup
Jon Henry
 
PDF
支撐英雄聯盟戰績網的那條巨蟒
Toki Kanno
 
PDF
초보 개발자도 바로 따라할 수 있는 AWS 미디어 서비스를 이용한 Live/VOD 서비스 구축 – 현륜식 AWS 솔루션즈 아키텍트:: A...
Amazon Web Services Korea
 
PDF
AWS CDK introduction
leo lapworth
 
PPTX
2023-May.pptx
mnaeemuetcs
 
PDF
asyncio community, one year later
Victor Stinner
 
PPT
Zombilizing The Web Browser Via Flash Player 9
thaidn
 
PDF
Securing Your Containerized Applications with NGINX
Docker, Inc.
 
PPTX
Real time web
Dingding Ye
 
실시간 서비스 플랫폼 개발 사례
John Kim
 
IIS-training-document-internal-users.ppt
mschaitanya4466
 
IIS internet information service NSA.ppt
ImranAhmadAhmad
 
Building Data Product Based on Apache Spark at Airbnb with Jingwei Lu and Liy...
Databricks
 
Session 2 - Silverlight Streaming, and Windows Live Search
ukdpe
 
Konsep pembangunan tapak web & laman web
Ahmad Faizar
 
Cocoaheads - Streaming on iOS devices
Nirbhay Kundan
 
SVR402: DirectAccess Technical Drilldown, Part 2 of 2: Putting it all together.
Louis Göhl
 
tdc2012
Juan Lopes
 
SoundCloud's Toolbox for Microservices
Bora Tunca
 
FMS Administration Seminar
Yoss Cohen
 
SaltStack's NetAPI at Photobucket - Denver SaltStack Meetup
Jon Henry
 
支撐英雄聯盟戰績網的那條巨蟒
Toki Kanno
 
초보 개발자도 바로 따라할 수 있는 AWS 미디어 서비스를 이용한 Live/VOD 서비스 구축 – 현륜식 AWS 솔루션즈 아키텍트:: A...
Amazon Web Services Korea
 
AWS CDK introduction
leo lapworth
 
2023-May.pptx
mnaeemuetcs
 
asyncio community, one year later
Victor Stinner
 
Zombilizing The Web Browser Via Flash Player 9
thaidn
 
Securing Your Containerized Applications with NGINX
Docker, Inc.
 
Real time web
Dingding Ye
 
Ad

More from LINE Corporation (20)

PDF
JJUG CCC 2018 Fall 懇親会LT
LINE Corporation
 
PDF
Reduce dependency on Rx with Kotlin Coroutines
LINE Corporation
 
PDF
Kotlin/NativeでAndroidのNativeメソッドを実装してみた
LINE Corporation
 
PDF
Use Kotlin scripts and Clova SDK to build your Clova extension
LINE Corporation
 
PDF
The Magic of LINE 購物 Testing
LINE Corporation
 
PPTX
GA Test Automation
LINE Corporation
 
PDF
UI Automation Test with JUnit5
LINE Corporation
 
PDF
Feature Detection for UI Testing
LINE Corporation
 
PDF
LINE 新星計劃介紹與新創團隊分享
LINE Corporation
 
PDF
​LINE 技術合作夥伴與應用分享
LINE Corporation
 
PDF
LINE 開發者社群經營與技術推廣
LINE Corporation
 
PDF
日本開發者大會短講分享
LINE Corporation
 
PDF
LINE Chatbot - 活動報名報到設計分享
LINE Corporation
 
PDF
在 LINE 私有雲中使用 Managed Kubernetes
LINE Corporation
 
PDF
LINE TODAY高效率的敏捷測試開發技巧
LINE Corporation
 
PDF
LINE 區塊鏈平台及代幣經濟 - LINK Chain及LINK介紹
LINE Corporation
 
PDF
LINE Things - LINE IoT平台新技術分享
LINE Corporation
 
PDF
LINE Pay - 一卡通支付新體驗
LINE Corporation
 
PDF
LINE Platform API Update - 打造一個更好的Chatbot服務
LINE Corporation
 
PDF
Keynote - ​LINE 的技術策略佈局與跨國產品開發
LINE Corporation
 
JJUG CCC 2018 Fall 懇親会LT
LINE Corporation
 
Reduce dependency on Rx with Kotlin Coroutines
LINE Corporation
 
Kotlin/NativeでAndroidのNativeメソッドを実装してみた
LINE Corporation
 
Use Kotlin scripts and Clova SDK to build your Clova extension
LINE Corporation
 
The Magic of LINE 購物 Testing
LINE Corporation
 
GA Test Automation
LINE Corporation
 
UI Automation Test with JUnit5
LINE Corporation
 
Feature Detection for UI Testing
LINE Corporation
 
LINE 新星計劃介紹與新創團隊分享
LINE Corporation
 
​LINE 技術合作夥伴與應用分享
LINE Corporation
 
LINE 開發者社群經營與技術推廣
LINE Corporation
 
日本開發者大會短講分享
LINE Corporation
 
LINE Chatbot - 活動報名報到設計分享
LINE Corporation
 
在 LINE 私有雲中使用 Managed Kubernetes
LINE Corporation
 
LINE TODAY高效率的敏捷測試開發技巧
LINE Corporation
 
LINE 區塊鏈平台及代幣經濟 - LINK Chain及LINK介紹
LINE Corporation
 
LINE Things - LINE IoT平台新技術分享
LINE Corporation
 
LINE Pay - 一卡通支付新體驗
LINE Corporation
 
LINE Platform API Update - 打造一個更好的Chatbot服務
LINE Corporation
 
Keynote - ​LINE 的技術策略佈局與跨國產品開發
LINE Corporation
 
Ad

Recently uploaded (20)

PDF
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PDF
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PPTX
PCU Keynote at IEEE World Congress on Services 250710.pptx
Ramesh Jain
 
PPTX
Earn Agentblazer Status with Slack Community Patna.pptx
SanjeetMishra29
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PPTX
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PPTX
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
PDF
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
PDF
Market Insight : ETH Dominance Returns
CIFDAQ
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PPTX
Machine Learning Benefits Across Industries
SynapseIndia
 
PDF
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
PDF
SalesForce Managed Services Benefits (1).pdf
TechForce Services
 
PPTX
python advanced data structure dictionary with examples python advanced data ...
sprasanna11
 
PDF
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PCU Keynote at IEEE World Congress on Services 250710.pptx
Ramesh Jain
 
Earn Agentblazer Status with Slack Community Patna.pptx
SanjeetMishra29
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
Market Insight : ETH Dominance Returns
CIFDAQ
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
The Future of Artificial Intelligence (AI)
Mukul
 
Machine Learning Benefits Across Industries
SynapseIndia
 
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
SalesForce Managed Services Benefits (1).pdf
TechForce Services
 
python advanced data structure dictionary with examples python advanced data ...
sprasanna11
 
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 

A 7 architecture sustaining line live