用于 SQS 请求签名的最简单的 Ruby 代码?
我在 Tropo(云电话)Ruby 脚本的酷炫但非常受限的环境中工作。整个应用程序是一个 JRuby 文件。没有宝石,没有要求。
我需要将简单的消息发送到单个 SQS 队列。我不需要执行任何其他 SQS 操作。在我开始从现有 gem 中提取代码来执行此操作之前,我想看看是否有人有用于发送 SQS 消息的独立代码或执行 SQS 所需的 HTTP 请求签名的代码。
I am working in the cool but very constrained environment of Tropo (cloud telephony) Ruby scripting. The entire app is a single JRuby file. No gems, no requires.
I need to send simple messages to a single SQS queue. I don't need to do any other SQS operations. Before I start pulling code out of existing gems to do this, I wanted to see if anyone has standalone code for sending SQS messages or code that does the HTTP request signing that SQS requires.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们最终使用以下超级简单的代码将消息发布到已存在的 SQS 队列。不需要宝石。
super_simple_sqs.rb
We ended up going with the following super-simple code to post a message to an SQS queue that already exists. No gems required.
super_simple_sqs.rb