Network latency inside AWS region

0

Hello,

I would like to ask for an advice about network latency inside an AWS region.

I have an EC2 instance that communicates with a Server that is hosted in the same AWS region. The Server is not owned by me, so I have only basic public information about it like domain name and IP address.

My goal is to achieve the lowest possible network latency between my EC2 instance and the Server. Simply placing the EC2 instance in the same region results in a latency of GET request around 20ms, but I believe this can be still improved somehow.

Are you able to give some insight please?

질문됨 2년 전600회 조회
1개 답변
0
수락된 답변

If we were only looking at network latency, 20 milliseconds is somewhere between 2,000 and 6,000 kilometres - that's a long way. But there are many other causes for latency. When you do a GET request there are (probably) load balancers, database requests, WAF rules, remote host CPU load - all sorts of things that are happening and many of them are going to be completely out of your control.

If you're sure that the remote server is in the same region I'd recommend trying different availability zones - it may make a difference (it also may not).

As a motherhood statement: Building an application around the lowest possible latency that is available means that it will fail or behave in unexpected ways when (not if!) the latency increases in the future due to some issue that (as above) is out of your control. Best to plan for higher latency than you're seeing. I understand that there are plenty of applications that depend on very low latency so finding the right combination of things to make that happen is important but there are laws of physics that can't be beaten.

profile pictureAWS
전문가
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