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
Make S3 configuration for large messages optional #239
Comments
@VladimirMakaev the feature is already optional. The S3 bucket configuration is optional, see: What type of issue are you facing? |
If I don't specify S3 configuration I'm getting
To get rid of the error message I have to do:
Which I think is ambiguous. And in the case a large message is attempted to be sent I'd like to see an exception telling me that "I should configure S3 if I want to send large messages" |
Right now the S3Client is created early even though we might not need it so we could definitely think about creating it only when needed at a later point in time. But to better understand the issue you are seeing I would like to know where you configure the region for the SQS client? Do you use Environment variables? Or do you provide a custom SQS client factory in code? If you provide a custom factory in code could you also override the custom S3 factory to assign the same credentials and remove the S3 bucket configuration above and see if it fixes it? If you are using Environment variables can you make sure you have AWS_REGION set because then it should just work? |
I do provide a custom factory. To provide a custom S3 client factory I need to do |
Yeah totally understandable. That is inconvenient and something we can fix as part of a next maintenance release. For now a "workaround" for you so that you can still get the exception when you send large messages and not need to provide the bucket names you can set the |
Due to this defect, we wasted couple of days. It is also, not helpful when exception does not exactly point out that it is NServicebus issue or its AWS SDK issue. Atleast, exception should made clear that what we aer missing in configuration. |
@lalitkale yes, we agree. The exceptions are not very helpful. I believe this is what #187 is raising as well. I marked that as |
@boblangley Any ETA on next release? |
@lalitkale thanks for your patience. We are working on a maintenance release that should roughly go out at the end of next week or beginning of the week after next week. I'll keep you posted here |
We've merged a PR that makes the S3 configuration optional. Those changes will go out with 4.3.0 |
In our setup we don't plan to have large messages that wouldn't fit in the queue. Therefore we don't want to create redundant infrastructure (S3 buckets) which serves no purpose.
Can you make this feature optional and throw an exception in case we try to insert a large message into SQS?
The text was updated successfully, but these errors were encountered: