SlideShare ist ein Scribd-Unternehmen logo
1 von 30
ABOUT CLIFF
•Certified AWS …
•Professional Level SA
•Associate Level Sysops
•Senior Architect @ 104 Corp.
•Converted 2009
104 徵人好難的,GOOGLE上搜尋 “104 職缺” 查到的都是其它公司 T_T
這傢伙怎麼到哪都在徵人….
 EC2 各種麻煩
◦ Load Balancing
◦ Types
◦ Contracts
◦ AutoScaling
 Parameters
 Pattern
4/20/2016
CC-BY 3.0, Cliff Chao-kuan Lu
<clifflu@gmail.com> 4
-- 2014 AWS JavaScript
SDK and DynamoDB
4/20/2016
CC-BY 3.0, Cliff Chao-kuan Lu
<clifflu@gmail.com> 5
寫在前面 – 科學記數
•今天會談到很多很小的數字
•用科學記數比較方便
•1e3 = 1,000
•4e-4 = 0.000 4
•1 – 1e-11 = 0.999 999 999 99
BACKGROUND
•雲端世代只需要 開發者
•Market Survey -> User analysis
•Waterfall Design -> Iterative
•QA -> Unit test + End-to-end test
•Infrastructure as Code
•開發能力難由履歷評沽
INTERVIEW – 肉搜
爬 BLOG, GITHUB, 社群參與或發表記錄
INTERVIEW – 型式聊聊
聊聊天氣、學校老師、大學宿舍養的狗、台中名產,面試就結束了
INTERVIEW – 測驗
出題閱券都有點麻煩,不小心還會改錯
INTERVIEW – 白版解題
不小心一個下午就這麼過去了
問題是
•時間
•時間
•時間
前面的手法都不太容易 SCALE
LEETCODE
既然有人刷 LEETCODE 準備面試…
那就來做測驗 API 吧
凡是人類做了嫌麻煩浪費時間的,都應該自動化;
凡是牽涉溝通的,都應該交給 API!
服務設計考量
•效能
•管理
•費用
API GATEWAY + LAMBDA + S3
•Managed Services
•解決效能、管理問題
•費用
•皆在 1e-6 鎂/Request 之數量級
LAMBDA
•Serverless 運算服務
•支援 Python, Node.js 與 Java
•Managed, AWS 負責 HA 與 Scalability
•/tmp 有 512mb 可用
•若 24/7 運行 (128mb),費用與 t2.nano 相若
•觸發與權限設置詳見文件
API GATEWAY
•Managed HTTPS API Gateway
•權限設計頗複雜,必須 詳讀文件
架構
運作
DETAILED PRICING
•API-gateway
•請求 $3.5e-6 Calls
•傳出 $0.09 / GB
•Lambda
•請求 $2e-7 (first 1M free)
•執行 $2e-7 (100ms, 128MB)
•S3
•儲存 $0.03 / GB-month
•傳出 $0.09 / GB
•請求 $4e-7 GET
OPEX
•假設說明、題目、與解答均為 1kb
•下載題目: $5.2e-6
•每次答題 / 取題: $4.8e-6
COST ESTIMATION
•若每日萬人應試,各下載 10 題,每題嘗試 20 次
•月支出
= 1e4 * (10 * (5.2e-6 + 20 * 4.8e-6))
~ 10.1 (USD)
•約合 2 台 t2.nano
管理
•Managed Service 解決了區域內的可用性與彈性問題
•跨區部署成本
•儲存試題 (S3 儲存 <1USD/mo)
•Route53 ($0.4e-6 per lookup)
•API-Gateway + Lambda ~ 0 (Pay as you go)
開發
•Python 2.7
•100% test coverage (pytest)
•引擎可能會 Open Source,但題目暫傾向不要
•答案都在裡頭 >///<
部署
•目前仍手動部署
•計劃:
•以 Script 管理 CloudFormation Stack
•包含 S3 Bucket, Lambda, API Gateway, (Route53)
•Script 上傳題目說明與 Lambda-source
期待
誠徵
•開發者
•lambda-quiz 計劃
•104
•奴工 講者、義工
•AWSUGTW
QUESTIONS
THANKS

