...

/

REST API with SQS Integration

REST API with SQS Integration

Implement API Gateway integration with SQS.

API to send message

Amazon Simple Queue Service (SQS) is a popular messaging service from AWS. Integration using a queue service is ideal for fire-and-forget APIs where resilient eventual consistency is more important than instant response.

SQS integrates well with the API Gateway. So, we can send messages on the SQS directly from the API gateway. We can have another process elsewhere that reads and consumes these messages. The sender API can send without worrying about the consumer. That’s the advantage of using SQS-based integration.

Implementation

The API for SQS is based ...