The Art of the Spike
-
Upload
aaron-bedra -
Category
Technology
-
view
116 -
download
0
description
Transcript of The Art of the Spike
![Page 1: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/1.jpg)
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](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/2.jpg)
Saturday, May 15, 2010
![Page 3: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/3.jpg)
DRY
Saturday, May 15, 2010
![Page 4: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/4.jpg)
Do you have 10 years of
experience or the same year 10
times?Saturday, May 15, 2010
![Page 5: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/5.jpg)
So you’re starting a new project...
Saturday, May 15, 2010
![Page 6: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/6.jpg)
Yes but why?
Saturday, May 15, 2010
![Page 7: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/7.jpg)
Business value
Saturday, May 15, 2010
![Page 8: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/8.jpg)
“Faster”
Saturday, May 15, 2010
![Page 9: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/9.jpg)
“Better”
Saturday, May 15, 2010
![Page 10: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/10.jpg)
“Easier”
Saturday, May 15, 2010
![Page 11: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/11.jpg)
A Jedi craves not these things
Saturday, May 15, 2010
![Page 12: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/12.jpg)
Making money
Saturday, May 15, 2010
![Page 13: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/13.jpg)
Preserving reputation
Saturday, May 15, 2010
![Page 14: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/14.jpg)
Saturday, May 15, 2010
![Page 15: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/15.jpg)
We’ve just been assigned a new
project
Saturday, May 15, 2010
![Page 16: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/16.jpg)
Credit card authorization
Saturday, May 15, 2010
![Page 17: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/17.jpg)
Very lean information set
Saturday, May 15, 2010
![Page 18: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/18.jpg)
Number, available credit, per charge
limit
Saturday, May 15, 2010
![Page 19: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/19.jpg)
Lookup by card number
Saturday, May 15, 2010
![Page 20: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/20.jpg)
Web service for charges
Saturday, May 15, 2010
![Page 21: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/21.jpg)
Transaction speed is essential
Saturday, May 15, 2010
![Page 22: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/22.jpg)
Ok let’s get down to planning
Saturday, May 15, 2010
![Page 23: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/23.jpg)
We’ve decided to use clojure as a
language
Saturday, May 15, 2010
![Page 24: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/24.jpg)
And PostgreSQL as a database
Saturday, May 15, 2010
![Page 25: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/25.jpg)
But wait!
Saturday, May 15, 2010
![Page 26: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/26.jpg)
Has anyone heard about Redis?
Saturday, May 15, 2010
![Page 27: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/27.jpg)
It might be a good fit for this
Saturday, May 15, 2010
![Page 28: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/28.jpg)
We should spike it out!
Saturday, May 15, 2010
![Page 29: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/29.jpg)
Research time
Saturday, May 15, 2010
![Page 30: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/30.jpg)
Record everything!
Saturday, May 15, 2010
![Page 31: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/31.jpg)
Time-box everything!
Saturday, May 15, 2010
![Page 32: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/32.jpg)
Getting started
Saturday, May 15, 2010
![Page 33: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/33.jpg)
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](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/34.jpg)
Download and install
Saturday, May 15, 2010
![Page 35: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/35.jpg)
How did it go?
Saturday, May 15, 2010
![Page 36: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/36.jpg)
Should we keep going?
Saturday, May 15, 2010
![Page 37: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/37.jpg)
Interfacing
Saturday, May 15, 2010
![Page 38: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/38.jpg)
Is there an SDK or API?
Saturday, May 15, 2010
![Page 39: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/39.jpg)
In the language you are using?
Saturday, May 15, 2010
![Page 40: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/40.jpg)
Does it work?
Saturday, May 15, 2010
![Page 41: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/41.jpg)
Should we keep going?
Saturday, May 15, 2010
![Page 42: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/42.jpg)
Prototype code
Saturday, May 15, 2010
![Page 43: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/43.jpg)
Simple CRUD
Saturday, May 15, 2010
![Page 44: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/44.jpg)
How long did it take?
Saturday, May 15, 2010
![Page 45: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/45.jpg)
Should we keep going?
Saturday, May 15, 2010
![Page 46: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/46.jpg)
Reference Example
Saturday, May 15, 2010
![Page 47: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/47.jpg)
What does my team think?
Saturday, May 15, 2010
![Page 48: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/48.jpg)
Should we keep going?
Saturday, May 15, 2010
![Page 49: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/49.jpg)
Operations
Saturday, May 15, 2010
![Page 50: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/50.jpg)
How do we deploy it?
Saturday, May 15, 2010
![Page 51: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/51.jpg)
How do we monitor it?
Saturday, May 15, 2010
![Page 52: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/52.jpg)
Should we keep going?
Saturday, May 15, 2010
![Page 53: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/53.jpg)
Performance
Saturday, May 15, 2010
![Page 54: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/54.jpg)
How fast can a single instance go?
Saturday, May 15, 2010
![Page 55: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/55.jpg)
Can it scale?
Saturday, May 15, 2010
![Page 56: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/56.jpg)
How does it compare to our
original idea?
Saturday, May 15, 2010
![Page 57: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/57.jpg)
Does it help us meet our “why”
Saturday, May 15, 2010
![Page 58: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/58.jpg)
Should we keep going?
Saturday, May 15, 2010
![Page 59: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/59.jpg)
Management / Client
Saturday, May 15, 2010
![Page 60: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/60.jpg)
We did a spike and here’s what
we found
Saturday, May 15, 2010
![Page 61: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/61.jpg)
Easy to install
Saturday, May 15, 2010
![Page 62: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/62.jpg)
Easy to use
Saturday, May 15, 2010
![Page 63: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/63.jpg)
The dev team has a reference
Saturday, May 15, 2010
![Page 64: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/64.jpg)
Dev team feels they can be
productive on day one
Saturday, May 15, 2010
![Page 65: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/65.jpg)
Easy deployment
Saturday, May 15, 2010
![Page 66: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/66.jpg)
Easy monitoring
Saturday, May 15, 2010
![Page 67: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/67.jpg)
In memory
Saturday, May 15, 2010
![Page 68: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/68.jpg)
Outperforms our RDBMS
Saturday, May 15, 2010
![Page 69: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/69.jpg)
Easy and fast scaling
Saturday, May 15, 2010
![Page 70: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/70.jpg)
?Saturday, May 15, 2010
![Page 71: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/71.jpg)
Questions?
Saturday, May 15, 2010
![Page 72: The Art of the Spike](https://reader033.fdocuments.in/reader033/viewer/2022051515/54c75e674a79598e0a8b45cd/html5/thumbnails/72.jpg)
Contact
• aaronbedra.com (blog)
• @abedra (twitter)
• github.com/abedra
• speakerrate.com/talks/3252
Saturday, May 15, 2010