TEACHERS
GALLERY
PRICING
SIGN IN
TRY ZURU
GET STARTED
Loop
Audio
Interval:
5s
10s
15s
20s
60s
Play
1 of 7
Slide Notes
Download
Go Live
New! Free Haiku Deck for PowerPoint Add-In
Background Jobs
Share
Copy
Download
0
14
Published on Nov 20, 2015
No Description
View Outline
MORE DECKS TO EXPLORE
PRESENTATION OUTLINE
1.
Background Jobs
Ruby Background Processing Libraries
Photo by
*nacnud*
2.
Agenda
Why Background Jobs?
When to use Background Jobs?
Which Background Jobs?
Demo
Q/A
Photo by
Rajiv Patel (Rajiv's View)
3.
Why?
handle time consuming operations
separate logic
communicate with other servers
Photo by
Andrew _ B
4.
examples
resizing images
fetching data from api
uploading data to s3
email
notifications
reading RSS feeds
Photo by
Kyle McDonald
5.
When?
avoid web requests which run longer than 500ms(0.5 sec)
If your app has requests that take one, two, or more seconds to complete, consider using a background job instead.
Photo by
MaxC.
6.
Which?
Delayed Jobs
Resque
Sidekiq
Beanstalkd
Photo by
rockabilly_girl
7.
Considerations
allow enough time for jobs to complete
load testing/ using benchmarks in PROD
handle job failures
set timeouts for your jobs
delayed job & workers, UTC time
split up jobs to multiple servers
Photo by
anieto2k
Friend of Haiku Deck
×
Error!