<p>I became to be a fan of in-process databases like boltdb, and now I want the same for queue.</p>
<p>Something like RMQ but inside my app and with ability to save state between restarts. </p>
<p>Is there a lib for that? </p>
<hr/>**评论:**<br/><br/>F21Global: <pre><p>I believe you can do this with NATS. Check out this issue on Github on embedding NATS into your app: <a href="https://github.com/nats-io/gnatsd/issues/106" rel="nofollow">https://github.com/nats-io/gnatsd/issues/106</a></p></pre>Tacticus: <pre><p>Nats by itself is not really a queue or persistent streaming server may work a bit differently but yeah. the default with the super backpressure is not a queue</p></pre>sgmansfield: <pre><p>djherbis has a couple libraries that go together to possibly give you what you want:</p>
<p><a href="https://github.com/djherbis/buffer" rel="nofollow">https://github.com/djherbis/buffer</a>
<a href="https://github.com/djherbis/nio" rel="nofollow">https://github.com/djherbis/nio</a></p></pre>thechilts: <pre><p>I've been thinking of writing one like this, and funnily enough, using Bolt. I wrote <a href="https://www.npmjs.com/package/mongodb-queue" rel="nofollow">https://www.npmjs.com/package/mongodb-queue</a> for nodejs so I'm happy I know the mechanics of queues - I just need to get on with it (once time allows). :)</p></pre>beeker1121: <pre><p>I needed the exact same thing for my current project and one wasn't available, so I made goque. It supports multiple queue types and is backed by the Go port of LevelDB. GitHub for it here: <a href="https://github.com/beeker1121/goque" rel="nofollow">https://github.com/beeker1121/goque</a></p></pre>sybrandy: <pre><p>I'm not 100% sure, but perhaps ZeroMQ or Nanomsg could do this.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传