Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Running global manufacturing on Ruby (among oth...

Lee Edwards
November 11, 2016

Running global manufacturing on Ruby (among other things)

How Teespring runs a global manufacturing operation on Ruby, and other programming languages.

Lee Edwards

November 11, 2016
Tweet

More Decks by Lee Edwards

Other Decks in Technology

Transcript

  1. Running global manufacturing on Ruby (among other things) Lee Edwards

    VP Engineering at Teespring RubyConf 2016 @terronk
  2. CampaignEnder Campaign class Campaign < ActiveRecord::Base # state_id class CampaignEnder

    < TeespringWorker def perform # Check: # valid campaign, and valid to end? # meet minimum to print? # profitable for orders placed? # all orders charged? end_successfully
  3. Printer FulfillmentJob class Printer < ActiveRecord::Base has_many :fulfillment_jobs class FulfillmentJob

    < ActiveRecord::Base has_many :fulfillment_line_items class FulfillmentLineItem < ActiveRecord::Base