OpenWhisk
Serverless
- 개발자가 BizLogic에 집중할수 있도록
- not 인프라 (인프라는 개발하는데 시간이 오래걸림)
- 사실 서버리스는 참이 아니다
- 개발자관점에서 볼때 서버에 대해서 신경을 쓸필요가 없다
silo
opensource 의 장점
- 특정 클라우드 vender에 bind되어 있지 않다
- ex) cloud foundry, openwhisk...
function as a service ? <- SaaS <- PaaS <-IaaS
fire and forget
- queue : point-point O n(n-1)
- topic : O (1) ... Event-driven, 내가 원하는 어플리케이션은 너야
: emit event, 원하는 이벤트가 있는 경우에만 해당코드가 돌아가면 된다
only pay what use
pay per use
vm 같은 경우는 쓰지않아도 과금됨
poly (많다) 글록(언어) ? ... C, 파이선, ....
ex) 핸드폰 사용요금
nodejs의 restful api와 비슷한 개념인가?
- biz 로직을 js안에서 구현한다
-
TAR
trigger (emit event), humidity
action (
rules = trigger -> action, humidity 30 %...
package = trigger + action
Marchitecture
nodejs : single thread
scalar : multi thread
...scalar로 변경되는 추세임
=======================================================================
[실습]
Microsoft Windows [Version 6.1.7601]
SDS@SDS-PC C:\Users\SDS
$ cf login
API endpoint: https://api.ng.bluemix.net
Email> human537@nate.com
Password>
Authenticating...
Credentials were rejected, please try again.
Password>
Authenticating...
OK
Targeted org jmyung
Select a space (or press enter to skip):
1. dev
2. qa
3. prod
Space> 1
Targeted space dev
API endpoint: https://api.ng.bluemix.net (API version: 2.54.0)
User: human537@nate.com
Org: jmyung
Space: dev
SDS@SDS-PC C:\Users\SDS
$ wsk
'wsk'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.
SDS@SDS-PC C:\Users\SDS
$ cd c:\dev
SDS@SDS-PC c:\dev
$ wsk
____ ___ _ _ _ _ _
/\ \ / _ \ _ __ ___ _ __ | | | | |__ (_)___| | __
/\ /__\ \ | | | | '_ \ / _ \ '_ \| | | | '_ \| / __| |/ /
/ \____ \ / | |_| | |_) | __/ | | | |/\| | | | | \__ \ <
\ \ / \/ \___/| .__/ \___|_| |_|__/\__|_| |_|_|___/_|\_\
\___\/ tm |_|
Usage:
wsk [command]
Available Commands:
action work with actions
activation work with activations
package work with packages
rule work with rules
trigger work with triggers
sdk work with the sdk
property work with whisk properties
namespace work with namespaces
list list entities in the current namespace
api-experimental work with APIs (experimental)
Flags:
--apihost HOST whisk API HOST
--apiversion VERSION whisk API VERSION
-u, --auth KEY authorization KEY
-d, --debug debug level output
-h, --help help for wsk
-i, --insecure bypass certificate checking
-v, --verbose verbose output
Use "wsk [command] --help" for more information about a command.
SDS@SDS-PC c:\dev
$
'Cloud > Bluemix' 카테고리의 다른 글
Cloud Foundry difference between Pivotal and IBM (0) | 2017.07.10 |
---|---|
Bluemix 총정리 (0) | 2017.04.20 |
Royal Bank of Canada's Journey (0) | 2017.04.20 |
chatbot (0) | 2017.04.19 |
Service & deployment (0) | 2017.04.18 |