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

Deployment Microservices Laravel di Layanan Ser...

Deployment Microservices Laravel di Layanan Serverless AWS

Agenda
● Containers
● Microservices
● Serverless
● Amazon ECS
● AWS Fargate
● Laravel on Containers
● Demo

Fikih Firmansyah

May 06, 2023
Tweet

More Decks by Fikih Firmansyah

Other Decks in Technology

Transcript

  1. Deployment Microservices Laravel di Layanan Serverless AWS Universitas IBBI, 06

    Mei 2023 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 1
  2. Introduction Fikih Firmansyah Backend Developer di Xtend Indonesia © 2023,

    Amazon Web Services, Inc. or its affiliates. All rights reserved. 2
  3. Agenda • Containers • Microservices • Serverless • Amazon ECS

    • AWS Fargate • Laravel on Containers • Demo © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 3
  4. Masalah Klasik : Ini aplikasinya jalan di laptop, kenapa ngga

    jalan di server? © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 5
  5. Masalah • Tech-stack yang berbeda • Hardware deployment environments yang

    berbeda • Bagaimana cara mudah bermigrasi dari satu environments ke environments lain? © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 7
  6. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 8 PROJECT A • PHP 8.2.3 • PGSQL 13 • LARAVEL 10 PROJECT B • PHP 8.1.25 • PGSQL 13 • LARAVEL 9
  7. Solusi Container • Code Delivery • Lightweight, portable, consistent •

    Implementasi dan jalan di mana saja • Implementasi dan jalan dengan apa saja • Jembatan antara dev dan ops © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 9
  8. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 10 PROJECT A • PHP 8.2.3 • PGSQL 13 • LARAVEL 10 PROJECT B • PHP 8.1.25 • PGSQL 13 • LARAVEL 9
  9. Case Study: HRD - Attendance © 2023, Amazon Web Services,

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

    rights reserved. 13 users reimburseme nt letter overtime leave attendance
  11. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 14 users reimburseme nt letter overtime leave attendance Baris-baris ini adalah alur komunikasi
  12. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 15 users attendance
  13. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 16 users attendance
  14. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 17 users attendance
  15. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 18 users attendance
  16. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 19 users attendance
  17. What defines a service? © 2023, Amazon Web Services, Inc.

    or its affiliates. All rights reserved. 22
  18. Services are autonomous • Tidak ada yang REQUEST apa pun

    dari mereka • Mereka tidak REQUEST sesuatu kepada yang lain • Mereka tidak menyadari keberadaan hal-hal lain © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 24
  19. API ? Event bus Legacy runtime (payroll, etc) dispatch New

    runtime attendances employees Job requested!
  20. API ? Event bus Legacy runtime (payroll, etc) dispatch New

    runtime attendances employees Job requested! I started record employee track yawn noted
  21. API ? Event bus Legacy runtime (payroll, etc) dispatch New

    runtime attendances employees I finished track user
  22. Amazon ECS? © 2023, Amazon Web Services, Inc. or its

    affiliates. All rights reserved. 35
  23. AWS Fargate © 2023, Amazon Web Services, Inc. or its

    affiliates. All rights reserved. 36
  24. Laravel on Containers © 2023, Amazon Web Services, Inc. or

    its affiliates. All rights reserved. 37
  25. Demo :) © 2023, Amazon Web Services, Inc. or its

    affiliates. All rights reserved. 38