java - Delete SQS messages only without deleting the underlying S3 object -


i'm using amazon sqs java extended client library store sqs messages in s3. when delete messages using amazon sqs web interface, messages deleted sqs queue , not s3. however, when use aws java sdk sqs client / extended library client, message gets deleted both sqs , s3. i'm looking retain actual message in s3, rid of sqs messages. there way can achieve programmatically using aws java sdk sqs client or extended client?

you create (and maintain) custom version of extended client library, not great solution in long-run.

another alternative use s3 event notifications can automatically create sqs message each file uploaded s3 bucket. producer need change use s3 api upload files (rather extended client library queue message). consumer continue use sqs receive message, use normal rather extended library. s3 bucket configured send event notifications.

perhaps alternative try mimic did manually through sqs console. wouldn't surprised if effect looking using extended client library receive sqs message (and message body stored in s3). then, use normal client library delete message. since normal client library unaware of s3 component of message, should not delete s3 file.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -