Last active
April 9, 2016 23:28
-
-
Save kfirshay/a6900e2f5bd1c70255c3 to your computer and use it in GitHub Desktop.
SQS None Blocking Send
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
send_sqs_message = lambda { |payload, queue| | |
queue.send_message("#{payload}:#{Time.now.to_s}") | |
} | |
Thread.fork { send_sqs_message.call("our payload", queue) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are some issues with this but you get the general idea.