Skip to content

Instantly share code, notes, and snippets.

@kfirshay
Last active April 9, 2016 23:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kfirshay/a6900e2f5bd1c70255c3 to your computer and use it in GitHub Desktop.
Save kfirshay/a6900e2f5bd1c70255c3 to your computer and use it in GitHub Desktop.
SQS None Blocking Send
send_sqs_message = lambda { |payload, queue|
queue.send_message("#{payload}:#{Time.now.to_s}")
}
Thread.fork { send_sqs_message.call("our payload", queue) }
@kfirshay
Copy link
Author

kfirshay commented Sep 9, 2015

There are some issues with this but you get the general idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment