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
Painless multithreaded programming for Ruby Celluloid is a concurrent object oriented programming framework for Ruby which lets you build multithreaded programs out of concurrent objects just as easily as you build sequential programs out of regular objects! Learn more Evented I/O for Celluloid actors. Build fast evented programs like you would with EventMachine or Node.js using regular synchronou
「Rails4でサイトを構築する」シリーズ目次 Rails環境構築編 Scaffold利用編 Bootstrap導入編 WYSIWYG導入編 CSV出力機能編 スクレイピング機能編(nokogiri) 非同期処理導入編(delayed_job) デプロイ環境構築編(capistrano3) 今回は、delayed_jobを使って非同期処理を行う機能を実装してみたいと思います。 delayed_jobとは 処理に時間が掛かるようなタスクをバックグラウンドで非同期処理を実現するGemです。 delayed_job 同じようなものにResque gemがありますが、 delayed_jobを使っていて困ることはないので、使い慣れたdelayed_jobを使っています。 ファイルをアップロードして内容を解析してデータを保存する処理とかサイトをクローリングしてスクレイピングして情報を保存する処理等、
Photo by Flickr: @Doug88888's Photostream メール送信、大量データのインポート/エクスポートなど長い時間がかかる処理はバックグラウンドで処理するのが一般的です。 Railsでバックグラウンド処理を実現するためには、Sidekiq, Resque, Delayed Jobといったgemが有名です。 また、Rails4.2からActive Jobが追加されました。これは、たくさんあるバックグラウンド処理を行うgemへの共通インターフェースのようなものが追加されました。 メリットとして、バックグラウンド処理のgemがどれでも、ソースコードは同じように記述できるようになります。ちなみに、ActiveJobだけではバックグラウンド処理はできないので、バックグラウンド処理のgemを入れる必要があります。 この記事では、DelayedJobでのバックグラウンド処理
概要 Rails で WEB 画面からのキックでジョブをバックグラウンドで実行するときどうするか。 例えば、メール送信・画像変換・CSVアップロードによる大量SQL実行など。 そんなときはバックグラウンドで非同期にジョブを実行してくれる便利な gem がある。 ruby-rails.hatenadiary.com このサイトで丁寧に説明してくれてます。 代表的だと言われている下記3つについて、それぞれ実装して使い心地を比較する。 Sidekiq: mperham/sidekiq · GitHub Resque: resque/resque · GitHub Delayed Job: collectiveidea/delayed_job · GitHub それと上記サイトで書かれている Active Job これの使い勝手も試してみる。 それぞれの gem について、もっと詳しく知りたい方は
Stay Relevant and Grow Your Career in TechPremium ResultsPublish articles on SitePointDaily curated jobsLearning PathsDiscounts to dev toolsStart Free Trial7 Day Free Trial. Cancel Anytime. A couple of weeks ago I penned an article called Better File Uploads with Dragonfly explaining how to set up Dragonfly – a gem for handling attachments. The post set up a demo app and integrated Dragonfly into,
171: Delayed Job (view original Railscast) Other translations: From episode 127, a short series of episodes showed how to run tasks in a background process. That series missed one of the best ways to do this: the delayed_job plugin by tobi. The plugin was extracted from Shopify and is a robust, stable solution for running background tasks in Rails applications. It’s used by sites as popular as Gi
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く