Weitere ähnliche Inhalte

Was ist angesagt?

AWS reInvent 2018 Recap - Solutions Updates part 1
AWS reInvent 2018 Recap - Solutions Updates part 1AWS reInvent 2018 Recap - Solutions Updates part 1
AWS reInvent 2018 Recap - Solutions Updates part 1
Amazon Web Services
 

Was ist angesagt? (20)

AwSome day 分享
AwSome day 分享AwSome day 分享
AwSome day 分享
 
Internet Cloud Operations - ChinaNetcloud & AWS Event Beijing
Internet Cloud Operations - ChinaNetcloud & AWS Event BeijingInternet Cloud Operations - ChinaNetcloud & AWS Event Beijing
Internet Cloud Operations - ChinaNetcloud & AWS Event Beijing
 
20210315-Amazon-EC2-with-LAMP
20210315-Amazon-EC2-with-LAMP20210315-Amazon-EC2-with-LAMP
20210315-Amazon-EC2-with-LAMP
 
如何規劃與執行大型資料中心遷移和案例分享
如何規劃與執行大型資料中心遷移和案例分享如何規劃與執行大型資料中心遷移和案例分享
如何規劃與執行大型資料中心遷移和案例分享
 
Customer Sharing: Hiiir
Customer Sharing: HiiirCustomer Sharing: Hiiir
Customer Sharing: Hiiir
 
AWS re:Invent Recap 2016 Taiwan part 1
AWS re:Invent Recap 2016 Taiwan part 1AWS re:Invent Recap 2016 Taiwan part 1
AWS re:Invent Recap 2016 Taiwan part 1
 
AWS_Educate_Team_SCU_Volunteer_Training_0923
AWS_Educate_Team_SCU_Volunteer_Training_0923AWS_Educate_Team_SCU_Volunteer_Training_0923
AWS_Educate_Team_SCU_Volunteer_Training_0923
 
AWS reInvent 2018 Recap - Solutions Updates part 1
AWS reInvent 2018 Recap - Solutions Updates part 1AWS reInvent 2018 Recap - Solutions Updates part 1
AWS reInvent 2018 Recap - Solutions Updates part 1
 
Gops2016 云端基于Docker的微服务与持续交付实践
Gops2016 云端基于Docker的微服务与持续交付实践Gops2016 云端基于Docker的微服务与持续交付实践
Gops2016 云端基于Docker的微服务与持续交付实践
 
如何利用 Amazon EMR 及Athena 打造高成本效益的大數據環境
如何利用 Amazon EMR 及Athena 打造高成本效益的大數據環境如何利用 Amazon EMR 及Athena 打造高成本效益的大數據環境
如何利用 Amazon EMR 及Athena 打造高成本效益的大數據環境
 
深入探討企業數位轉型案例
深入探討企業數位轉型案例深入探討企業數位轉型案例
深入探討企業數位轉型案例
 
美团点评技术沙龙06 - 滴滴移动端测试解耦工具实践
美团点评技术沙龙06 - 滴滴移动端测试解耦工具实践美团点评技术沙龙06 - 滴滴移动端测试解耦工具实践
美团点评技术沙龙06 - 滴滴移动端测试解耦工具实践
 
如何募好資金
如何募好資金如何募好資金
如何募好資金
 
2016 AWS Summit TPE - Hiiir 如何透過 AWS IAM 做好雲端權限控管
2016 AWS Summit TPE - Hiiir 如何透過 AWS IAM 做好雲端權限控管2016 AWS Summit TPE - Hiiir 如何透過 AWS IAM 做好雲端權限控管
2016 AWS Summit TPE - Hiiir 如何透過 AWS IAM 做好雲端權限控管
 
Getting Started with Serverless Architecture - 深入淺出無伺服器架構應用程式
Getting Started with Serverless Architecture - 深入淺出無伺服器架構應用程式Getting Started with Serverless Architecture - 深入淺出無伺服器架構應用程式
Getting Started with Serverless Architecture - 深入淺出無伺服器架構應用程式
 
