72
The Art of the Spike Aaron Bedra Principal, Relevance, Inc. Copyright 2007-2010 Relevance, Inc. This presentation is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License. See http://creativecommons.org/licenses/by-nc-sa/3.0/us/ Saturday, May 15, 2010

The Art of the Spike

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: The Art of the Spike

The Art of the Spike

Aaron BedraPrincipal, Relevance, Inc.

Copyright 2007-2010 Relevance, Inc. This presentation is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License. See http://creativecommons.org/licenses/by-nc-sa/3.0/us/

Saturday, May 15, 2010

Page 2: The Art of the Spike

Saturday, May 15, 2010

Page 3: The Art of the Spike

DRY

Saturday, May 15, 2010

Page 4: The Art of the Spike

Do you have 10 years of

experience or the same year 10

times?Saturday, May 15, 2010

Page 5: The Art of the Spike

So you’re starting a new project...

Saturday, May 15, 2010

Page 6: The Art of the Spike

Yes but why?

Saturday, May 15, 2010

Page 7: The Art of the Spike

Business value

Saturday, May 15, 2010

Page 8: The Art of the Spike

“Faster”

Saturday, May 15, 2010

Page 9: The Art of the Spike

“Better”

Saturday, May 15, 2010

Page 10: The Art of the Spike

“Easier”

Saturday, May 15, 2010

Page 11: The Art of the Spike

A Jedi craves not these things

Saturday, May 15, 2010

Page 12: The Art of the Spike

Making money

Saturday, May 15, 2010

Page 13: The Art of the Spike

Preserving reputation

Saturday, May 15, 2010

Page 14: The Art of the Spike

Saturday, May 15, 2010

Page 15: The Art of the Spike

We’ve just been assigned a new

project

Saturday, May 15, 2010

Page 16: The Art of the Spike

Credit card authorization

Saturday, May 15, 2010

Page 17: The Art of the Spike

Very lean information set

Saturday, May 15, 2010

Page 18: The Art of the Spike

Number, available credit, per charge

limit

Saturday, May 15, 2010

Page 19: The Art of the Spike

Lookup by card number

Saturday, May 15, 2010

Page 20: The Art of the Spike

Web service for charges

Saturday, May 15, 2010

Page 21: The Art of the Spike

Transaction speed is essential

Saturday, May 15, 2010

Page 22: The Art of the Spike

Ok let’s get down to planning

Saturday, May 15, 2010

Page 23: The Art of the Spike

We’ve decided to use clojure as a

language

Saturday, May 15, 2010

Page 24: The Art of the Spike

And PostgreSQL as a database

Saturday, May 15, 2010

Page 25: The Art of the Spike

But wait!

Saturday, May 15, 2010

Page 26: The Art of the Spike

Has anyone heard about Redis?

Saturday, May 15, 2010

Page 27: The Art of the Spike

It might be a good fit for this

Saturday, May 15, 2010

Page 28: The Art of the Spike

We should spike it out!

Saturday, May 15, 2010

Page 29: The Art of the Spike

Research time

Saturday, May 15, 2010

Page 30: The Art of the Spike

Record everything!

Saturday, May 15, 2010

Page 31: The Art of the Spike

Time-box everything!

Saturday, May 15, 2010

Page 32: The Art of the Spike

Getting started

Saturday, May 15, 2010

Page 33: The Art of the Spike

All technology you are about to

encounter should be treated as a first

class citizen!

Saturday, May 15, 2010

Page 34: The Art of the Spike

Download and install

Saturday, May 15, 2010

Page 35: The Art of the Spike

How did it go?

Saturday, May 15, 2010

Page 36: The Art of the Spike

Should we keep going?

Saturday, May 15, 2010

Page 37: The Art of the Spike

Interfacing

Saturday, May 15, 2010

Page 38: The Art of the Spike

Is there an SDK or API?

Saturday, May 15, 2010

Page 39: The Art of the Spike

In the language you are using?

Saturday, May 15, 2010

Page 40: The Art of the Spike

Does it work?

Saturday, May 15, 2010

Page 41: The Art of the Spike

Should we keep going?

Saturday, May 15, 2010

Page 42: The Art of the Spike

Prototype code

Saturday, May 15, 2010

Page 43: The Art of the Spike

Simple CRUD

Saturday, May 15, 2010

Page 44: The Art of the Spike

How long did it take?

Saturday, May 15, 2010

Page 45: The Art of the Spike

Should we keep going?

Saturday, May 15, 2010

Page 46: The Art of the Spike

Reference Example

Saturday, May 15, 2010

Page 47: The Art of the Spike

What does my team think?

Saturday, May 15, 2010

Page 48: The Art of the Spike

Should we keep going?

Saturday, May 15, 2010

Page 49: The Art of the Spike

Operations

Saturday, May 15, 2010

Page 50: The Art of the Spike

How do we deploy it?

Saturday, May 15, 2010

Page 51: The Art of the Spike

How do we monitor it?

Saturday, May 15, 2010

Page 52: The Art of the Spike

Should we keep going?

Saturday, May 15, 2010

Page 53: The Art of the Spike

Performance

Saturday, May 15, 2010

Page 54: The Art of the Spike

How fast can a single instance go?

Saturday, May 15, 2010

Page 55: The Art of the Spike

Can it scale?

Saturday, May 15, 2010

Page 56: The Art of the Spike

How does it compare to our

original idea?

Saturday, May 15, 2010

Page 57: The Art of the Spike

Does it help us meet our “why”

Saturday, May 15, 2010

Page 58: The Art of the Spike

Should we keep going?

Saturday, May 15, 2010

Page 59: The Art of the Spike

Management / Client

Saturday, May 15, 2010

Page 60: The Art of the Spike

We did a spike and here’s what

we found

Saturday, May 15, 2010

Page 61: The Art of the Spike

Easy to install

Saturday, May 15, 2010

Page 62: The Art of the Spike

Easy to use

Saturday, May 15, 2010

Page 63: The Art of the Spike

The dev team has a reference

Saturday, May 15, 2010

Page 64: The Art of the Spike

Dev team feels they can be

productive on day one

Saturday, May 15, 2010

Page 65: The Art of the Spike

Easy deployment

Saturday, May 15, 2010

Page 66: The Art of the Spike

Easy monitoring

Saturday, May 15, 2010

Page 67: The Art of the Spike

In memory

Saturday, May 15, 2010

Page 68: The Art of the Spike

Outperforms our RDBMS

Saturday, May 15, 2010

Page 69: The Art of the Spike

Easy and fast scaling

Saturday, May 15, 2010

Page 70: The Art of the Spike

?Saturday, May 15, 2010

Page 71: The Art of the Spike

Questions?

Saturday, May 15, 2010

Page 72: The Art of the Spike

Contact

• aaronbedra.com (blog)

• @abedra (twitter)

[email protected]

• github.com/abedra

• speakerrate.com/talks/3252

Saturday, May 15, 2010