阅读背景:

适用于3,000 + /秒传出HTTP请求的AWS实例类型?

来源:互联网 

I'm currently scaling up an application on AWS, we send thousands of outgoing HTTP requests per second to 3rd party API's and services. Are there any EC2 instances optimized for this type of work?

我目前正在扩展AWS上的应用程序,我们每秒向第三方API和服务发送数千个传出的HTTP请求。是否有针对此类工作优化的EC2实例?

2 个解决方案

#1


When work in aws, you need jump out of the idea as traditional way, because you needn't worry about if the instance is not suitable, waste money, etc.

在aws中工作时,你需要以传统的方式跳出这个想法,因为你不必担心实例不合适,浪费金钱等。

Estimate how big traffic go out and you can start with a reasonable instance type, for example, t2.medium.

估计流量大小,您可以从合理的实例类型开始,例如t2.medium。

After running your application and keep monitoring the performance, if it is not good enough, just stop the instance, change the instance type, and start it again.

运行应用程序并继续监视性能后,如果不够好,只需停止实例,更改实例类型,然后再次启动它。

Here is the official document for Resizing Your Instance

以下是调整实例大小的官方文档

That's all you need do, don't worry it from beginning.

这就是你所需要做的一切,从一开始就不要担心。

#2


As usual on EC2 instance selection, it depends. Larger instances tend to have optimized network performance (see the "instance type matrix"), but you many not need the CPU/disk/memory of larger instances.

与EC2实例选择一样,它取决于。较大的实例往往具有优化的网络性能(请参阅“实例类型矩阵”),但您可能不需要更大实例的CPU /磁盘/内存。

Your best bet is to test your application, or a proxy for your application.

您最好的选择是测试您的应用程序或您的应用程序的代理。


分享到: