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
68
Other Decks in Programming
See All in Programming
Road to RubyKaigi: Play Hard(ware)
makicamel
1
500
[RubyKaigi 2026] Require Hooks
palkan
1
260
Spec-driven Development: How AI Changes Everything (And Nothing)
simas
PRO
0
420
実践CRDT
tamadeveloper
0
600
検索設計から 推論設計への重心移動と Recall-First Retrieval
po3rin
4
1.3k
Explore CoroutineScope
tomoeng11
0
120
Terraform言語の静的解析 / static analysis of Terraform language
wata727
1
120
🦞OpenClaw works with AWS
licux
1
310
Kingdom of the Machine
yui_knk
2
1.2k
AIベース静的検査器の偽陽性率を抑える工夫3選
orgachem
PRO
4
380
(Re)make Regexp in Ruby: Democratizing internals for the JIT
makenowjust
3
890
CDK Deployのための ”反響定位”
watany
5
900
Featured
See All Featured
The Spectacular Lies of Maps
axbom
PRO
1
720
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
53k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.8k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
170
Code Reviewing Like a Champion
maltzj
528
40k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.7k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
120
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
190
Facilitating Awesome Meetings
lara
57
6.8k
Site-Speed That Sticks
csswizardry
13
1.2k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
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