Slide 1

Slide 1 text

Docker Meetup Kansai #2 2018.12.26 Developerから観たOpenFaaSの可能性 @kenfdev

Slide 2

Slide 2 text

Agenda

Slide 3

Slide 3 text

https://t.co/IXxtCae6xW

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

OpenFaaSとは? • コンテナを使ったFaaSなPlatform • どんなコードでもFunctionになり得る • Kubernetes & Docker Swarm ネイティブ

Slide 6

Slide 6 text

Developerファースト • ドキュメント • ワークショップ • Slackコミュニティ

Slide 7

Slide 7 text

様々な⾔語を公式にサポート https://do.co/2rF0xf4

Slide 8

Slide 8 text

functionの作り⽅ $ faas new --lang go --prefix kenfdev sample-func 1.

Slide 9

Slide 9 text

functionのデプロイ Docker Image go Template $ faas up 2.

Slide 10

Slide 10 text

Stack files (YAML)

Slide 11

Slide 11 text

アーキテクチャ (Kubernetes)

Slide 12

Slide 12 text

Demo

Slide 13

Slide 13 text

Why OpenFaaS?

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

悩む時間さえもったいない R o b e r t C . M a r t i n ( U n c l e B o b ) M a k e t h e D e l i v e r y M e c h a n i s m a P l u g i n t o y o u r A p p l i c a t i o n . A l l t h e a r c h i t e c t u r a l d e c i s i o n s w e w a n t t o d e f e r … H o w d o w e d e f e r t h e m ? W e t u r n t h e m i n t o p l u g i n s . M a k e t h e D e l i v e r y M e c h a n i s m a P l u g i n t o y o u r A p p l i c a t i o n . A l l t h e a r c h i t e c t u r a l d e c i s i o n s w e w a n t t o d e f e r … H o w d o w e d e f e r t h e m ? W e t u r n t h e m i n t o p l u g i n s .

Slide 16

Slide 16 text

Infrastructure Infrastructure Orchestrator Orchestrator A p p l i c a t i o n C o r e プラグインとしてのインフラ

Slide 17

Slide 17 text

開発⾔語やフレームワークもプラグイン https://github.com/kenfdev/openfaas-everywhere

Slide 18

Slide 18 text

素早く開発、そしてスケール https://bit.ly/2LwXgrm

Slide 19

Slide 19 text

簡単&軽量

Slide 20

Slide 20 text

充実したコミュニティ

Slide 21

Slide 21 text

Production利⽤も徐々に⤴

Slide 22

Slide 22 text

コントリビュートしてみよう • ワークショップをやってみよう • OpenFaaSのアーキテクチャについて学んでみよう • Function Storeに⾃分の作ったfunctionを追加してみよう • ブログを書いてコミュニティページに追加し、PRしてみよう • CLIの改善に貢献してみよう • SlackにJoinしよう • ⾦曜⽇にTwitterで #FaaSFriday とタグをつけてOpenFaaSに関わる何かを つぶやいてみよう など、様々なかたちでコントリビュートできます! コードを書いてPRを出すことがすべてじゃない!

Slide 23

Slide 23 text

OpenFaaS Cloud

Slide 24

Slide 24 text

OpenFaaS Cloud

Slide 25

Slide 25 text

Reference

Slide 26

Slide 26 text

References https://bit.ly/2Lyneuw

Slide 27

Slide 27 text

• 次世代of-watchdog
 https://github.com/openfaas-incubator/of-watchdog • Node.js + Expressテンプレート
 https://github.com/openfaas-incubator/node8-express-template • Python + Flaskテンプレート
 https://github.com/openfaas-incubator/python27-flask-template • Go + Go Httpテンプレート
 https://github.com/openfaas-incubator/golang-http-template References • CNCF WG-Serverless Whitepaper v1.0
 https://github.com/cncf/wg-serverless/blob/master/whitepapers/serverless-overview/cncf_serverless_whitepaper_v1.0.pdf • 【完訳】CNCF Serverless Whitepaper v1.0
 http://www.atmarkit.co.jp/ait/series/9263/ Serverlessについて Function関連

Slide 28

Slide 28 text

References • OpenFaaSのドキュメント
 https://docs.openfaas.com/ • API Gatewayのドキュメント
 https://github.com/openfaas/faas/tree/master/gateway • 現⾏watchdogのドキュメント
 https://github.com/openfaas/faas/tree/master/watchdog • OpenFaaS Cloud
 https://github.com/openfaas/openfaas-cloud • OpenFaaSの主なGitリポジトリ⼀覧
 https://docs.openfaas.com/contributing/get-started/#main-git-repositories その他

Slide 29

Slide 29 text

ご清聴ありがとうございました! @kenfdev