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
1
340
The Worker Pattern
A Lightning Talk I gave at the March 7, 2013 Nashville Ruby on Rails Meetup.
Lee Jones
March 07, 2013
Tweet
Share
More Decks by Lee Jones
See All by Lee Jones
Continuous Improvement
leejones
1
330
Getting Started with Docker
leejones
0
330
Cache Me If You Can
leejones
2
360
Packaging Rails Applications
leejones
0
66
Other Decks in Programming
See All in Programming
[KNOTS 2026登壇資料]AIで拡張‧交差する プロダクト開発のプロセス および携わるメンバーの役割
hisatake
0
250
Data-Centric Kaggle
isax1015
2
760
ThorVG Viewer In VS Code
nors
0
770
360° Signals in Angular: Signal Forms with SignalStore & Resources @ngLondon 01/2026
manfredsteyer
PRO
0
120
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
180
Package Management Learnings from Homebrew
mikemcquaid
0
210
AI Schema Enrichment for your Oracle AI Database
thatjeffsmith
0
250
Apache Iceberg V3 and migration to V3
tomtanaka
0
150
AI & Enginnering
codelynx
0
110
Fragmented Architectures
denyspoltorak
0
150
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
160
「ブロックテーマでは再現できない」は本当か?
inc2734
0
770
Featured
See All Featured
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
930
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Believing is Seeing
oripsolob
1
53
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
62
Designing Powerful Visuals for Engaging Learning
tmiket
0
220
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Designing for humans not robots
tammielis
254
26k
KATA
mclloyd
PRO
34
15k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
130
The browser strikes back
jonoalderson
0
360
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
200
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