• <i id='g4RHO'><tr id='g4RHO'><dt id='g4RHO'><q id='g4RHO'><span id='g4RHO'><b id='g4RHO'><form id='g4RHO'><ins id='g4RHO'></ins><ul id='g4RHO'></ul><sub id='g4RHO'></sub></form><legend id='g4RHO'></legend><bdo id='g4RHO'><pre id='g4RHO'><center id='g4RHO'></center></pre></bdo></b><th id='g4RHO'></th></span></q></dt></tr></i><div id='g4RHO'><tfoot id='g4RHO'></tfoot><dl id='g4RHO'><fieldset id='g4RHO'></fieldset></dl></div>

      <small id='g4RHO'></small><noframes id='g4RHO'>

      • <bdo id='g4RHO'></bdo><ul id='g4RHO'></ul>
      <legend id='g4RHO'><style id='g4RHO'><dir id='g4RHO'><q id='g4RHO'></q></dir></style></legend>
      <tfoot id='g4RHO'></tfoot>

        python中一个好的持久同步队列

        A good persistent synchronous queue in python(python中一个好的持久同步队列)
          <tbody id='WzQJj'></tbody>
        <tfoot id='WzQJj'></tfoot>

          1. <small id='WzQJj'></small><noframes id='WzQJj'>

              <bdo id='WzQJj'></bdo><ul id='WzQJj'></ul>

              <legend id='WzQJj'><style id='WzQJj'><dir id='WzQJj'><q id='WzQJj'></q></dir></style></legend>

              1. <i id='WzQJj'><tr id='WzQJj'><dt id='WzQJj'><q id='WzQJj'><span id='WzQJj'><b id='WzQJj'><form id='WzQJj'><ins id='WzQJj'></ins><ul id='WzQJj'></ul><sub id='WzQJj'></sub></form><legend id='WzQJj'></legend><bdo id='WzQJj'><pre id='WzQJj'><center id='WzQJj'></center></pre></bdo></b><th id='WzQJj'></th></span></q></dt></tr></i><div id='WzQJj'><tfoot id='WzQJj'></tfoot><dl id='WzQJj'><fieldset id='WzQJj'></fieldset></dl></div>
                  本文介绍了python中一个好的持久同步队列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我不会立即关心 fifo 或 filo 选项,但将来可能会很好..

                  I don't immediately care about fifo or filo options, but it might be nice in the future..

                  我正在寻找一种快速而简单的方法,可以在磁盘上存储(最多一个数据或数千万个条目),可以由多个进程获取和放置.这些条目只是简单的 40 字节字符串,而不是 python 对象.并不真正需要 shelve 的所有功能.

                  What I'm looking for a is a nice fast simple way to store (at most a gig of data or tens of millions of entries) on disk that can be get and put by multiple processes. The entries are just simple 40 byte strings, not python objects. Don't really need all the functionality of shelve.

                  我看过这个 http://code.activestate.com/lists/python-list/310105/看起来很简单.需要升级到新的Queue版本.

                  I've seen this http://code.activestate.com/lists/python-list/310105/ It looks simple. It needs to be upgraded to the new Queue version.

                  想知道有没有更好的?我担心如果电源中断,整个腌制文件会损坏,而不仅仅是一条记录.

                  Wondering if there's something better? I'm concerned that in the event of a power interruption, the entire pickled file becomes corrupt instead of just one record.

                  推荐答案

                  尝试使用 Celery.它不是纯 Python,因为它使用 RabbitMQ 作为后端,但它是可靠的、持久的和分布式的,总而言之,从长远来看比使用文件或数据库要好得多.

                  Try using Celery. It's not pure python, as it uses RabbitMQ as a backend, but it's reliable, persistent and distributed, and, all in all, far better then using files or database in the long run.

                  这篇关于python中一个好的持久同步队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Adding config modes to Plotly.Py offline - modebar(将配置模式添加到 Plotly.Py 离线 - 模式栏)
                  Plotly: How to style a plotly figure so that it doesn#39;t display gaps for missing dates?(Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙?)
                  python save plotly plot to local file and insert into html(python将绘图保存到本地文件并插入到html中)
                  Plotly: What color cycle does plotly express follow?(情节:情节表达遵循什么颜色循环?)
                  How to save plotly express plot into a html or static image file?(如何将情节表达图保存到 html 或静态图像文件中?)
                  Plotly: How to make a line plot from a pandas dataframe with a long or wide format?(Plotly:如何使用长格式或宽格式的 pandas 数据框制作线图?)
                    <tbody id='wqlam'></tbody>
                  <tfoot id='wqlam'></tfoot>
                  <legend id='wqlam'><style id='wqlam'><dir id='wqlam'><q id='wqlam'></q></dir></style></legend>
                      <bdo id='wqlam'></bdo><ul id='wqlam'></ul>

                      <i id='wqlam'><tr id='wqlam'><dt id='wqlam'><q id='wqlam'><span id='wqlam'><b id='wqlam'><form id='wqlam'><ins id='wqlam'></ins><ul id='wqlam'></ul><sub id='wqlam'></sub></form><legend id='wqlam'></legend><bdo id='wqlam'><pre id='wqlam'><center id='wqlam'></center></pre></bdo></b><th id='wqlam'></th></span></q></dt></tr></i><div id='wqlam'><tfoot id='wqlam'></tfoot><dl id='wqlam'><fieldset id='wqlam'></fieldset></dl></div>

                        <small id='wqlam'></small><noframes id='wqlam'>