Upgrade to Pro — share decks privately, control downloads, hide ads and more …

LINE's New Year campaign - Taking Control of Hi...

LINE's New Year campaign - Taking Control of High Traffic

Kapilevich Viacheslav (Slava)
LINE Shop Team Software Engineer
https://linedevday.linecorp.com/jp/2019/sessions/S1-09

LINE DevDay 2019

November 20, 2019
Tweet

More Decks by LINE DevDay 2019

Other Decks in Technology

Transcript

  1. 2019 DevDay LINE's New Year Campaign - Taking Control of

    High Traffic > Kapilevich Viacheslav (Slava) > LINE Shop Team Software Engineer
  2. What it looks like to us in LINE when you

    send “Happy New Year!” to your friends at midnight? >
  3. Last Year LINE’s New Year Campaign > And the campaign

    starts … > Disney, Ghibli and other official partners > More than 3000 specially made stickers > More than 25 000 000 users
  4. Normal Scalable Service Millions Of Users … New Year Campaign

    Servers LINE Internal APIs … … DB Cluster
  5. Normal Scalable Service Millions Of Users … New Year Campaign

    Servers LINE Internal APIs … … DB Cluster Denial of Service Timed out and failed requests Increased latency of user requests
  6. Service With Async Execution Millions Of Users … New Year

    Campaign Servers LINE Internal APIs Action Topic Action Topic Action Topic … … … Consumers
  7. Service With Async Execution Millions Of Users … New Year

    Campaign Servers LINE Internal APIs API Topic API Topic API Topic … … … Consumers Instant response to user Offloading app servers Async actions are persisted
  8. Control Over Async Execution Users … App Servers LINE Internal

    APIs Action Topic … … … Consumers Processing Speed Control Processing Management Tool API Rate Limit Control Retry Throttling
  9. Control Over Async Execution Users … App Servers LINE Internal

    APIs Action Topic … … … Consumers Processing Speed Control Processing Management Tool API Rate Limit Control Retry Throttling Single control panel to control all processing parameters
  10. Control Over Async Execution Users … App Servers LINE Internal

    APIs Action Topic … … … Consumers Processing Speed Control Processing Management Tool API Rate Limit Control Retry Throttling
  11. Control Over Async Execution Users … App Servers LINE Internal

    APIs Action Topic … … … Consumers Processing Speed Control Processing Management Tool API Rate Limit Control Retry Can automatically or manually adjust speed of processing Throttling
  12. Control Over Async Execution Users … App Servers LINE Internal

    APIs Action Topic … … … Consumers Processing Speed Control Processing Management Tool API Rate Limit Control Retry Throttling
  13. Control Over Async Execution Users … App Servers LINE Internal

    APIs Action Topic … … … Consumers Processing Speed Control Processing Management Tool API Rate Limit Control Retry Rate limit access to a particular API Throttling
  14. Control Over Async Execution Users … App Servers LINE Internal

    APIs Action Topic … … … Consumers Processing Speed Control Processing Management Tool API Rate Limit Control Retry Throttling
  15. Control Over Async Execution Users … App Servers LINE Internal

    APIs Action Topic … … … Consumers Processing Speed Control Processing Management Tool API Rate Limit Control Retry If API fails, reproduce to Kafka and retry Throttling
  16. Control Over Async Execution Users … App Servers LINE Internal

    APIs Action Topic … … … Consumers Processing Speed Control Processing Management Tool API Rate Limit Control Retry Throttling
  17. Control Over Async Execution Users … App Servers LINE Internal

    APIs Action Topic … … … Consumers Processing Speed Control Processing Management Tool API Rate Limit Control Retry Throttling In case of our own system overload, can throttle user requests