Sample app demonstrating background worker functionality for a DCRUG talk
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
lib
log
public
test
vendor/assets
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

^ 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

[fit] @jamesdabbs | james@theironyard.com


The Request-Response Cycle

  1. User makes a request (via clicking on a link, submitting a form)
  2. ???
  3. Server sends back a response
  4. There is no step 4

Background workers allow you to perform work outside the request-response cycle


Common Uses


^ 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

[fit] FIN

[fit] github.com/jamesdabbs/dcrug-workers