A company has a web application that makes requests to a backend API service. The API service is behind an Elastic Load Balancer running on Amazon EC2 instances.
Most backend API service endpoint calls finish very quickly, but one endpoint that makes calls to create objects in an external service takes a long time to complete. These long-running calls are causing client timeouts and increasing overall system latency.
What should be done to minimize the system throughput impact of the slow-running endpoint?
A. Change the EC2 instance size to increase memory and compute capacity.
B. Use Amazon SQS to offload the long-running requests for asynchronous processing by seprate workers.
C. Increase the load balancer idle timeount to allow the long-running requests to complete.
D. Use Amazon ElastiCache for Redis to cache responses from the external service.

Leave a Reply

Your email address will not be published. Required fields are marked *