![Page 1: Google Cloud Next 2017 Seoul Extended 1st Session](https://reader036.vdocuments.pub/reader036/viewer/2022070518/58e51e941a28ab624e8b5799/html5/thumbnails/1.jpg)
![Page 2: Google Cloud Next 2017 Seoul Extended 1st Session](https://reader036.vdocuments.pub/reader036/viewer/2022070518/58e51e941a28ab624e8b5799/html5/thumbnails/2.jpg)
Serverless & Free Tier Overview
㈜CTO | Harrison
Jung
![Page 3: Google Cloud Next 2017 Seoul Extended 1st Session](https://reader036.vdocuments.pub/reader036/viewer/2022070518/58e51e941a28ab624e8b5799/html5/thumbnails/3.jpg)
Serverless
![Page 4: Google Cloud Next 2017 Seoul Extended 1st Session](https://reader036.vdocuments.pub/reader036/viewer/2022070518/58e51e941a28ab624e8b5799/html5/thumbnails/4.jpg)
![Page 5: Google Cloud Next 2017 Seoul Extended 1st Session](https://reader036.vdocuments.pub/reader036/viewer/2022070518/58e51e941a28ab624e8b5799/html5/thumbnails/5.jpg)
Serverless != No Server• Serverless 는
(물리적 ) 서버가없는아키텍쳐가아닌
(논리적 ) 서버가없는아키텍쳐
• Micro Server Architecture => Functional System
• Cloud 에서제공해주는기능들을최대한활용
• 모든하드웨어관리 , OS 관리 , 시스템관리는 Cloud 에맡김
• FaaS ( Functions as a Service )
![Page 6: Google Cloud Next 2017 Seoul Extended 1st Session](https://reader036.vdocuments.pub/reader036/viewer/2022070518/58e51e941a28ab624e8b5799/html5/thumbnails/6.jpg)
Serverless 의 장점• Auto-Scaling : 그냥존재자체가 Auto-Scaling
• 함수단위로움직이기에우리가서버를애초에컨트롤불가능
• 몇대의서버에서해당함수가동작할지우리는모른다 .
• 비용 : 정확히쓴만큼낸다 .• 1 달에 10 번도호출되지않는서버비용을과연지출해야하는걸까 ?
• 어떨땐 1 분동안 1 만명이들어오기도한다 . 하지만하루중나머지 1439분은 ? – 서버로구성한다면몇대의서버가필요할까 ?
![Page 7: Google Cloud Next 2017 Seoul Extended 1st Session](https://reader036.vdocuments.pub/reader036/viewer/2022070518/58e51e941a28ab624e8b5799/html5/thumbnails/7.jpg)
구성은 어떻게 ?•연산
•저장공간
• Simple Messaging
• Monitoring, Logging
=> Google Cloud Functions
=> Google Cloud Storage
=> Google Cloud Pub/Sub
=> Google Stackdriver
![Page 8: Google Cloud Next 2017 Seoul Extended 1st Session](https://reader036.vdocuments.pub/reader036/viewer/2022070518/58e51e941a28ab624e8b5799/html5/thumbnails/8.jpg)
Cloud Functions
Cloud Pub/Sub
Cloud Storage
사용자 Image 업로드
Image 파일복사
이벤트 Noti
이벤트트리거
Image 파일보관
SampleImage 리사이징Image 리사이징
![Page 9: Google Cloud Next 2017 Seoul Extended 1st Session](https://reader036.vdocuments.pub/reader036/viewer/2022070518/58e51e941a28ab624e8b5799/html5/thumbnails/9.jpg)
이벤트의 흐름Cloud Logging
Cloud APIs
Cloud Dataflow
Cloud Storage
Compute Engine
Cloud Function
App Engine
Cloud Network
Etc…
Cloud Pub/Sub
![Page 10: Google Cloud Next 2017 Seoul Extended 1st Session](https://reader036.vdocuments.pub/reader036/viewer/2022070518/58e51e941a28ab624e8b5799/html5/thumbnails/10.jpg)
Cloud Functions• Serverless 의 핵심• Auto-Scale : 요청수 만큼 자동 배포• Node.js v 6.9.1• Cloud Pub/Sub , HTTP Trigger , Cloud Storage Bucket• 과금 방식• 호출 횟수 : 100 만건당 $0.4• 메모리 (GB) * 사용시간 ( s ) : 40 만 GB-seconds 당 $1• CPU 성능 ( GHz ) * 사용시간 ( s ) : 10 만 GHz-seconds 당 $1• ( 아주 러프하게는 간단히 100 만건당 $1 로 계산하면 얼추 맞음 )
![Page 11: Google Cloud Next 2017 Seoul Extended 1st Session](https://reader036.vdocuments.pub/reader036/viewer/2022070518/58e51e941a28ab624e8b5799/html5/thumbnails/11.jpg)
Free Tier
![Page 12: Google Cloud Next 2017 Seoul Extended 1st Session](https://reader036.vdocuments.pub/reader036/viewer/2022070518/58e51e941a28ab624e8b5799/html5/thumbnails/12.jpg)
Free Tier•12 Months
• $ 300
•Always Free• Google Compute Engine
• Google Cloud Storage
• Google Cloud Pub/Sub
• Google App Engine
• Google Cloud Functions
• Google Cloud Source Repo.
• Etc..
![Page 13: Google Cloud Next 2017 Seoul Extended 1st Session](https://reader036.vdocuments.pub/reader036/viewer/2022070518/58e51e941a28ab624e8b5799/html5/thumbnails/13.jpg)
Free Tier 제한Compute Engine
• f1-micro : 공유 v1CPU / 0.64GB RAM ( US Only )
• 30 GB HDD
• 1GB Network Egress
Cloud Storage
• 5GB Storage ( US Only )
• 1GB Network Egress
![Page 14: Google Cloud Next 2017 Seoul Extended 1st Session](https://reader036.vdocuments.pub/reader036/viewer/2022070518/58e51e941a28ab624e8b5799/html5/thumbnails/14.jpg)
Free Tier 제한Cloud Functions
• 2M Invocations Per Month
• 400,000 GB-Seconds ( RAM )
• 200,000 GHz-Seconds ( CPU )
• 5GB Network Egress
Cloud Pub/Sub
• 10GB Message per Month
![Page 15: Google Cloud Next 2017 Seoul Extended 1st Session](https://reader036.vdocuments.pub/reader036/viewer/2022070518/58e51e941a28ab624e8b5799/html5/thumbnails/15.jpg)
Free Tier 제한App Engine
• 28 Instance hours per day
• 5GB Storage
• 100 E-mail per day
Cloud Datastore
• 1GB Storage
• 50,000 Read
• 20,000 Write
• 20,000 Delete per day
![Page 16: Google Cloud Next 2017 Seoul Extended 1st Session](https://reader036.vdocuments.pub/reader036/viewer/2022070518/58e51e941a28ab624e8b5799/html5/thumbnails/16.jpg)
Free Tier 제한Google Stackdriver
• 5GB Logs with 7 day reten-
tion
Cloud Source Repositories• 1 GB Private Hosting