strongloopでサクっと始めるapiエコノミー
TRANSCRIPT
![Page 1: StrongLoopでサクっと始めるAPIエコノミー](https://reader033.vdocuments.pub/reader033/viewer/2022042907/587b0a811a28abb15c8b522f/html5/thumbnails/1.jpg)
StrongLoop × Bluemix でサクッと始める API エコノミー
Bluemix User Group日本 IBM (株)森住 祐介
![Page 2: StrongLoopでサクっと始めるAPIエコノミー](https://reader033.vdocuments.pub/reader033/viewer/2022042907/587b0a811a28abb15c8b522f/html5/thumbnails/2.jpg)
© 2015 IBM Corporation 2
自己紹介
• 森住 祐介(もりずみ ゆうすけ)
• スタートアップ支援 / アカデミック支援
• IBM Fintech 推進
• developerWorks 日本語版 編集長
![Page 3: StrongLoopでサクっと始めるAPIエコノミー](https://reader033.vdocuments.pub/reader033/viewer/2022042907/587b0a811a28abb15c8b522f/html5/thumbnails/3.jpg)
© 2015 IBM Corporation 3
2015 年 9 月IBM は StrongLoop の買収発表 !
IBM StrongLoop 買収を発表
![Page 4: StrongLoopでサクっと始めるAPIエコノミー](https://reader033.vdocuments.pub/reader033/viewer/2022042907/587b0a811a28abb15c8b522f/html5/thumbnails/4.jpg)
© 2015 IBM Corporation 4
2013 年設立 ソフトウェアとサービス提供 本社 カリフォルニア州サンマテオ Node.js 財団の創立メンバー
4
メンバーに 6 人 の Node Core Committer オープンソースプロジェクトのサポートと、 JavaScript と
Node.js コミュニティーのリーダーシップ Node プロジェクトへ 130 万行以上のコードの貢献 Node.js エコシステムの 160 モジュール以上の維持
Express と LoopBack フレームワークのコーポレート・スポンサー
完全な API ライフサイクルのための Enterprise Node.js SW ソリューション
Node.js を使用した API/ マイクロサービス開発のサービスとトレーニング の提供
Organization
Open Community
Offerings
StrongLoop 社
![Page 5: StrongLoopでサクっと始めるAPIエコノミー](https://reader033.vdocuments.pub/reader033/viewer/2022042907/587b0a811a28abb15c8b522f/html5/thumbnails/5.jpg)
© 2015 IBM Corporation 5
StrongLoop 買収の背景 デジタル変革時代
• “ 銀行”は必ずしも必要ない、人々が欲しいのは銀行のサービス、ライバルは同業他社ではない(Heather Cox, CMO for Global Consumer Banking, Citi InterConnect 2015)
Citi Mobile Challenge• 開発者の自由な発想を取り込むべく開催
• “ 銀行サービス” (API) を利用した革新的なサービ
スの発掘
• API エコノミーの活用
![Page 6: StrongLoopでサクっと始めるAPIエコノミー](https://reader033.vdocuments.pub/reader033/viewer/2022042907/587b0a811a28abb15c8b522f/html5/thumbnails/6.jpg)
© 2015 IBM Corporation 6
StrongLoop が提供する製品
StrongLoop Arc
Data Connectors
Mobile SDKs
Enterprise Connectors
Process Manager
Monitoring & Tracing
LoopBack: API ServerExpress Framework
Enterprise Support
API Gateway (beta)Open Source
Commercial
License Model
Node.js のWeb アプリ・
フレームワークのデファクト
MEAN(MongoDB, Express, AngularJS, Node.js)
![Page 7: StrongLoopでサクっと始めるAPIエコノミー](https://reader033.vdocuments.pub/reader033/viewer/2022042907/587b0a811a28abb15c8b522f/html5/thumbnails/7.jpg)
© 2015 IBM Corporation 7
「プログラミング言語」 JavaScript の人気の高まり
1 JavaScript2 Java3 PHP4 Python5 C#5 C++5 Ruby8 CSS9 C10 Objective-C11 Perl11 Shell13 R14 Scala15 Go15 Haskell17 Matlab18 Swift19 Clojure19 Groovy19 Visual Basic
The RedMonk Programming Language Rankings: June 2015 より
![Page 8: StrongLoopでサクっと始めるAPIエコノミー](https://reader033.vdocuments.pub/reader033/viewer/2022042907/587b0a811a28abb15c8b522f/html5/thumbnails/8.jpg)
© 2015 IBM Corporation 8
StrongLoop を含むアーキテクチャー
エンタープライズ・アプリケーション / ビッグデータ
モバイル , IoT, Web
パートナー
アプリ
アクセス
情報
プロセス
インタラクション
API Lifecycle
+ -
Hybrid Cloud
Microservices =APIs+ Business Logic
Java
![Page 9: StrongLoopでサクっと始めるAPIエコノミー](https://reader033.vdocuments.pub/reader033/viewer/2022042907/587b0a811a28abb15c8b522f/html5/thumbnails/9.jpg)
© 2015 IBM Corporation 9
Node.js の得意とするサーバーサイド処理
• API の提供– 画面遷移など (View/Control) は
ブラウザ上の JavaScript で実行– ブラウザ上の
アプリケーションからサーバーサイドの処理をAPI として利用
• 大量のリクエストの処理– ノンブロッキング I/O が
強制されていることにより多数のクライアントへの対応が可能( C10K 問題)
Web Browser
Server
Application
View
ControllerDataStore
Model
Model
DomainDomain
RESTful JSON
Business Logic
![Page 10: StrongLoopでサクっと始めるAPIエコノミー](https://reader033.vdocuments.pub/reader033/viewer/2022042907/587b0a811a28abb15c8b522f/html5/thumbnails/10.jpg)
© 2015 IBM Corporation 10
ノンブロッキング I/O とは
• 大量のクライアントからのリクエストを効率よく処理するしくみ– サーバー処理での I/O 待ちをなくせば効率がよくなるはず
Main I/O 1 I/O 2 Main I/O 1 I/O 2
ブロッキング I/O ノンブロッキング I/O
I/O で処理がブロッキングされず他の処理が継続して実行される
I/O 完了後に処理を継続したい場合は呼び出し時に「コールバック」を登録しておく
![Page 11: StrongLoopでサクっと始めるAPIエコノミー](https://reader033.vdocuments.pub/reader033/viewer/2022042907/587b0a811a28abb15c8b522f/html5/thumbnails/11.jpg)
© 2015 IBM Corporation 11
StrongLoop で API を作成した後は管理しましょう
Create Run Manage
Create Run Manage
Create Run Manage } Manage
• API の素早い開発• 膨大なクライアント数対
応• スケール• 監視・管理
API 作成 / 実行の課題 • API の発見、アセンブリ
• API の外部公開• ポリシー管理• ライフサイクル管理• アクセス制御• モニタリング• etc
API 管理の課題
Java?
:
IBM API Management
![Page 12: StrongLoopでサクっと始めるAPIエコノミー](https://reader033.vdocuments.pub/reader033/viewer/2022042907/587b0a811a28abb15c8b522f/html5/thumbnails/12.jpg)
© 2015 IBM Corporation 12
StrongLoop – 個々の API のライフサイクルをカバー
Build and Deploy
Automate Lifecycle
Performance MetricsReal-time production monitoring
ProfilerRoot cause
CPU & Memory
API ComposerVisual modeling
Process ManagerScale APIs
SecurityAPI Services Gateway
LoopBackOpen source
API 構築 パフォーマンス管理 ビルド・デプロイ スケール セキュリティ
![Page 13: StrongLoopでサクっと始めるAPIエコノミー](https://reader033.vdocuments.pub/reader033/viewer/2022042907/587b0a811a28abb15c8b522f/html5/thumbnails/13.jpg)
© 2015 IBM Corporation 13
API を公開する時の StrongLoop の利用イメージ
何を API として公開するかを決める1
必要なデータ・ソースに接続する API を作成2
作成した API を運用・管理3
既存データを使用する際のモデルを作成
Connector を利用し , 容易に接続が可能
Arc を利用し ,GUI で管理が可能
![Page 14: StrongLoopでサクっと始めるAPIエコノミー](https://reader033.vdocuments.pub/reader033/viewer/2022042907/587b0a811a28abb15c8b522f/html5/thumbnails/14.jpg)
© 2015 IBM Corporation 14
やってみた
• ざっくりまとめると以下のような流れ1. LoopBack アプリをローカルで生成2. Bluemix 等のクラウド上の DB を用意3. LoopBack モデル生成4. Bluemix 上にデプロイ
→・・・・できた 他のクラウド環境の DB とも連携できる
REST API
![Page 15: StrongLoopでサクっと始めるAPIエコノミー](https://reader033.vdocuments.pub/reader033/viewer/2022042907/587b0a811a28abb15c8b522f/html5/thumbnails/15.jpg)
© 2015 IBM Corporation 15
Now availableLearn More Here
Announcing StrongLoop on Bluemix (Arc, LoopBack, Express, Node.js)
Bluemix 上で利用可能
![Page 16: StrongLoopでサクっと始めるAPIエコノミー](https://reader033.vdocuments.pub/reader033/viewer/2022042907/587b0a811a28abb15c8b522f/html5/thumbnails/16.jpg)
© 2015 IBM Corporation 16
https://www.koding.com/Hackathon
Bluemix フリートライアル 60 日に延
長 ! 優勝賞金 1200 万円 !!
2/20-21 ( PST )開催 !2/12 までお申し込み
を !