タグ

Queueに関するrandynetのブックマーク (2)

  • RQ: Simple job queues for Python

    RQ (Redis Queue) is a simple Python library for queueing jobs and processing them in the background with workers. It is backed by Redis and it is designed to have a low barrier to entry. It can be integrated in your web stack easily. RQ requires Redis >= 3.0.0. Getting started First, run a Redis server. You can use an existing one. To put jobs on queues, you don’t have to do anything special, just

    randynet
    randynet 2022/05/06
    RQ (Redis Queue) is a simple Python library for queueing jobs and processing them in the background with workers.
  • Python で分散タスクキュー (RQ 編) - Qiita

    RQ は、Redis をメッセージブローカー兼データストアとして利用することで分散タスクキューを実現する Python ライブラリ。 RQ: Simple job queues for Python Redis はリスト型の LPUSH と RPOP だけでタスクキューっぽい動きができて、RQ はそれを薄くラップしただけのシンプルな API という印象。 Celery + RabbitMQ の方が高機能だが、シンプルなタスクキューでいいという場合には RQ の方がとっつきやすい (と思っている)。 動かしてみる 手動でプロセスを複数立ち上げるのも面倒なので、 Docker Compose でサクッと試してみる。 実際に運用する際はちゃんと Redis サーバと Worker サーバ複数を用意してやるはず。

    Python で分散タスクキュー (RQ 編) - Qiita
    randynet
    randynet 2022/05/06
    RQ は、Redis をメッセージブローカー兼データストアとして利用することで分散タスクキューを実現する Python ライブラリ。
  • 1