AWS SNS/SQS Clone in Go

xuanbao · · 947 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I&#39;d like to create a clone of SNS/SQS in go for developpers to use but I need to find documentation (WSDL/WADL/etc,...) on what the http endpoints are and what is required / optional in those requests. Can anyone point me in the right direction? Thanks to all in advance.</p> <hr/>**评论:**<br/><br/>Aoreias: <pre><p>Just curious, but why are you trying to recreate the services?</p> <p><a href="http://queue.amazonaws.com/doc/2012-11-05/QueueService.wsdl" rel="nofollow">SQS WSDL</a>. <a href="http://sns.us-east-1.amazonaws.com/doc/2010-03-31/SimpleNotificationService.wsdl" rel="nofollow">SNS WSDL</a>. Keep in mind these WSDLs may be out of date, they&#39;re several years old. You&#39;ll also want to refer to the services developer guides and the AWS General Reference.</p> <p><a href="http://docs.aws.amazon.com/general/latest/gr/Welcome.html" rel="nofollow">General Reference</a></p> <p><a href="http://docs.aws.amazon.com/sns/latest/dg/welcome.html" rel="nofollow">SNS Developer Guide</a></p> <p><a href="http://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html" rel="nofollow">SQS Developer Guide</a></p></pre>pafortin: <pre><p>I want to be able to test SNS/SQS messaging without having to use AWS itself. I tried YOPA but it apparently is not compatible with Python/BOTO as I keep getting 400 errors when I call any SQS service s using the celery event processor. So I thought I would re-write a developer setup in golang as a learning exercise as well.</p></pre>ghaering: <pre><p>I&#39;ve had luck with using ElasticMQ from Go. (<a href="https://github.com/adamw/elasticmq" rel="nofollow">https://github.com/adamw/elasticmq</a>) This page even describes how to use it from Python&#39;s boto.</p></pre>pafortin: <pre><p>I need to SNS capability but yes for SQS only ElasticMq is great!! I have a first cut at my version in GO - <a href="https://github.com/p4tin/GoAws" rel="nofollow">https://github.com/p4tin/GoAws</a>. If you are interested, it can list queues, create/delete queues, send/receive/delete messages (mostly happy path - but it’s a start)</p></pre>regency_style: <pre><p>All of the AWS SDKs are described in a machine-readable form of Amazon&#39;s own design. See <a href="https://github.com/aws/aws-sdk-go/tree/master/models/apis/sqs/2012-11-05" rel="nofollow">SQS messages</a>, for example. You&#39;ll find machine-readable descriptions of the payloads, example messages, and complete documentation. They are not WSDL, WADL, conformant REST, or anything that will let you just &#34;drop in&#34; a client or server library. Instead, you&#39;ll probably want to take an existing AWS SDK and adapt it to your needs.</p> <p>The <a href="http://docs.aws.amazon.com/general/latest/gr/rande.html" rel="nofollow">AWS Regions &amp; Endpoints</a> doc has the other information you want. </p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

947 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传