Share
Embed
Fast Rendering and Efficient Settings in LINE TODAY High Traffic Feature in Thailand
LINE Developers Thailand
September 10, 2022
Transcript
72 slides
-
Fast Rendering and Efficient Settings in LINE TODAY High
Traffic Feature in Thailand Rex Lin - LINE TODAY Backend Developer 03/09/2022 -
• LINE TODAY Services • Architecture • Modularized Page Setting
• Thailand Features Agenda -
• LINE TODAY Services • Architecture • Modularized Page Setting
• Thailand Features Agenda -
LINE TODAY Stays With You Today 12:00 News International/ Entertainment
15:00 LIVE Lottery / Fortune 09:00 Recommendations Weather / News 18:00 Official Account News / Economics 21:00 Daily Life Quiz / Poll -
LINE TODAY Stays With You Today 12:00 News International/ Entertainment
15:00 LIVE Lottery / Fortune 09:00 Recommendations Weather / News 18:00 Official Account News / Economics 21:00 Daily Life Quiz / Poll -
LINE TODAY Stays With You Today 12:00 News International/ Entertainment
15:00 LIVE Lottery / Fortune 09:00 Recommendations Weather / News 18:00 Official Account News / Economics 21:00 Daily Life Quiz / Poll -
CDN Object Storage In Mem Cache Backend Server Frontend Server
Cache Server Mini Service Feeding Service Internal CMS External CMS Vue.js Third Party API Content Provider Internal Editor External Editor Report Service Data Warehouse LINE TODAY Architecture ML Data Analysis -
CDN 96% Object Storage In Mem Cache Backend Server Frontend
Server Cache Server Mini Service Feeding Service Internal CMS External CMS Vue.js Third Party API Content Provider Internal Editor External Editor Report Service Data Warehouse LINE TODAY Architecture 4% ML Data Analysis -
CDN 96% Object Storage In Mem Cache Backend Server Frontend
Server Cache Server Mini Service Feeding Service Internal CMS External CMS Vue.js Third Party API Content Provider Internal Editor External Editor Report Service Data Warehouse LINE TODAY Architecture 4% ML Data Analysis -
CDN Object Storage In Mem Cache Backend Server Frontend Server
Cache Server Mini Service Feeding Service Internal CMS External CMS Vue.js Third Party API Content Provider Internal Editor External Editor Report Service Data Warehouse LINE TODAY Architecture ML Data Analysis -
CDN Object Storage In Mem Cache Backend Server Frontend Server
Cache Server Mini Service Feeding Service Internal CMS External CMS Vue.js Third Party API Content Provider Internal Editor External Editor Report Service Data Warehouse LINE TODAY Architecture ML Data Analysis -
CDN Object Storage In Mem Cache Backend Server Frontend Server
Cache Server Mini Service Feeding Service Internal CMS External CMS Vue.js Third Party API Content Provider Internal Editor External Editor Report Service Data Warehouse LINE TODAY Architecture ML Data Analysis -
CDN Object Storage In Mem Cache Backend Server Frontend Server
Cache Server Mini Service Feeding Service Internal CMS External CMS Vue.js Third Party API Content Provider Internal Editor External Editor Report Service Data Warehouse LINE TODAY Architecture ML Data Analysis -
CDN Object Storage In Mem Cache Backend Server Frontend Server
Cache Server Mini Service Feeding Service Internal CMS External CMS Vue.js Third Party API Content Provider Internal Editor External Editor Report Service Data Warehouse LINE TODAY Architecture ML Data Analysis -
CDN Object Storage In Mem Cache Backend Server Frontend Server
Cache Server Mini Service Feeding Service Internal CMS External CMS Vue.js Third Party API Content Provider Internal Editor External Editor Report Service Data Warehouse LINE TODAY Architecture ML Data Analysis -
CDN Object Storage In Mem Cache Backend Server Frontend Server
Cache Server Mini Service Feeding Service Internal CMS External CMS Vue.js Third Party API Content Provider Internal Editor External Editor Report Service Data Warehouse LINE TODAY Architecture ML Data Analysis -
CDN Object Storage In Mem Cache Backend Server Frontend Server
Cache Server Mini Service Feeding Service Internal CMS External CMS Vue.js Third Party API Content Provider Internal Editor External Editor Report Service Data Warehouse LINE TODAY Architecture ML Data Analysis -
CDN Object Storage In Mem Cache Backend Server Frontend Server
Cache Server Mini Service Feeding Service Internal CMS External CMS Vue.js Third Party API Content Provider Internal Editor External Editor Report Service Data Warehouse LINE TODAY Architecture ML Data Analysis -
CDN Object Storage In Mem Cache Backend Server Frontend Server
Cache Server Mini Service Feeding Service Internal CMS External CMS Vue.js Third Party API Content Provider Internal Editor External Editor Report Service Data Warehouse LINE TODAY Architecture ML Data Analysis -
Slow webpage loading Long cache time due to heavy traffic
Bulky API response, no flexibility in portal page HTTP/2 with new API design Decrease the cache time Modularized page setting Problem Solutions How to publish the contents ASAP? -
CDN Object Storage In Mem Cache Backend Server Frontend Server
Cache Server Mini Service Feeding Service Internal CMS External CMS Vue.js Third Party API Content Provider Internal Editor External Editor Report Service Data Warehouse HTTP/2 with new API design ML Data Analysis HTTP/2 -
Slow webpage loading Long cache time due to heavy traffic
Bulky API response, no flexibility in portal page HTTP/2 with new API design Decrease the cache time Modularized page setting Problem Solutions How to publish the contents ASAP? -
CDN Object Storage In Mem Cache Backend Server Frontend Server
Cache Server Mini Service Feeding Service Internal CMS External CMS Third Party API Content Provider Internal Editor External Editor Report Service Data Warehouse Decrease the cache time ML Data Analysis HTTP/2 In Mem Cache In Mem Cache In Mem Cache In Mem Cache In Mem Cache -
Slow webpage loading Long cache time due to heavy traffic
Bulky API response, no flexibility in portal page HTTP/2 with new API design Decrease the cache time Modularized page setting Problem Solutions How to publish the contents ASAP? -
Slow webpage loading Long cache time due to heavy traffic
Bulky API response, no flexibility in portal page HTTP/2 with new API design Decrease the cache time Modularized page setting Problem Solutions How to publish the contents ASAP? -
Headline news module Latest news module Topic module Trending news
module Weather module Merit-date module Modularized Page Setting Fortune stick module -
Headline news module Latest news module Topic module Trending news
module Weather module Merit-date module Modularized Page Setting Fortune stick module -
Modularized Page Setting Editor Content Management System Page Subscribe Module
Article Module Recommend Module Comment Module Page Mapping Rule Page Setting Service Subscribe Module Article Module Recommend Module Comment Module Storage Rule Page Rule Page Rule Page Rule Page Content Provider Rule Category Display Mode -
Modularized Page Setting Editor Content Management System Page Subscribe Module
Article Module Recommend Module Comment Module Page Mapping Rule Page Setting Service Subscribe Module Article Module Recommend Module Comment Module Storage Rule Page Rule Page Rule Page Rule Page Content Provider Rule Category Display Mode -
Modularized Page Setting Editor Content Management System Page Subscribe Module
Article Module Recommend Module Comment Module Page Mapping Rule Page Setting Service Subscribe Module Article Module Recommend Module Comment Module Storage Rule Page Rule Page Rule Page Rule Page Content Provider Rule Category Display Mode -
Modularized Page Setting Editor Content Management System Page Subscription Module
Article Module Recommend Module Comment Module Page Mapping Rule Page Setting Service Subscription Service Article Service Recommend Service Comment Service Storage Rule Page Rule Page Rule Page Rule Page Content Provider Rule Category Display Mode -
Modularized Page Setting Editor Content Management System Page Subscription Module
Article Module Recommend Module Comment Module Page Mapping Rule Page Setting Service Subscription Service Article Service Recommend Service Comment Service Storage Rule Page Rule Page Rule Page Rule Page Content Provider Rule Category Display Mode -
Modularized Page Setting Editor Content Management System Page Subscription Module
Article Module Recommend Module Comment Module Page Mapping Rule Page Setting Service Subscription Service Article Service Recommend Service Comment Service Storage Rule Page Rule Page Rule Page Rule Page Content Provider Rule Category Display Mode -
Modularized Page Setting Editor Content Management System Page Subscription Module
Article Module Recommend Module Comment Module Page Mapping Rule Page Setting Service Subscription Service Article Service Recommend Service Comment Service Storage Rule Page Rule Page Rule Page Rule Page Content Provider Rule Category Display Mode -
Pros of Modularized Page Setting Fast rendering Decrease API payload
size Render first frame modules by Server-Side Render Easier configuration More configurable page pattern Reduce duplicated page setting System Editor -
Pros of Modularized Page Setting Fast rendering Decrease API payload
size Render first frame modules by Server-Side Render Easier configuration More configurable page pattern Reduce duplicated page setting System Editor -
Pros of Modularized Page Setting Fast rendering Decrease API payload
size Render first frame modules by Server-Side Render Easier configuration More configurable page pattern Reduce duplicated page setting System Editor -
Pros of Modularized Page Setting Fast rendering Decrease API payload
size Render first frame modules by Server-Side Render Easier configuration More configurable page pattern Reduce duplicated page setting System Editor -
A/B Testing, Gradual Rollout Framework Editor Content Management System Page
A News Module Weather Module Fortune Module Page Setting Service Page B News Module AD Module Weather Module Page Mapping Rule Group A Page A Group B Page B News Weather Fortune News AD (Advertisement) Weather User Grouping System User Group Mapping Group A User B ID Group B Get user group by user ID Group C User A ID -
A/B Testing, Gradual Rollout Framework Editor Content Management System Page
A News Module Weather Module Fortune Module Page Setting Service Page B News Module AD Module Weather Module Page Mapping Rule Group A Page A Group B Page B News Weather Fortune News AD (Advertisement) Weather User Grouping System User Group Mapping Group A User B ID Group B Get user group by user ID Group C User A ID -
A/B Testing, Gradual Rollout Framework Editor Content Management System Page
A News Module Weather Module Fortune Module Page Setting Service Page B News Module AD Module Weather Module Page Mapping Rule Group A Page A Group B Page B News Weather Fortune News AD (Advertisement) Weather User Grouping System User Group Mapping Group A User B ID Group B Get user group by user ID Group C User A ID -
A/B Testing, Gradual Rollout Framework Editor Content Management System Page
A News Module Weather Module Fortune Module Page Setting Service User Grouping System User Group Mapping Group A User B ID Group B Page B News Module AD Module Weather Module Page Mapping Rule Group A Page A Group B Page B Get user group by user ID News Weather Fortune News AD (Advertisement) Weather Group C 0 35 60 100 User A ID Hash Hash -
A/B Testing, Gradual Rollout Framework Editor Content Management System Page
A News Module Weather Module Fortune Module Page Setting Service User Grouping System User Group Mapping Group A User B ID Group B Page B News Module AD Module Weather Module Page Mapping Rule Group A Page A Group B Page B Get user group by user ID News Weather Fortune News AD (Advertisement) Weather Group C 0 35 60 100 User A ID Hash Hash -
A/B Testing, Gradual Rollout Framework Editor Content Management System Page
A News Module Weather Module Fortune Module Page Setting Service User Grouping System User Group Mapping Group A User B ID Group B Page B News Module AD Module Weather Module Page Mapping Rule Group A Page A Group B Page B Get user group by user ID News Weather Fortune News AD (Advertisement) Weather Group C 0 35 60 100 User A ID Hash Hash -
A/B Testing, Gradual Rollout Framework Editor Content Management System Page
A News Module Weather Module Fortune Module Page Setting Service Page B News Module AD Module Weather Module Page Mapping Rule Group A Page A Group B Page B News Weather Fortune News Weather User Grouping System User Group Mapping AD (Advertisement) Group A User B ID Group B Get user group by user ID Group C User A ID -
Lottery Displaying / Checking the winning number Instant News
Official Account -
Lottery Displaying / Checking the winning number Instant News
Official Account -
Lottery Displaying / Checking the winning number Instant News
Official Account -
Lottery Resources Tuning Resource Configuration when Release apiVersion: apps/v1
kind: Deployment metadata: name: today-lottery-service spec: replicas: 2 template: spec: containers: - name: today-lottery-service resources: requests: cpu: 250m memory: 1536Mi limits: cpu: 500m memory: 1536Mi -
Lottery Resources Tuning Resource Configuration when Release apiVersion: apps/v1
kind: Deployment metadata: name: today-lottery-service spec: replicas: 2 template: spec: containers: - name: today-lottery-service resources: requests: cpu: 250m memory: 1536Mi limits: cpu: 500m memory: 1536Mi -
Lottery Resources Tuning Increase Replica and Decrease CPU/Memory without
Autoscaling apiVersion: apps/v1 kind: Deployment metadata: name: today-lottery-service spec: replicas: 2 template: spec: containers: - name: today-lottery-service resources: requests: cpu: 250m memory: 1536Mi limits: cpu: 500m memory: 1536Mi AS IS TO BE apiVersion: apps/v1 kind: Deployment metadata: name: today-lottery-service spec: replicas: 3 template: spec: containers: - name: today-lottery-service resources: requests: cpu: 200m memory: 1024Mi limits: cpu: 500m memory: 1024Mi -
Lottery Resources Tuning Increase Replica and Decrease CPU/Memory without
Autoscaling apiVersion: apps/v1 kind: Deployment metadata: name: today-lottery-service spec: replicas: 2 template: spec: containers: - name: today-lottery-service resources: requests: cpu: 250m memory: 1536Mi limits: cpu: 500m memory: 1536Mi AS IS TO BE apiVersion: apps/v1 kind: Deployment metadata: name: today-lottery-service spec: replicas: 3 template: spec: containers: - name: today-lottery-service resources: requests: cpu: 200m memory: 1024Mi limits: cpu: 500m memory: 1024Mi -
Lottery Resources Tuning Increase Replica and Decrease CPU/Memory without
Autoscaling apiVersion: apps/v1 kind: Deployment metadata: name: today-lottery-service spec: replicas: 2 template: spec: containers: - name: today-lottery-service resources: requests: cpu: 250m memory: 1536Mi limits: cpu: 500m memory: 1536Mi AS IS TO BE apiVersion: apps/v1 kind: Deployment metadata: name: today-lottery-service spec: replicas: 3 template: spec: containers: - name: today-lottery-service resources: requests: cpu: 200m memory: 1024Mi limits: cpu: 500m memory: 1024Mi -
Lottery Resources Tuning Increase Replica and Decrease CPU/Memory without
Autoscaling apiVersion: apps/v1 kind: Deployment metadata: name: today-lottery-service spec: replicas: 2 template: spec: containers: - name: today-lottery-service resources: requests: cpu: 250m memory: 1536Mi limits: cpu: 500m memory: 1536Mi AS IS TO BE apiVersion: apps/v1 kind: Deployment metadata: name: today-lottery-service spec: replicas: 3 template: spec: containers: - name: today-lottery-service resources: requests: cpu: 200m memory: 1024Mi limits: cpu: 500m memory: 1024Mi -
Thailand Fortune Modules Switch to tab: ดู ดวง Merit-date Calendar
Fortune Stick Lucky Color fortell -
Thailand Fortune Modules Switch to tab: ดู ดวง Merit-date Calendar
Fortune Stick Lucky Color fortell -
Merit-date Calendar Show the Lucky/Unlucky Day, Recommended/Avoid Activities Activities
Lucky Calendar วั นธง ชั ย วั น อั ปมงคล วั นอ ธิ บ ดี วั นโลกา วิ นาศ Description Recommended / Avoid Activities Next 5 lucky days -
Merit-date Calendar Show the Lucky/Unlucky Day, Recommended/Avoid Activities Activities
Lucky Calendar วั นธง ชั ย วั น อั ปมงคล วั นอ ธิ บ ดี วั นโลกา วิ นาศ Description Recommended / Avoid Activities Next 5 lucky days -
Merit-date Calendar Show the Lucky/Unlucky Day, Recommended/Avoid Activities Activities
Lucky Calendar วั นธง ชั ย วั น อั ปมงคล วั นอ ธิ บ ดี วั นโลกา วิ นาศ Description Recommended / Avoid Activities Next 5 lucky days -
• LINE TODAY Micro-service Architecture • Modularized Page Setting: Fast
rendering and efficient settings • Thailand Features: Lottery and Resources Tuning Summary -
• LINE TODAY Micro-service Architecture • Modularized Page Setting: Fast
rendering and efficient settings • Thailand Features: Lottery and Resources Tuning Summary