Please enable JavaScript.
Coggle requires JavaScript to display documents.
Architecting for the Cloud - Coggle Diagram
Architecting for the Cloud
Building & Deploying :black_flag:
Maximize Cloud Investments:尽量使应用程序贴合云的特性
Lift & Shift:原封不动的把应用程序移植到云
Differences Between Traditional and Cloud Computing Environments ☁️☁️
Cloud
managed services 托管
cost optimization 用多少花多少钱
Flexible,global,scalable 灵活多变
比如content delivery network (CDN)实现了global
various operating models
On-Premises
传统本地服务器
Design Principles
Scalability扩展性
Scaling Vertically:has more RAM, CPU, I/O 提高单机性能
Scaling Horizontally:增加机组数量
Stateless Applications
session
:服务针对某个用户历次交互中保留的数据 (这里不需要) :!!:
Stateless applications can
scale horizontally
because :!!: any of the available compute resources can service any request. 是实现横向扩展的前提
you can safely terminate those individual
resources 可以随意关闭
Stateless Components
database or external cache 用来存放session information
Object Storage (S3) or Network File Share (EFS)用来存放用户文件
Stateful Components
Session Affinity也叫Sticky Session,会话亲和:不需要额外储存资源,通过类似于cookie来存留信息
Distribute Load to Multiple Nodes
push model
ElasticLoadBalancing(ELB) 均匀发数据给ec2
Network Load Balancer operates at layer 4 网络负载均衡器
Application Load Balancer provides Layer 7 应用层负载均衡器
第二种方法也可以结合
AmazonRoute53
和
DNSroundrobin
实现负载均衡
pull model
you can implement a pull model for
asynchronous
,
event- driven workloads
异步消息队列
Distributed Processing 大任务分成小任务在不同的实例上运行
Disposable Resources Instead of Fixed Servers一次性实例代替固定实例,可以随意更新和销毁
Bootstrapping 在资源刚刚生成的时候,使用脚本给它一个初始状态,比如user data scripts
Golden Images金镜像:可以直接理解为Amazon Machine Image (AMI),packer制造的那个
Hybrid就是结合Golden Images和Bootstrapping
Infrastructure as Code (IaC)类似于terraform和packer这类工具
数据库部分之前课件都出现过。。。。