Skip to content

Sample app demonstrating background worker functionality for a DCRUG talk

Notifications You must be signed in to change notification settings

jamesdabbs/dcrug-workers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

^ 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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published