Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding two features, retain S3 objects after messages deletion and custom S3 object key generation. #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

glidester
Copy link

Adding ExtendedClientConfiguration parameter 'retainS3Messages' that when set to 'true' prevents the companion S3 object of a message being removed from S3 on the sqs 'deleteMessage()' action. The S3 bucket will then retain a log of all messages (if the 'alwaysThroughS3' is also set to true) after they have been processed and deleted.

Also added the S3KeyGenerator interface and a default implementation to the ExtendedClientConfiguration class. The S3KeyGenerator interface allows custom implementations to add structure to the S3 bucket objects create (such as partitioning on date created).

…when set to 'true' prevents the companion S3 object of a message being removed from S3 on the sqs 'deleteMessage()' action. The S3 bucket will then retain a log of all messages (if the 'alwaysThroughS3' is also set to true) after they have been processed and deleted.

Also added the S3KeyGenerator interface and a default implementation to the ExtendedClientConfiguration class. The S3KeyGenerator interface allows custom implementations to add structure to the S3 bucket objects create (such as partionting on date created).
@gazoakley
Copy link

Any chance of getting this merged in? I was about to implement similar functionality myself

@glidester
Copy link
Author

bump :)

@greyfairer
Copy link

bump again 👍 👍

@greyfairer
Copy link

We want to use this for SNS, too, so we need SQS subscribers to leave the message alone, until all subscribers have had the chance to read the message.

@svoeller99
Copy link

also looking for this functionality

@ifnoone
Copy link

ifnoone commented Dec 16, 2019

Looking for such functionality also...

* the queue.
*
* @param retainS3Messages
* Whether or not messages are deleted in S3 when they are delete
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method name is retain but the description is delete :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, that is because this method controls if the S3 objects are either 'retained' or 'deleted', so yes the description uses the word 'deleted'. Not sure what the issue is tbh? 🤔

@mdeshmu
Copy link

mdeshmu commented Aug 2, 2022

+1

@Sebruck
Copy link

Sebruck commented Jan 23, 2024

bump! Is there anything which blocks getting this very needed feature merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants