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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Lee Jones
March 07, 2013
Programming
350
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
340
Cache Me If You Can
leejones
2
370
Packaging Rails Applications
leejones
0
68
Other Decks in Programming
See All in Programming
実践ハーネスエンジニアリング:ステアリングループを実例から読み解く / Practical Harness Engineering: Understanding Steering Loops Through Real-World Examples
nrslib
6
6.2k
AI時代になぜ書くのか
mutsumix
0
450
今さら聞けないCancellationToken
htkym
0
180
CLIであることを活かしたGitHub Copilot CLI活用術 / GitHub Copilot CLI Pro Tips & Tricks
nao_mk2
1
940
Sans tests, vos agents ne sont pas fiables
nabondance
0
150
柔軟なPDFレイアウトエディタを支える型システム設計 — Discriminated UnionとConditional Typeの実践
minako__ph
3
560
Migrations : C'est une question d'hygiène !
vinceamstoutz
0
1.7k
Hive Metastoreを通して学ぶIceberg REST Catalog ― 仕様から実装まで
okumin
0
270
ビジネスモデルから紐解く、AI+型駆動開発
hirokiomote
2
1.7k
Swiftのレキシカルスコープ管理
kntkymt
0
190
開発とはなにか、Essenceカーネルで見えるもの
ukin0k0
0
200
新規プロダクトを高速で生み出すハーネスエンジニアリング
seanchas116
3
270
Featured
See All Featured
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
170
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
230
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.8k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
270
The browser strikes back
jonoalderson
0
1.1k
Six Lessons from altMBA
skipperchong
29
4.2k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.1k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
4k
Ethics towards AI in product and experience design
skipperchong
2
280
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
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