Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
The Worker Pattern
Search
Lee Jones
March 07, 2013
Programming
340
1
Share
The Worker Pattern
A Lightning Talk I gave at the March 7, 2013 Nashville Ruby on Rails Meetup.
Lee Jones
March 07, 2013
More Decks by Lee Jones
See All by Lee Jones
Continuous Improvement
leejones
1
340
Getting Started with Docker
leejones
0
330
Cache Me If You Can
leejones
2
360
Packaging Rails Applications
leejones
0
67
Other Decks in Programming
See All in Programming
AI活用のコスパを最大化する方法
ochtum
0
380
CDK Deployのための ”反響定位”
watany
3
620
ドメインイベントでビジネスロジックを解きほぐす #phpcon_odawara
kajitack
2
130
AI時代のPhpStorm最新事情 #phpcon_odawara
yusuke
0
150
PHP 7.4でもOpenTelemetryゼロコード計装がしたい! / PHPerKaigi 2026
arthur1
1
540
ハンズオンで学ぶクラウドネイティブ
tatsukiminami
0
110
夢の無限スパゲッティ製造機 -実装篇- #phpstudy
o0h
PRO
0
200
CursorとClaudeCodeとCodexとOpenCodeを実際に比較してみた
terisuke
1
320
AI時代の脳疲弊と向き合う ~言語学としてのPHP~
sakuraikotone
1
1.8k
forteeの改修から振り返るPHPerKaigi 2026
muno92
PRO
3
250
PHPのバージョンアップ時にも役立ったAST(2026年版)
matsuo_atsushi
0
300
Codex CLIのSubagentsによる並列API実装 / Parallel API Implementation with Codex CLI Subagents
takatty
2
870
Featured
See All Featured
The Curious Case for Waylosing
cassininazir
0
290
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Designing Experiences People Love
moore
143
24k
Technical Leadership for Architectural Decision Making
baasie
3
320
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
64
54k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
220
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
160
Evolving SEO for Evolving Search Engines
ryanjones
0
180
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
160
Art, The Web, and Tiny UX
lynnandtonic
304
21k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.2k
Transcript
The Worker Pattern Thursday, March 7, 13
Confession Thursday, March 7, 13
BACKGROUND ALL THE THINGS! Thursday, March 7, 13
Request work •••••••••••• Thursday, March 7, 13
Example Acme API Feed * item 1 * item 2
* item 3 ... Thursday, March 7, 13
class AcmeIntegrationController def index api = AcmeAPI.new(user_token) @feed = api.get_user_feed
end end Thursday, March 7, 13
I heard you requests... so i put a request inside
your request Thursday, March 7, 13
class AcmeIntegrationController def index if fragment.exists? @feed = fragment.data else
fragment.fetch_in_background @feed = nil end ... Thursday, March 7, 13
# app/views/acme_integration/index.html <% if @feed.present? -%> <%= render @feed %>
<% else -%> <%= feed_fragment_helper %> <% end -%> Thursday, March 7, 13
Example Acme API Feed loading... Thursday, March 7, 13
http status 204 http://httpstatus.es/204 Thursday, March 7, 13
Example Acme API Feed * item 1 * item 2
* item 3 ... Thursday, March 7, 13
The Worker Pattern resources Ryan Smith: * slides: rails conf
2010 * Video: talk at waza 2011 Rack Worker on Github speakerdeck.com/leejones ••• Thursday, March 7, 13