Slide 1

Slide 1 text

曾義峰 (Ant) [email protected] 2020-07-25 Severless PHP Case Agile Dashboard via GitLab Board API

Slide 2

Slide 2 text

2/67 LeadBest Consulting Group » 首席執行顧問 TGONetworks » 台北分會學籍委員 » 資安技術社群 CHROOT 成員 13 年互聯網研發經驗, 4 年顧問資歷。 具備銀行安全交易系統、電子票證系統、清分清算系統、機載娛樂系統、 數位廣告 (Adtech) 平台、古典樂線上平台及高效能電腦集群入口平台等 開發經驗。

Slide 3

Slide 3 text

3/67 Credit : http://90sheji.com/png/wanshouji.html Pay for what I use (pay-as-you-go) Granular scaling Personalization (vs. SaaS)

Slide 4

Slide 4 text

4/67 Serverless

Slide 5

Slide 5 text

5/67 Credit : The Emergent Cloud Securiyt Toolchain for CI CD (2018-04).pdf

Slide 6

Slide 6 text

6/67 Credit : https://specify.io/concepts/serverless-baas-faas

Slide 7

Slide 7 text

7/67 Credit : https://read.acloud.guru/acg-faas-and-furious-b9574b6675c5

Slide 8

Slide 8 text

8/67 Credit : Cloud Native Security 101 (2019-02-02).pdf

Slide 9

Slide 9 text

9/67 Credit : Cloud Native Security 101 (2019-02-02).pdf

Slide 10

Slide 10 text

10/67 Credit : https://twitter.com/dexhorthy/status/856639005462417409

Slide 11

Slide 11 text

11/67 Credit : Monitoring Serverless Architectures (2017-06-21) - p9

Slide 12

Slide 12 text

12/67 Serverless != No Server Serverless != No Server Serverless != NoOps ”Serverless” 非指不再涉及伺服器。 ”Serverless” 意味著開發人員不再需為 ” Server” 煩惱太多。

Slide 13

Slide 13 text

13/67 Serverless != No Server Serverless != No Server Serverless != NoOps ”Serverless” 非指不再涉及伺服器。 ”Serverless” 意味著開發人員不再需為 ” Server” 煩惱太多。 Serverless == LessOps

Slide 14

Slide 14 text

14/67 如果說 Agile + IaaS 孵化了 DevOps , 那麼, Agile + BaaS + FaaS 則孕育了 Serverless 。

Slide 15

Slide 15 text

15/67 Agile Dashboard

Slide 16

Slide 16 text

16/67

Slide 17

Slide 17 text

17/67

Slide 18

Slide 18 text

18/67

Slide 19

Slide 19 text

19/67

Slide 20

Slide 20 text

20/67 Why Excel ? Stakeholders & MVP (GUI friendly)

Slide 21

Slide 21 text

21/67

Slide 22

Slide 22 text

22/67

Slide 23

Slide 23 text

23/67

Slide 24

Slide 24 text

24/67

Slide 25

Slide 25 text

25/67

Slide 26

Slide 26 text

26/67

Slide 27

Slide 27 text

27/67

Slide 28

Slide 28 text

28/67

Slide 29

Slide 29 text

29/67 https://github.com/m4tthumphrey/php-gitlab-api » https://github.com/GitLabPHP/Client

Slide 30

Slide 30 text

30/67 Credit : https://docs.gitlab.com/ee/api/api_resources.html

Slide 31

Slide 31 text

31/67 Credit : https://docs.gitlab.com/ee/api/issues.html

Slide 32

Slide 32 text

32/67 Credit : https://opensource.box.com/spout/

Slide 33

Slide 33 text

33/67 Cold Start

Slide 34

Slide 34 text

34/67 Cold Start ( 冷啟動 ) Credit : https://azure.microsoft.com/en-us/blog/understanding-serverless-cold-start/

Slide 35

Slide 35 text

35/67 Credit : Cloud Native Security 101 (2019-02-02).pdf

Slide 36

Slide 36 text

36/67 Credit : https://fauna.com/blog/comparison-faas-providers

