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

Build Global Fitness IoT Services with AWS ECS

Ernest Chiang
January 08, 2020

Build Global Fitness IoT Services with AWS ECS

Presented at AWS re:Invent re:Cap 2019 Taipei with TGONetworks Taipei.

- Issues
- AWS ECS Cluster Auto Scaling (Capacity Provider)

Ernest Chiang

January 08, 2020
Tweet

More Decks by Ernest Chiang

Other Decks in Business

Transcript

  1. T AI P E I
    開 發者 交流 之 夜

    View Slide

  2. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    AWS 微服務架構分享
    用 ECS 打造跨國物聯網服務
    Ernest Chiang
    .
    Director of Product & Technology Integration
    PAFERS Tech

    View Slide

  3. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    AWS 微服務架構分享
    用 ECS 打造跨國傳統產業物聯網服務
    Ernest Chiang
    .
    Director of Product & Technology Integration
    PAFERS Tech

    View Slide

  4. ۗێ䨝㹓౮傶ܓ᩼ጱᑀದ覿疩ᘏ
    ፓ獮䨝㹓 870 Ո
    䯤ୌ獊純玕ጱ磪ದ蔩胙วጱ猻纨Ո಍䋊聜౮裾ଘݣ
    ࣁ 12 㮆उ૱ୌ缏獤䨝
    TGONetworksՕᕨ
    introduction of tgonetworks club
    TGONetworksฎᑀದ覿疩ᘏ肞褸޾Ի窕ጱ奲而牧犥CTO牏CPO牏COO牏ದ蔩 VP 缛ᑀದ覿疩ᘏ傶๐率
    䌘虡牧䟖አ䋿ݷګ՞揲䨝㹓牧瑥໒疛礚䨝㹓虻໒牧碫ࣁ䯤ୌ獊純玕ጱ磪ದ蔩胙วጱ猻纨Ո಍䋊聜౮裾ଘ
    ݣ牧娄Ӥ娄ӥፘᕮݳ牧蝫奾猈ڊጱᑀದ覿疩ᘏ䋊聜膏౮裾牐
    ֵ޸ 氎ว

    View Slide

  5. 岄玖茙Ԫ䨝౮㹓
    磷膌翨

    iCook 眢碘ቘದ蔩裾
    䨝裾 䋊聜甛㹓 䨝罕甛㹓 ๐率甛㹓 ੜ奲甛㹓
    艾覄
    眻螸ᑀದದ蔩裾
    讙ฬ୺
    膐ಋ襎珶籧螀裾
    ሴப竃

    覿ಭ胋ᑀದದ蔩裾牏
    ਞӮ窊磪褖獍ݪ
    肥ݳ獺তՈ
    ้嬝痷
    䨗㫎褸౮胂犩 ದ蔩揗揣Ո
    ຋ᐽ穂

    ॠ椷ᑀದದ蔩裾
    ຋ታካ
    PIXNET 綮ਮ螸ದ蔩者緳
    莟楯翨
    PAFERS Director of
    Product & Technology
    Integration
    ჋ᛥ૴
    ᓠ㫎ᓕቘ磪褖獍ݪ 揗揣Ո
    碞硰რ
    Fable ੇ఺ᑀದCEO
    ဉॊᗼ
    覿ಭ胋ᑀದ
    虻窼叨ߝ妿ቘ
    TGONetworksݱ瑿茙Ԫ䨝
    The boards of directors of TGONetworks Club

    View Slide

  6. Ernest Chiang
    Open Source, AWS, Bluetooth

    View Slide

  7. Agenda
    Traditional Industries
    Multiple Continents
    Operations
    ECS

    View Slide

  8. Agenda
    Traditional Industries
    Multiple Continents
    Operations
    ECS

    View Slide

  9. Issues
    Traditional Industries
    Multiple Continents
    Operations
    ECS

    View Slide

  10. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

    View Slide

  11. Industry + Technology

    View Slide

  12. View Slide

  13. RPM Distance Speed
    Duration Incline Calories
    HR Level Watt

    View Slide

  14. View Slide

  15. View Slide

  16. View Slide

  17. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    We are Fitness Service company
    focus on Fitness Industry.
    PAFERS Tech

    View Slide

  18. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    We are the remote Product & RD
    department of our global clients.
    PAFERS Tech

    View Slide

  19. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

    View Slide

  20. Get Connected (1/4)
    • How can we connects all our fitness equipment and client services with
    all the end users? Such as fitness equipment brands, gym managers,
    trainers, exercisers, etc.

    View Slide

  21. Get Connected (2/4)

    View Slide

  22. Get Connected (3/4)

    View Slide

  23. Get Connected (4/4)
    • Multiple applications facing to different stakeholders.
    • Split/migrate applications into multiple services.

    View Slide

  24. Global Market (1/6)

    View Slide

  25. Global Market (2/6)

    View Slide

  26. Global Market (3/6)
    • How to operate multiple IT systems and Application services
    for multiple regions with limited human resource?
    • Can we have the same technical skill sets and knowledge base when across regions?
    Such as the same CI/CD workflow, the same deployment technology, the same environment
    parameters, the same monitoring tools, the same failure recovery mechanism, etc.
    • Can we have the same contact windows and seamless support when across regions?
    • How to optimize selection and evaluation of technology when across regions?

    View Slide

  27. Global Market (4/6)
    • AWS Region Table
    https://aws.amazon.com/about-aws/global-infrastructure/regional-
    product-services/

    View Slide

  28. Global Market (5/6)
    • AWS CodePipeline + AWS CodeBuild
    • Amazon ECS (Elastic Container Service)

    View Slide

  29. Global Market (6/6)
    • AWS Support

    View Slide

  30. Resource & Budget (1/3)
    • How to build an IT and/or RD team from scratch?
    • How to operate multiple IT systems and Application services
    for 30+ countries with limited human resource?
    • How to focus on core values and core business?

    View Slide

  31. Resource & Budget (2/3)
    • Make objectives clear.
    • Make workflows clear.
    • Leverage workflow automation.
    • Leverage partners resource.
    • Leverage managed services.
    Why
    How
    What

    View Slide

  32. Resource & Budget (3/3)
    • Outcome example
    • We set up our AWS China cluster based on our AWS Global cluster architecture (and did some
    other l10n, testing works) within 1 week.

    View Slide

  33. Issues
    ü Traditional Industries
    ü Multiple Continents
    ü Operations
    ECS

    View Slide

  34. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

    View Slide

  35. ECS Cluster Auto Scaling
    Terminology
    ECS Cluster
    ECS Task
    ECS Service
    A logical namespace.
    The basic unit.
    Similar to k8s pods.
    Service can have many tasks.
    Auto-replaces failed tasks.

    View Slide

  36. ECS Cluster Auto Scaling
    Before
    ECS Cluster Create Cluster

    View Slide

  37. ECS Cluster Auto Scaling
    Before
    ECS Cluster
    EC2 Auto Scaling Group
    Create Cluster
    Create ASG

    View Slide

  38. ECS Cluster Auto Scaling
    Before
    ECS Cluster
    EC2 Auto Scaling Group
    EC2 Instances
    Create Cluster
    Create ASG
    Start Instances

    View Slide

  39. ECS Cluster Auto Scaling
    Before
    ECS Cluster
    EC2 Auto Scaling Group
    ECS Tasks
    EC2 Instances
    Create Cluster
    Create ASG
    Start Instances
    Run Tasks

    View Slide

  40. ECS Cluster Auto Scaling
    Before
    ECS Cluster
    EC2 Auto Scaling Group
    ECS Tasks
    EC2 Instances
    Create Cluster
    Create ASG
    Start Instances
    Run Tasks
    But…
    !!!

    View Slide

  41. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

    View Slide

  42. Application First
    Amazon ECS Capacity Provider: The Missing Link
    ECS Cluster Create Cluster (one time)

    View Slide

  43. Application First
    Amazon ECS Capacity Provider: The Missing Link
    ECS Cluster
    EC2 Auto Scaling Group
    Create Cluster (one time)
    Create ASG (one time)

    View Slide

  44. Application First
    Amazon ECS Capacity Provider: The Missing Link
    ECS Cluster
    EC2 Auto Scaling Group
    ECS Capacity Provider
    Create Cluster (one time)
    Create ASG (one time)
    Create CP (one time)

    View Slide

  45. Application First
    Amazon ECS Capacity Provider: The Missing Link
    ECS Cluster
    EC2 Auto Scaling Group
    ECS Tasks
    ECS Capacity Provider
    Create Cluster (one time)
    Create ASG (one time)
    Create CP (one time)
    Run Tasks

    View Slide

  46. Application First
    Amazon ECS Capacity Provider: The Missing Link
    ECS Cluster
    EC2 Auto Scaling Group
    ECS Tasks
    EC2 Instances
    ECS Capacity Provider
    Create Cluster (one time)
    Create ASG (one time)
    Create CP (one time)
    Run Tasks
    Instances start

    View Slide

  47. Application First
    Amazon ECS Capacity Provider: The Missing Link
    ECS Cluster
    EC2 Auto Scaling Group
    ECS Tasks
    EC2 Instances
    ECS Capacity Provider
    Create Cluster (one time)
    Create ASG (one time)
    Create CP (one time)
    Run Tasks
    Instances start
    Tasks placed

    View Slide

  48. Application First
    Amazon ECS Capacity Provider: The Missing Link
    ECS Cluster
    EC2 Auto Scaling Group
    ECS Tasks
    EC2 Instances
    ECS Capacity Provider
    Create Cluster (one time)
    Create ASG (one time)
    Create CP (one time)
    Run Tasks
    Instances start
    Tasks placed
    Happy hour :)

    View Slide

  49. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

    View Slide

  50. Application First
    Amazon ECS Capacity Provider: Fargate
    ECS Cluster
    ECS Tasks
    ECS Capacity Provider
    Create Cluster (one time)
    Run Tasks
    Happy hour :)

    View Slide

  51. ECS Cluster Auto Scaling
    • (中⽂文) Amazon ECS Cluster Capacity Providers> on
    ernestchiang.com
    • thinking with Amazon ECS capacity
    providers>, re:Invent 2019
    • < Deep Dive on Amazon ECS Cluster Auto
    Scaling> on AWS Container Blog
    Reference

    View Slide

  52. Thank you!
    © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    Ernest Chiang
    [email protected]
    @dwchiang
    ernestchiang.com

    View Slide

  53. 為了管理與經營經驗的傳承,本次透過為
    期五個月的計畫,邀請擁有豐富經驗的會
    員透過三大領域,透過小團隊緊密對談與
    傳承。
    協助 Mentee 在技術領導的道路上披荊斬
    棘,縮短種子輪到A輪(0到100的團隊管
    理),串流起開放的交流平台。
    導生 R&R
    ● 以 3 年以上工作經驗往管理職,
    或是正在管理上的新手
    ● 導生需協助整理所交流的知識
    ● 不得超過一次缺席,若有則喪失資格
    導師 R&R
    ● 導師自行安排討論
    主題與進行方式
    ● 每組至少每個月交流一次
    技術管理:以技術管理為主的技術
    高管,進行各項技術管理議題討論,
    如:技術效能、團隊管理等
    技術架構:以架構師為主,進行各
    項技術架構議題討論,如:技術選
    型、架構規劃等
    技術創業:以技術背景並有自行創業
    的夥伴為主,如:技術建立商業壁壘、
    公司運營、行銷推廣等
    三大領域
    報名連結 網站連結

    View Slide