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
350
Packaging Rails Applications
leejones
0
66
Other Decks in Programming
See All in Programming
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
640
Honoを使ったリモートMCPサーバでAIツールとの連携を加速させる!
tosuri13
1
110
組み合わせ爆発にのまれない - 責務分割 x テスト
halhorn
1
180
Claude Codeの「Compacting Conversation」を体感50%減! CLAUDE.md + 8 Skills で挑むコンテキスト管理術
kmurahama
1
730
CSC307 Lecture 03
javiergs
PRO
1
470
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
1.6k
CSC307 Lecture 02
javiergs
PRO
1
760
生成AI時代を勝ち抜くエンジニア組織マネジメント
coconala_engineer
0
39k
Go コードベースの構成と AI コンテキスト定義
andpad
0
160
GISエンジニアから見たLINKSデータ
nokonoko1203
0
190
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
240
dchart: charts from deck markup
ajstarks
3
960
Featured
See All Featured
30 Presentation Tips
portentint
PRO
1
190
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
200
A better future with KSS
kneath
240
18k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
430
Ruling the World: When Life Gets Gamed
codingconduct
0
120
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
61
48k
Unsuck your backbone
ammeep
671
58k
How to Ace a Technical Interview
jacobian
281
24k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
41
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
140
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