1 of 44

Slide Notes

DownloadGo Live

Code Fellows: Background Jobs

Published on Nov 30, 2015

No Description

PRESENTATION OUTLINE

BACKGROUND JOBS

CODE FELLOWS

@RYANSOBOL

RUBYMOTION AND RAILS CONSULTANT
Photo by joren.degroof

A STORY BEFORE BED

TECH LEAD

UW CONTINUING ED

INDUSTRY ADVISOR
Photo by StooMathiesen

ADVANCED RAILS

INSTRUCTOR

BACKGROUND JOBS

BRIEF OVERVIEW OF
Photo by nickwheeleroz

RYANSOBOL.ROON.IO

SLIDE DECK, FLOW CHARTS & EXAMPLE CODE
Photo by akseabird

_WHY?

Photo by Roo Reynolds

SPEED MATTERS

GOOGLE SAID SO
Photo by Steve Bowen

PERCEIVED SPEED

INVERSELY PROPORTIONAL TO BOUNCE RATE
Photo by Pörrö

WEB RESPONSE TIMES SHOULD BE
Photo by kevin dooley

SLOW EXAMPLES

WORK > 500 MS
Photo by .bobby

SLOW EXAMPLES

Photo by djwudi

FLOW CHARTS!

ARCHITECTURE

IMPLEMENTATION INDEPENDENT
Photo by marcp_dmoz

ARCHITECTURE

Photo by marcp_dmoz

QUEUES

AKA BUCKETS
Photo by Josh Kenzer

FIFO

Photo by orijinal

NAMED

EX. DEFAULT, EMAILS, API, ETC.
Photo by maybeemily

JOBS

Photo by AMANITO

LIGHT WEIGHT OBJECTS

SLOW LOGIC LIVES SOMEWHERE ELSE

CREATED IN YOUR APP

DURING A WEB REQUEST

ASSIGN TO A QUEUE

Photo by altRego

ASSIGN A PRIORITY

Photo by R/DV/RS

PERSISTED SOMEWHERE

EX. DATABASE, REDIS, ETC.
Photo by B_Zedan

EXAMPLE CODE

HEY BUDDY, HOW ABOUT SOME
Photo by elliottcable

PROCESSORS

Photo by William Hook

POLLING

Photo by *JRFoto*

POLL THE STORAGE

EVERY FEW SECONDS

FIFO, PRIORITY, QUEUE

CHOOSES NEXT JOB BASED ON
Photo by kugel

RUNS THE JOB

Photo by HckySo

LOG THE RESULT

Photo by decade_null

NOT AUTOMATIC

RESULT LOGGING IS
Photo by decade_null

EXAMPLE CODE

LET'S REVISIT THE
Photo by elliottcable

MONITORING

Photo by fotdmike

MONITORING

Photo by fotdmike

MONITOR LOG FILES

AUTOMATIC
Photo by Wolfman-K

WEB INTERFACE

SEE SIDEKIQ
Photo by włodi

SECURITY RISK

Photo by włodi

IN A NUTSHELL

Photo by Robby Ryke

BACKGROUND JOBS

Photo by Robby Ryke

START SMALL

YAGNI

QUESTIONS?

Photo by sk8geek

HAPPY CODING!

Photo by Pinachina