SQS returns 'Aws::SQS::Errors::BatchEntryIdsNotDistinct' exception when trying to send high amount of messages. i think generate_id should be more unique.
when i replace 'generate_id' with something unique, it works fine.
def generate_id
charset = %w{ 2 3 4 6 7 9 A C D E F G H J K M N P Q R T V W X Y Z}
(0...10).map{ charset.to_a[rand(charset.size)] }.join
end
SQS returns 'Aws::SQS::Errors::BatchEntryIdsNotDistinct' exception when trying to send high amount of messages. i think generate_id should be more unique.
when i replace 'generate_id' with something unique, it works fine.
def generate_idcharset = %w{ 2 3 4 6 7 9 A C D E F G H J K M N P Q R T V W X Y Z}(0...10).map{ charset.to_a[rand(charset.size)] }.joinend