In my lambda function I send the receiptHandle as body data to a server. Then, this server must do the work and tell SQS to delete this message.
The problem is that the aws docs says:
...
If your function successfully processes the batch, Lambda deletes the messages from the queue. If your function is throttled, returns an error, or doesn't respond, the message becomes visible again.
Which means that if I delegate the SQS message deletion to another service and end the Lambda execution, the SQS message will be deleted by this Lambda exit, which I don't want to happen. The message's visibility timeout should remain the same also.
Is there a way to accomplish this?