Slide 37

Slide 37 text

37/67 Credit : https://mikhail.io/2018/08/serverless-cold-start-war/

Slide 38

Slide 38 text

38/67 Credit : https://mikhail.io/serverless/coldstarts/aws/

Slide 39

Slide 39 text

39/67 Credit : https://medium.com/the-theam-journey/benchmarking-aws-lambda-runtimes-in-2019-part-i-b1ee459a293d

Slide 40

Slide 40 text

40/67 Credit : https://medium.com/the-theam-journey/benchmarking-aws-lambda-runtimes-in-2019-part-i-b1ee459a293d 有沒有發現,清單中都沒有今日的主角, PHP 去哪了!

Slide 41

Slide 41 text

41/67 PHP runtime for Serverless

Slide 42

Slide 42 text

42/67 Credit : https://aws.amazon.com/lambda/faqs/

Slide 43

Slide 43 text

43/67 Credit : https://aws.amazon.com/tw/blogs/apn/aws-lambda-custom-runtime-for-php-a-practical-example/

Slide 44

Slide 44 text

44/67 Credit : https://bref.sh/

Slide 45

Slide 45 text

45/67 Credit : https://mnapoli.fr/serverless-php-performances/

Slide 46

Slide 46 text

46/67 雲架構

Slide 47

Slide 47 text

47/67 CloudWatch Simple Email Service Simple Notification Service Simple Storage Service Lambda Step Functions Lambda Lambda

Slide 48

Slide 48 text

48/67 CloudWatch Simple Email Service Simple Notification Service Simple Storage Service Lambda Step Functions Lambda Lambda 解析

Slide 49

Slide 49 text

49/67 Lambda

Slide 50

Slide 50 text

50/67 Lambda Lambda Lambda

Slide 51

Slide 51 text

51/67 Lambda Step Functions Lambda Lambda

Slide 52

Slide 52 text

52/67 CloudWatch Lambda Step Functions Lambda Lambda

Slide 53

Slide 53 text

53/67 CloudWatch Simple Storage Service Lambda Step Functions Lambda Lambda

Slide 54

Slide 54 text

54/67 CloudWatch Simple Email Service Simple Storage Service Lambda Step Functions Lambda Lambda

Slide 55

Slide 55 text

55/67 CloudWatch Simple Email Service Simple Notification Service Simple Storage Service Lambda Step Functions Lambda Lambda

Slide 56

Slide 56 text

56/67 Credit : https://www.infoq.com/news/2020/07/future-serverless-architecture/

Slide 57

Slide 57 text

57/67 經驗與分享

Slide 58

Slide 58 text

58/67 Credit : https://mnapoli.fr/serverless-php-performances/

Slide 59

Slide 59 text

59/67 Credit : Oracle Performance Triangle

Slide 60

Slide 60 text

60/67 Lower latency ? 嘗試移除沒利用到的 PHP Extensions 。

Slide 61

Slide 61 text

61/67 Credit : Anticorrupting the Enterprise - Serverlessconf NYC 2017 (2019-01-06).pdf

Slide 62

Slide 62 text

62/67 Credit : Anticorrupting the Enterprise - Serverlessconf NYC 2017 (2019-01-06).pdf 需視你的情況而定

Slide 63

Slide 63 text

63/67 Credit : https://read.acloud.guru/acg-faas-and-furious-b9574b6675c5

Slide 64

Slide 64 text

64/67 Credit : https://www.earlytorise.com/3-proven-tools-to-change-your-mindset/

Slide 65

Slide 65 text

65/67 Credit : http://90sheji.com/png/wanshouji.html Lower Cost Granular scaling LessOps Observability

Slide 66

Slide 66 text

66/67 Credit : http://90sheji.com/png/wanshouji.html Pay for what I use (pay-as-you-go) Granular scaling Personalization (vs. SaaS)

Slide 67

Slide 67 text

67/67 [email protected] https://www.facebook.com/yftzeng.tw https://twitter.com/yftzeng 曾義峰 (Ant)