使用Amazon Machine Learning 創建智能應用程式
使用Amazon Machine Learning 創建智能應用程式使用Amazon Machine Learning 創建智能應用程式
使用Amazon Machine Learning 創建智能應用程式
 
AWS lambda
AWS lambda AWS lambda
AWS lambda
 
Building IoT Backends
Building IoT BackendsBuilding IoT Backends
Building IoT Backends
 
Global Azure Bootcamp 2015 at Study4
Global Azure Bootcamp 2015 at Study4Global Azure Bootcamp 2015 at Study4
Global Azure Bootcamp 2015 at Study4
 
AWS Summit OaaS Talk by ChinaNetCloud
AWS Summit OaaS Talk by ChinaNetCloudAWS Summit OaaS Talk by ChinaNetCloud
AWS Summit OaaS Talk by ChinaNetCloud
 

Andere mochten auch

Andere mochten auch (9)

那些 re:Invent 不怎麼技術的事
那些 re:Invent 不怎麼技術的事那些 re:Invent 不怎麼技術的事
那些 re:Invent 不怎麼技術的事
 
Cost Optimization Best Practices from Trend Micro
Cost Optimization Best Practices from Trend Micro Cost Optimization Best Practices from Trend Micro
Cost Optimization Best Practices from Trend Micro
 
104 meets cloud
104 meets cloud104 meets cloud
104 meets cloud
 
Intro to Serverless
Intro to ServerlessIntro to Serverless
Intro to Serverless
 
不談 IAM
不談 IAM不談 IAM
不談 IAM
 
AWS Solutions Architect 準備心得
AWS Solutions Architect 準備心得AWS Solutions Architect 準備心得
AWS Solutions Architect 準備心得
 
以AWS Lambda與Amazon API Gateway打造無伺服器後端
以AWS Lambda與Amazon API Gateway打造無伺服器後端以AWS Lambda與Amazon API Gateway打造無伺服器後端
以AWS Lambda與Amazon API Gateway打造無伺服器後端
 
無伺服器架構和Containers on AWS入門
無伺服器架構和Containers on AWS入門 無伺服器架構和Containers on AWS入門
無伺服器架構和Containers on AWS入門
 
AWS電商和零售業解決方案介紹
AWS電商和零售業解決方案介紹AWS電商和零售業解決方案介紹
AWS電商和零售業解決方案介紹
 

Ähnlich wie Interview Quiz w/o Server

改善Programmer生活的sql技能
改善Programmer生活的sql技能改善Programmer生活的sql技能
改善Programmer生活的sql技能
Rack Lin
 
新浪云计算公开课第一期:Let’s run @ sae(丛磊)
新浪云计算公开课第一期:Let’s run @ sae(丛磊)新浪云计算公开课第一期:Let’s run @ sae(丛磊)
新浪云计算公开课第一期:Let’s run @ sae(丛磊)
锐 张
 
排行榜V3项目总结
排行榜V3项目总结排行榜V3项目总结
排行榜V3项目总结
Frank Xu
 
Build desktop app_by_xulrunner
Build desktop app_by_xulrunnerBuild desktop app_by_xulrunner
Build desktop app_by_xulrunner
Rack Lin
 
網路技術心得分享
網路技術心得分享網路技術心得分享
網路技術心得分享
Mux Baxer
 

Ähnlich wie Interview Quiz w/o Server (20)

改善Programmer生活的sql技能
改善Programmer生活的sql技能改善Programmer生活的sql技能
改善Programmer生活的sql技能
 
Retrive&amp;rank
Retrive&amp;rankRetrive&amp;rank
Retrive&amp;rank
 
架構這件事 - Azure 可以幫助什麼 - 如何選擇使用什麼 Azure 服務
架構這件事 - Azure 可以幫助什麼 - 如何選擇使用什麼 Azure 服務架構這件事 - Azure 可以幫助什麼 - 如何選擇使用什麼 Azure 服務
架構這件事 - Azure 可以幫助什麼 - 如何選擇使用什麼 Azure 服務
 
