際際滷

際際滷Share a Scribd company logo
Deploying serverless
Node.js microservices
蠖襷豌 Harrison Jung
Deploying
serverless
Node.js
microservices
襷危襦 觜るゼ
Node.js
Serverless 襦
覦壱蠍
DEPLOYING SERVERLESS NODE.JS MICROSERVICES
 襴: MSA ? Microservices?
碁危襦 觜 ろ豎 ( MicroService Architecture )
碁碁Μ ろ豎 ( Monolithic Architecture )
Microservices
Monolith
What is Monolith
語朱 旧覯
誤 ろ 轟  覓苦
誤 危殊
語朱朱 襷危 旧 螳覦覦
語蠏覈 襦語 蟆曙 觜襯 螳覦 螳
語蠏覈  蠍一 
DEPLOYING SERVERLESS NODE.JS MICROSERVICES
What is microservices
語  蠍磯レ朱 觜るゼ 覿襴,蟲
誤  觜り 襴曙朱 
瑚覲 觜れ 覓語螳 蠍語 るジ ろ 讌 レ 譯殊 
(  讌 . 伎螳    )
瑚覲 觜るれ 襦 るジ 語企 螳覦 螳 ( Multiple Language )
瑚覲 觜るれ 襴曙朱 Scale
碁蠏覈 觜れ 
碁    螳襦 伎 蠍一 ク襴
DEPLOYING SERVERLESS NODE.JS MICROSERVICES
Monolith vs Microservices
語 ろ 蟆曙 覓企Μ蟆 蠍 覲企る Monolith螳  .(
覓企Μ 碁 豢譬 )
語一 螳 觜襯願 Monolith襦 襷り, 蠏覈螳 貉れ覃伎 覿襴襯
伎 Microservices襦 覿 ク   .
誤 蠏覈襯 螳.
Microservices 螳 貉るる貅伎 襷れ 譴. ( 貉
 覯豺 )
語豌伎朱  螳覦覦 谿伎 觜るれ 危企ゼ 螻 
豕螻 豈螳 .
DEPLOYING SERVERLESS NODE.JS MICROSERVICES
Node.js for Microservices
Event
Driven
Javascript
Runtime
Async
Non-blocking I/O
What is Node.js
DEPLOYING SERVERLESS NODE.JS MICROSERVICES
Javascript Runtime
Chrome  V8 VM 蠍磯
DEPLOYING SERVERLESS NODE.JS MICROSERVICES
Event Driven
語企欧 譯朱
HTTP Request, Message income over socket, Keyboard,
etc..
Input/Output 讌  CPU Blocking 殊狩れ

DEPLOYING SERVERLESS NODE.JS MICROSERVICES
Async Non-blocking I/O
碁蠍 I/O
語豌 旧 蠍磯るΜ  るジ  螳
碁 れ   覯 れ  豌覃
蠏瑚 豌襴伎  Web Server蟆 襷れ 
Mutex, 企, 企欧 豌襴煙  蟆曙一  .
DEPLOYING SERVERLESS NODE.JS MICROSERVICES
Event
Driven
Javascript
Runtime
Async
Non-blocking I/O
What is Node.js
DEPLOYING SERVERLESS NODE.JS MICROSERVICES
Why Serverless
Automatic
Scale
No use
No pay
Focus
on
Code
Why Serverless
DEPLOYING SERVERLESS NODE.JS MICROSERVICES
No Use No Pay
語 觜襦 蠍
語  蟯  螳
碁 豌 豐 朱殊 螳 伎 觜襦
螻手
瑚骸蠍 螳 ms ( millisecond )
瑚朱  覿蠏豺 蟆曙 襷れ 襴
DEPLOYING SERVERLESS NODE.JS MICROSERVICES
Automatic Scale
語 觜襦 Autoscale
語譯 讌ъ 螳 豌蟆 襷 螳 覈磯る 豌襴 螳

Autoscale  企殊磯 螳 蠍磯蓋 
DEPLOYING SERVERLESS NODE.JS MICROSERVICES
Focus on Code
No infrastructure management
No VM management
語覯 蠍磯蓋 れ 企殊磯 襷♀鍵螻 Code襷 襷.
語ろ 蟯襴 蟆曙一 .
DEPLOYING SERVERLESS NODE.JS MICROSERVICES
Automatic
Scale
No use
No pay
Focus
on
Code
Why Serverless
DEPLOYING SERVERLESS NODE.JS MICROSERVICES
Deploy
Cloud Function App Engine Data Store Cloud Storage
Big Query Cloud Pub/Sub DataFlow Cloud ML
Cloud Repository
Git Push
Container Registry
( Build Trigger )
Event
Container Registry
( Image Build )
Build
Cloud Pub/Sub
Build Event
Deploy
Publish
Subscribe
Deploy
蟯 襷 : ( 觚)
Deploying serverless Node.js microservices (Google I/O '18)
https://www.youtube.com/watch?v=ogexnfng_hE
豢螳 襴 伎 : ( 覦 覩碁 )
https://medium.com/@HarrisonJung/node-js-app-for-google-app-engine-standard-be0375d2ec70

More Related Content

Deploying serverless node.js microservices