並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 33 件 / 33件

新着順 人気順

job-queueの検索結果1 - 33 件 / 33件

  • Webアプリケーションにおける Job Queue システムの構成例と Worker を作る際に気をつけること - blog.nomadscafe.jp

    Webアプリケーション内で処理を直列に実行せずにJob Queueに回して非同期に実行することが多くなって来て久しいと思いますが、そのおすすめ構成と気をつけることについてつらつらと。 1) 既存のデータベースをキューとして使う構成例 1つ目はMySQLなどのデータベースをキューとして用いる例。既にアプリケーションで利用しているデータベースにキュー用のテーブルを作成して利用します。データベースを利用したキュー管理の仕組みとしてJonk、Qudo、TheSchwartzなどがPerlでは有名どころです。 依存するミドルウェアが増えないので最もシンプルな構成になると思います。 上記の図ではWorkerはアプリケーション内で実行することで冗長性を確保しますが、キューを格納するデータベースはSPOFになります。しかし、、データベースに障害があった場合キューだけでなくすべてのサービスが停止すると思われ

    • Scalable Job Queue System Built with Docker

      RubyKaigi 2016 http://rubykaigi.org/2016

        Scalable Job Queue System Built with Docker
      • GitHub - fireworq/fireworq: Fireworq is a lightweight, high-performance, language-independent job queue system.

        Fireworq is a lightweight, high-performance job queue system with the following abilities. Portability - It is available from ANY programming language which can talk HTTP. It works with a single binary without external dependencies. Reliability - It is built on top of RDBMS (MySQL), so that jobs won't be lost even if the job queue process dies. You can apply an ordinary replication scheme to the u

          GitHub - fireworq/fireworq: Fireworq is a lightweight, high-performance, language-independent job queue system.
        • Job Queueシステムを自分で設計するときに必要な設定項目メモ

          「Job Queueシステムを使いたいんだけど、今回使いたい言語用のライブラリには低機能のものしかない、追加機能を少しだけ自分で作る必要がある」というときに、どういう機能を最低限作れば、システムリソースの使い過ぎ等を避けられるかメモ。 Google App Engine(GAE)のTaskQueueが以前使ってて便利だったので、「それと同じ機能が最低限あれば、とりあえずOKでは?」みたいな方針で書いてます。用語は基本的にGAEに合わせますが、各システムによって様々だったりします。 この記事に書かれた内容が絶対とかそういうわけではないのでご注意ください。 RateとBucket Size トークンバケットアルゴリズムでタスクを実行していく場合、RateとBucket Sizeの値を設定することで、結果的に、単位時間あたりに実行するタスクの数を設定することができます。 具体的な数字は完全にシス

          • Job-Queue Workerの実装を管理するdaemon - 時計を壊せ

            Message Queueとか だいたいみんな、Message QueueとしてGearmanとかQ4MとかResqueとかRabbitMQとかZeroMQとかまあたくさんあるけど、なにかを使っていると思う。 Perlの人だとQudoとかTheSchwartzとかをつかっている人も多いと思う。 でも、preforkなworkerを実装するとなるとSignal処理とかをちゃんとやるのが意外と難しい。 下の2つのスライドを読むと難しいんだなぁという事がなんとなくわかるとおもう。 YAPC 2012 - 続・Mobage を支える技術 Unix Programming with Perl 2 graceful shutdownとかgraceful restartとかは欲しいし、max_reqs_per_child的なこともしたいし、時間が掛かり過ぎているjobはリトライして新しいworkerで処

              Job-Queue Workerの実装を管理するdaemon - 時計を壊せ
            • Perlのメモリ保存型Job Queueフレームワーク入門覚書 ~ClutchとGearmanとWorkerのFork~ | hirobanex.net

              お仕事をメモリに保存するタイプのジョブキューフレームワークのGearmanとClutchをそれぞれ使ってみて、実用的なワーカーのforkのコードを書いた、そのあたりの備忘録を、Hachojio.pmでLTした内容です。 やりたいこと ~なんでJob Queueとか使おうとしたのか~ なんで入門するかって話ですが、こんな経緯があったのです。「いくつかのAPIをたたいてその結果を集約して返したい」、あるいは、「たくさんAPIをたたきたいんだけど短時間で処理して、結果を返したい」と思ったんです。つまり、「並列処理をしつつ、結果をまとめて返したい」ということ実現する必要が出たんですね。それで、Perlでじっそうするとなると、以下の4つから選ぶんだと思います。 Coro AnyEvent Fork Job Queue AnyEventとかCoroとかは並列処理をさせる中身によって気にしなきゃいけない

              • ActionScriptでJob Queueを考える - Codin’ In The Free World

                as3ds as3dsというライブラリがあります。 http://lab.polygonal.de/ds/ ActionScriptでは、C++のSTLやJavaが最初から同梱しているような データ構造を簡単に扱うライブラリがコアには含まれません。 このライブラリを使えば各種データ構造を扱えるようになります。 for Game Developerと書いてありますが、ゲーム以外でも使えると思います。 [追記:2009/11/23] コメントを頂いて気づいたのですが、 作者がhaXe版を作り、as3版のメンテを止めてしまっているようです。 google codeのプロジェクトページもなくなっていてダウンロードできません。 githubにforkされているようなので、そちらから入手するとよいです。 http://github.com/jaybaird/as3ds/ 利用できるデータ構造 Link

                • GitHub - cookpad/barbeque: Job queue system to run job with Docker

                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                    GitHub - cookpad/barbeque: Job queue system to run job with Docker
                  • TheSchwartz-1.17 - reliable job queue - metacpan.org

                    The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

                    • shoryuken gemで簡単にSQSを使ったJob Queue WorkerをRailsに作成する | DevelopersIO

                      丹内です。 掲題のとおり、SQSを簡単に使うことができるshoryuken gemを使ってみました。 前提 ruby 2.2.4 rails 4.2.5 マネジメントコンソールでSQSの作成 AWSマネジメントコンソールのSQS画面から新規にキューを作成します。 Shoryukenによる負荷が抑えられるよう、Receive Message Wait Timeの設定を忘れないようにしてください。 インストール Gemfileに以下のように書いてbundle installします。 gem 'shoryuken' group :development, :test do gem 'foreman' end あとで解説しますが、railsアプリとは別にworkerプロセスも立ち上げるので、便利になるようforemn gemもインストールしています。 Jobクラスを作成 Shoryuken::Wo

                        shoryuken gemで簡単にSQSを使ったJob Queue WorkerをRailsに作成する | DevelopersIO
                      • Scaling Slack’s Job Queue – Several People Are Coding

                        Robustly Handling Billions of Tasks in Milliseconds Using Kafka and Redis Slack uses a job queue system for business logic that is too time-consuming to run in the context of a web request. This system is a critical component of our architecture, used for every Slack message post, push notification, URL unfurl, calendar reminder, and billing calculation. On our busiest days, the system processes o

                          Scaling Slack’s Job Queue – Several People Are Coding
                        • Redisをつかったjob queue - blog.nekokak.org

                          最近Redisに興味があったんで 色々な使い方を検討してるんですが、その中でRedisをつかったJob Queueを思いついたので実装してみました。 ちなみにRedisをつかったJob Queueは既出で、githubなんかで使われている resqueというのがあります。 まぁ通常のJob Queueだったら正直別にRedisつかわなくていいのでちょっと違う感じで実装してみました。 # 個人的には普通のQueueだったらQ4MとかQudoとかTheSchwartzでいいとおもう。 # こんなところで無駄にRedisとか使うメリットないわ。 通常JobQueueだと1個ずつjobをとりだして(dequeue)処理を行うと思います。 ただ、ケースによってはある一定の個数のjobをまとめてdequeueして処理を行いたい時があります。 私は普段業務では、Q4Mを多用しているんですがQ4Mにはそう

                          • MongoDB製JOB Queue - 中年engineerの独り言 - crumbjp

                            お盆が暇だったので MongoDB製Job queue を作った。 名前はMONMOちゃん。 javascriptで手軽に使いたい部分があって個人用で考えていたが 結構マトモなモノが出来上がったので公開する事にする。 またMONMOちゃんを使って、自然言語処理も一式書いてみたが こちらは次回紹介する。 注意 Javascript製ではない。 MongoDB製だ! 繰り返し言おう。 MongoDBは環境である!! About Monmoちゃん github https://github.com/monmo/monmo 概要 全ての処理はMongoDB(mongod) 及び Mongo shell(mongo)上で動作する。 JobはJavascriptで記述する。 MongoDBへJob投入(制御データと実装)すると、予めどこかで起動したWorkerが処理する。 Job投入側にはスクリプトを

                              MongoDB製JOB Queue - 中年engineerの独り言 - crumbjp
                            • 歴史あるPHPアプリケーションの ジョブキューシステムのリプレース / Replace for historic job queue system

                              歴史あるPHPアプリケーションのジョブキューシステムのリプレース バーチー 2017.08.05 ぎんざRuby会議01 https://ginzarb.github.io/kaigi01/

                                歴史あるPHPアプリケーションの ジョブキューシステムのリプレース / Replace for historic job queue system
                              • GitHub - Automattic/kue: Kue is a priority job queue backed by redis, built for node.js.

                                You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                  GitHub - Automattic/kue: Kue is a priority job queue backed by redis, built for node.js.
                                • GitHub - que-rb/que: A Ruby job queue that uses PostgreSQL's advisory locks for speed and reliability.

                                  This README and the rest of the docs on the master branch all refer to Que 2.x. For older versions, please refer to the docs on the respective branches: 1.x, or 0.x. TL;DR: Que is a high-performance job queue that improves the reliability of your application by protecting your jobs with the same ACID guarantees as the rest of your data. Que ("keɪ", or "kay") is a queue for Ruby and PostgreSQL that

                                    GitHub - que-rb/que: A Ruby job queue that uses PostgreSQL's advisory locks for speed and reliability.
                                  • GitHub - RichardKnop/machinery: Machinery is an asynchronous task queue/job queue based on distributed message passing.

                                    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                      GitHub - RichardKnop/machinery: Machinery is an asynchronous task queue/job queue based on distributed message passing.
                                    • GitHub - path/android-priority-jobqueue: A Job Queue specifically written for Android to easily schedule jobs (tasks) that run in the background, improving UX and application stability.

                                      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                        GitHub - path/android-priority-jobqueue: A Job Queue specifically written for Android to easily schedule jobs (tasks) that run in the background, improving UX and application stability.
                                      • Serverless Ninja Tips "Instant Job Queue" をしっかり紹介してみる - Copy/Cut/Paste/Hatena

                                        このエントリは、Serverless Advent Calendar 2017とFusic Advent Calendar 2017の5日目となります。 PHPカンファレンスや、Serverlessconf Tokyo 2017でも紹介したServerless Ninja Tips(名前だけかっこいい)ですが、その中で、説明するたびに伝わっていない感がある "Instant Job Queue" について紹介したいと思います。 想定するユースケース「クローラ」 サーバーレスアーキテクチャでWebページのクローラを実装するとします。 まずは、以下のような1つのLambdaファンクション(今回はWorkerと呼びます)を考えるでしょう。 URLを入力として受け取って、URLにアクセスしてHTMLパース、次のURLをリストアップする リストアップしたURLを次のLambdaファンクションの入力と

                                          Serverless Ninja Tips "Instant Job Queue" をしっかり紹介してみる - Copy/Cut/Paste/Hatena
                                        • Resque クイックスタート - 簡単に始める Ruby の Job Queue -

                                          Resque っていう Rake と Redis を使った Job Queue があるんだけど、これの味見をしようとしてハマったのでメモ。ハマった原因は Resque 2.0 系をインストールしてしまって混乱した感じ。 Redis インストールCentOS なので yum で入れる $ sudo yum --enablerepo=epel install -y redis Resque インストール#Gemfile gem "resque" $ bundle install --path vendor/bundle 注意:ここで gem "resque", github: "resque/resque" などとやってしまうと 2.0系が入って混乱する。上のように rubygems からインストールする。あと github のページも 1.x 系は https://github.com/re

                                          • Product: Resque - GitHub's Distrubuted Job Queue - High Scalability -

                                            Queuing work for processing in the background is a time tested scalability strategy. Queuing also happens to be one of those much needed tools where it easy enough to forge for your own that we see a lot of different versions made. Resque is GitHub's take on a job queue and they've used it to process million and millions of jobs so far. What is Resque? Redis-backed library for creating background

                                            • GitHub - mission-liao/dingo: An easy-to-use, distributed, extensible task/job queue framework for #golang

                                              I initiated this project after machinery, which is a great library and tends to provide a replacement of Celery in #golang. The reasons to create (yet) another task library are: To make sending tasks as easy as possible Await and receive reports through channels. (channel is a natural way to represent asynchronous results) I want to get familiar with those concepts of #golang: interface, routine,

                                                GitHub - mission-liao/dingo: An easy-to-use, distributed, extensible task/job queue framework for #golang
                                              • River: a Fast, Robust Job Queue for Go + Postgres

                                                Years ago I wrote about my trouble with a job queue in Postgres, in which table bloat caused by long-running queries slowed down the workers’ capacity to lock jobs as they hunted across millions of dead tuples trying to find a live one. A job queue in a database can have sharp edges, but I’d understated in that writeup the benefits that came with it. When used well, transactions and background job

                                                • Implementing a Job Queue with Node.js

                                                  At the simplest level, a message queue is a way for applications and discrete components to send messages between one another in order to reliably communicate. Message queues are typically (but not always) ‘brokers’ that facilitate message passing by providing a protocol or interface which other services can access. This interface connects producers which create messages and the consumers which th

                                                    Implementing a Job Queue with Node.js
                                                  • GitHub - danielwestendorf/get_schwifty: Render portions of your Rails view in a background job queue. ActiveJob + ActionCable.

                                                    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                      GitHub - danielwestendorf/get_schwifty: Render portions of your Rails view in a background job queue. ActiveJob + ActionCable.
                                                    • GitHub - joowani/kq: Kafka-based Job Queue for Python

                                                      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                        GitHub - joowani/kq: Kafka-based Job Queue for Python
                                                      • GitHub - thisandagain/queue: A persistent background job queue for iOS.

                                                        You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                          GitHub - thisandagain/queue: A persistent background job queue for iOS.
                                                        • Google Apps Script向け簡易job-queueを作った

                                                          Motivation 個人的にいくつかのSlackボットをGoogle Apps Script(以下GAS)で実装していますが、3秒ルールの壁があってイベント処理がタイムアウトしてしまうという課題がありました。 Slackの公式ドキュメントには3秒以内にレスポンスできない処理は、一旦レスポンスして非同期処理でイベントのペイロードにあるレスポンスURLに書き込めとありました。 GAS内で非同期処理を行うには、トリガー処理を組み合わせして実現できそうでした。 使えるトリガーはいくつか種類がありますが、今回の用途では Time-driven が一番使えそうだと判断しました。 GASのTriggerについてspikeしてみた まず軽くドキュメントをみて気になったのは1スクリプトにつき1ユーザーが20トリガーまでという制約が目につきました。 実際にトリガーを使って非同期処理をさせてみましたが、イベン

                                                            Google Apps Script向け簡易job-queueを作った
                                                          • GitHub - vmihailenco/taskq: Golang asynchronous task/job queue with Redis, SQS, IronMQ, and in-memory backends

                                                            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                              GitHub - vmihailenco/taskq: Golang asynchronous task/job queue with Redis, SQS, IronMQ, and in-memory backends
                                                            • How to build a job queue with Rust and PostgreSQL

                                                              (or in any other language such as Go, Node.js or python) Job queues are a central piece of any web application. It enables background jobs, buffering to handle surges in traffic, async messaging, batching and many other great things. Thus, this is all natural that many vendors are offering various

                                                                How to build a job queue with Rust and PostgreSQL
                                                              • GitHub - tomschlick/fuel-jobqueue: A job queue & processor for Fuelphp

                                                                You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                  GitHub - tomschlick/fuel-jobqueue: A job queue & processor for Fuelphp
                                                                • GitHub - Shanon/Malba: Job Queue

                                                                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                    GitHub - Shanon/Malba: Job Queue
                                                                  • PythonのJob Queue、Qamasu

                                                                    2009/07/02 00:43 ※ 商品のリンクをクリックして何かを購入すると私に少額の報酬が入ることがあります【広告表示】 世の中Message Queueバヤリですね! でも、そんなごっついのいらないんです。ただのJob Queueが欲しいんです。 theschwartzとかQudoとかすてきなものがPerlにはあるんです。 そこで、theschwartzとかQudoとかを駄目にした感じのものを作り出しました。 経緯的に謎なクラス構造ですが気にしない>< http://bitbucket.org/tsuyukimakoto/qamasu/wiki/Home qamasuはDjangoのアプリケーションという単位で作ってます。きっとそのうちWebインターフェースがつきます(WebというかHTTPというか)。 Djangoの使い方がわからない人は、まず拙著を… 2009/09/23 23

                                                                    1