Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
db
 
 
lib
 
 
log
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Sample app demonstrating background worker functionality for a DCRUG talk

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.