^ What follows are the slides from the talk, presented with Deckset
^ Note that this app itself does assume it's running locally on OSX, but can be tweaked by changing
^ the gif-opening logic in cats.rb
[fit] Working Smarter
james@theironyard.com
[fit] @jamesdabbs |The Request-Response Cycle
- User makes a request (via clicking on a link, submitting a form)
- ???
- Server sends back a response
- There is no step 4
Background workers allow you to perform work outside the request-response cycle
Common Uses
- Sending email
- Sending email
- Periodic cleanups
- Anything that's slow
^ Look at and understand the starting app
^ Add sidekiq and sidekiq web
^ Port to ActiveJobs
^ See the solutions
branch for my implementation
[fit] Live
[fit] Coding
Considerations
- Triggering work (scheduled or periodic jobs)
- Threads vs processes
- Queue backend
- Retry and failure handling
- Admin tools