新浪云计算公开课第一期:Let’s run @ sae(丛磊)
新浪云计算公开课第一期:Let’s run @ sae(丛磊)新浪云计算公开课第一期:Let’s run @ sae(丛磊)
新浪云计算公开课第一期:Let’s run @ sae(丛磊)
 
01 DevOps and Azure DevOps overview
01 DevOps and Azure DevOps overview01 DevOps and Azure DevOps overview
01 DevOps and Azure DevOps overview
 
CKmates - AWS 雲端運算 基礎服務介紹
CKmates - AWS 雲端運算 基礎服務介紹CKmates - AWS 雲端運算 基礎服務介紹
CKmates - AWS 雲端運算 基礎服務介紹
 
2015 年逢甲大學資訊系:ASP.NET MVC 4 教育訓練2
2015 年逢甲大學資訊系:ASP.NET MVC 4 教育訓練22015 年逢甲大學資訊系:ASP.NET MVC 4 教育訓練2
2015 年逢甲大學資訊系:ASP.NET MVC 4 教育訓練2
 
05.wls调优
05.wls调优05.wls调优
05.wls调优
 
AWS入門
AWS入門AWS入門
AWS入門
 
不會 Javascript 沒關係,用 Blazor 來解決前端需求 - 成為 Full Stack .NET 開發者吧 - .NET Conf 2020...
不會 Javascript 沒關係,用 Blazor 來解決前端需求 - 成為 Full Stack .NET 開發者吧 - .NET Conf 2020...不會 Javascript 沒關係,用 Blazor 來解決前端需求 - 成為 Full Stack .NET 開發者吧 - .NET Conf 2020...
不會 Javascript 沒關係,用 Blazor 來解決前端需求 - 成為 Full Stack .NET 開發者吧 - .NET Conf 2020...
 
Full stack-development with node js
Full stack-development with node jsFull stack-development with node js
Full stack-development with node js
 
排行榜V3项目总结
排行榜V3项目总结排行榜V3项目总结
排行榜V3项目总结
 
AWS Career Exploration Day
AWS Career Exploration DayAWS Career Exploration Day
AWS Career Exploration Day
 
雪球服务化实践历程.Print
雪球服务化实践历程.Print雪球服务化实践历程.Print
雪球服务化实践历程.Print
 
RSpec & TDD Tutorial
RSpec & TDD TutorialRSpec & TDD Tutorial
RSpec & TDD Tutorial
 
Build desktop app_by_xulrunner
Build desktop app_by_xulrunnerBuild desktop app_by_xulrunner
Build desktop app_by_xulrunner
 
淘宝双11双12案例分享
淘宝双11双12案例分享淘宝双11双12案例分享
淘宝双11双12案例分享
 
AWS re:Invent 2018 Recap
AWS re:Invent 2018 RecapAWS re:Invent 2018 Recap
AWS re:Invent 2018 Recap
 
合久必分,分久必合
合久必分,分久必合合久必分,分久必合
合久必分,分久必合
 
網路技術心得分享
網路技術心得分享網路技術心得分享
網路技術心得分享
 

Mehr von Cliff Chao-kuan Lu

Mehr von Cliff Chao-kuan Lu (7)

EC2 Spot in 104
EC2 Spot in 104EC2 Spot in 104
EC2 Spot in 104
 
Lessons Learnt from Guanyu
Lessons Learnt from GuanyuLessons Learnt from Guanyu
Lessons Learnt from Guanyu
 
Serverless Patterns
Serverless PatternsServerless Patterns
Serverless Patterns
 
Greetings from AWS User Group Taiwan
Greetings from AWS User Group TaiwanGreetings from AWS User Group Taiwan
Greetings from AWS User Group Taiwan
 
Networking in the cloud
Networking in the cloudNetworking in the cloud
Networking in the cloud
 
Health, Platform, In The Cloud
Health, Platform, In The CloudHealth, Platform, In The Cloud
Health, Platform, In The Cloud
 
無障礙網頁
無障礙網頁無障礙網頁
無障礙網頁
 

Interview Quiz w/o Server

Hinweis der Redaktion

  1. ## 第一章出現過得投影片