내용으로 건너뛰기

Location Services - High Latency issues

0

I'm using the AWS SDK for PHP v3.

I'm calling searchPlaceIndexForText

I can call this service without a problem and get my GeoIPs, and I've used both ESDI and HERE indexes successfully.

My problem: When I run my script from the command line locally (on my own computer), the CLI responds in an average of ~500ms, which is very acceptable.

However, when I deploy the same code to an EC2 and run the same code, the latency is at a minimum of 1.5 seconds (1500ms) up to sometimes 5000ms (5 seconds). The address and everything else are the same. I've also tried setting the BiasPosition, and the results are the same.

Other info: my EC2 is located in us-west-2 region, and I'm physically located in AZ

Code snippet:

    $locationClient = new Aws\LocationService\LocationServiceClient([
        'version' => 'latest',
        'region'  => 'us-west-2',
    ]);
    $result = $locationClient->searchPlaceIndexForText(
        [
            'FilterCategories' => ['AddressType'],
            'IndexName' => 'MyHereIndex', // REQUIRED
            'Text' => '587 S Watson Rd, Buckeye, AZ 85326', // REQUIRED
        ]);
  • What is the latency if you login to the EC2 instance and run the script from the command line on the EC2 instance? i.e. an apples-to-apples comparison to running from your own computer as opposed to deploying the PHP app.

질문됨 2년 전270회 조회
1개 답변
1

Can you raise a support request so we can track down the request using the request ID and verify if it's on the service side or not? Thanks!

AWS
전문가
답변함 2년 전
AWS
전문가
검토됨 2년 전
  • Case ID 171753016300903 I've included the returned @metadata from each call... one on the EC2 instance, and one on my local machine.

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

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

관련 콘텐츠