[SAA + SAP] 11. Solution Architecture Comparisons
时间:2021-07-28
本文章向大家介绍[SAA + SAP] 11. Solution Architecture Comparisons,主要包括[SAA + SAP] 11. Solution Architecture Comparisons使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。
EC2 with Elastic IP
- User talks to a public EC2 instances access by EIP
- We want to have a failover instance
- ElP address points to failover instances
Summary
- Quick failover
- The client should NOT see the change happen
- Helpful if the client needs to resolve by static Public IP address
- Does not scale
- Cheap
Stateless web app - scaling horizontally
- There are three EC2 instances, no EIP
- We have Route 53 to create A record, users are routed to different EC2 instances
- There is TTL 1 hour for Route 53
- If one instance Fail, then users are routed to that instances cannot access web server anymore
Summary
- DNS-based load balancing
- Ability to use multiple instances
- Route53 TTL implies client may get outdated information
- Client must have logic to deal with hostname resolution failures
- Adding an instance may not receive full traffic right away due to DNS TTL
ALB + ASG
- Using Route53 Alias Record with TTL 1 hour
- ALB + Health checks + Multi AZs
- EC2 instances in ASG
Summary
- Scale well, classic architecture
- New instances are in service right away.
- Users are not sent to instances that are out-of-service
- Time to scale is slow (EC2 instance startup + bootstrap) - AMI can help
- ALB is elastic but cannot handle sudden, huge peak of demand (pre-warm)
- Could lost a few requests if instances are overloaded
- CloudWatch used for scaling
- Target utilization should be between 40% and 70%
- Cross-Zone balancing for even traffic distribution
ALB + ECS on EC2 (backed by ASG)
- Same properties as ALB + ASG
- Application is run on Docker
- ASG + ECS allows to have dynamic prot mappings
- Tough to orchestrate ECS service auto-scaling + ASG auto-scaling
ALB + ECS on Fargate
- Solution the scaling problem for ALB + ECS.
Summary
- Application is run on Docker
- Servcie Auto Scaling is easy
- Time to be in-service is quick (no need to launch an EC2 instances in advance)
- Still limited by the ALB in case of sudden peaks
- "serverless" application tier
- "managed" load balancer
ALB + Lambda
- Limited to Lambda's runtimes
- Seamless scaling thanks to the Lambda
- Simple way to expose Lambda functions as HTTP/S without all the features from API Gateway
- Can combine with WAF
- Good for hybrid microservices
- Example: use ECS for some requests, use Lambda for others
API Gateway + Lambda
- Pay per request, seamless scaling, fully serverless
- Soft limits: 10000/s API Gateway, 1000 concurrent Lambda
- API Gateway features: authentication, rate limiting, caching, etc...
- Lambda Cold Start time may increase latency for some requests
- Fully integrated with X-Ray
API Gateway + AWS Service (as a proxy)
- Lower latency, cheaper
- Not using Lambda concurrent capacity, no custom code
- Expose AWS APIs securely through API Gateway
- SQS, SNS, Step Functions...
- Remember API Gateway has a payload limit of 10 MB (can be a problem for S3 proxy)
APi Gaeway + HTTP backend (ex: ALB)
- Use API Gateway features on top of custom HTTP Backend (authentication, rate control, API keys, caching...)
- Can connect to
- On-premise service
- Application Load Balancer
- 3rd party HTTP service
原文地址:https://www.cnblogs.com/Answer1215/p/15071272.html
- HDUOJ--1159Common Subsequence
- HDUOJ----1170Milk
- HDUOJ----1263水果
- HDUOJ----(2064)汉诺塔III
- HDUOJ-----2065"红色病毒"问题
- HDUOJ -----1686
- go语言读取csv文件并输出的方法
- HDUOJ----3342Legal or Not
- go语言基本类型
- HDUOJ----2647Reward
- hduoj------确定比赛名次
- HDUOJ----1165Eddy's research II
- HDUOJ-----1556Color the ball
- HDUOJ-----2175取(m堆)石子游戏
- JavaScript 教程
- JavaScript 编辑工具
- JavaScript 与HTML
- JavaScript 与Java
- JavaScript 数据结构
- JavaScript 基本数据类型
- JavaScript 特殊数据类型
- JavaScript 运算符
- JavaScript typeof 运算符
- JavaScript 表达式
- JavaScript 类型转换
- JavaScript 基本语法
- JavaScript 注释
- Javascript 基本处理流程
- Javascript 选择结构
- Javascript if 语句
- Javascript if 语句的嵌套
- Javascript switch 语句
- Javascript 循环结构
- Javascript 循环结构实例
- Javascript 跳转语句
- Javascript 控制语句总结
- Javascript 函数介绍
- Javascript 函数的定义
- Javascript 函数调用
- Javascript 几种特殊的函数
- JavaScript 内置函数简介
- Javascript eval() 函数
- Javascript isFinite() 函数
- Javascript isNaN() 函数
- parseInt() 与 parseFloat()
- escape() 与 unescape()
- Javascript 字符串介绍
- Javascript length属性
- javascript 字符串函数
- Javascript 日期对象简介
- Javascript 日期对象用途
- Date 对象属性和方法
- Javascript 数组是什么
- Javascript 创建数组
- Javascript 数组赋值与取值
- Javascript 数组属性和方法
- 10大高性能开发宝石,我要消灭一半程序员!
- 面试官:你说你会RabbitMQ,那聊聊它的交换机(Exchange)吧
- Kubeadm 1.9 HA 高可用集群本地离线镜像部署【已验证】
- kubernetes(k8s)集群安装calico
- kubernetes(k8s) Prometheus+grafana监控告警安装部署
- 基于OpencvCV的情绪检测
- 设计模式 之 抽象工厂模式
- Angular应用里HTTP请求的错误处理
- 使用npm安装TypeScript
- TypeScript的interface关键字
- TypeScript的class关键字
- TypeScript里一些特殊的类型
- TypeScript的类型断言,有点像ABAP的强制类型转换
- 什么是TypeScript的字符串索引签名
- [初探] proxy 的优势与使用场景