To Infinity ... and Beyond!
Scaling Your Stack with Service Oriented
Architecture
Slide 2
Slide 2 text
In a Past Life ...
GET /v2/phone/+18182179229
{“name”: “DEGGES,RANDALL”}
Slide 3
Slide 3 text
Scaling OpenCNAM
1,000,000s
to ...
1,000,000,000s
Slide 4
Slide 4 text
Reduced Cost By 50%
Slide 5
Slide 5 text
No content
Slide 6
Slide 6 text
What You’ll Learn
● Why scaling is hard.
● What SOA is.
● How SOA can help you.
● How to implement SOA.
● When not to use SOA.
Slide 7
Slide 7 text
Yo, I’m Randall
● Developer Evangelist @ Stormpath
● I blog: http://www.rdegges.com
● I code: https://github.com/rdegges
● I tweet: @rdegges
● Email me: randall@stormpath.com
Slide 8
Slide 8 text
No content
Slide 9
Slide 9 text
The Problem
Slide 10
Slide 10 text
Scaling Web Apps is Hard
Slide 11
Slide 11 text
If You Need to Scale...
Slide 12
Slide 12 text
Let’s talk about how most people
build applications.
Slide 13
Slide 13 text
No content
Slide 14
Slide 14 text
No content
Slide 15
Slide 15 text
Part 1
What’s the deal with
monolithic apps?
Slide 16
Slide 16 text
Fighting Your Code Base
Slide 17
Slide 17 text
Features Fight for Resources
Slide 18
Slide 18 text
Catastrophic Failure
Slide 19
Slide 19 text
Resource Allocation Problems
Slide 20
Slide 20 text
Part 2
What’s SOA?
Slide 21
Slide 21 text
No content
Slide 22
Slide 22 text
No content
Slide 23
Slide 23 text
The UNIX Way
Write programs that do one thing and
do it well. Write programs to work
together. Write programs that
speak HTTP, because that is a
universal interface.
Slide 24
Slide 24 text
$ find /path/to/search/ \
-type f -iname "*.mp4" \
-printf '%s %p\n'| \
sort -nr | head -10
The UNIX Way
Define API Specs
● GET /v1/phones
● GET /v1/phones/+18182179229
● POST /v1/phones
● PUT /v1/phones
● PATCH /v1/phones
● DELETE /v1/phones
Slide 39
Slide 39 text
TIPS for Designing Good APIs
http://www.stormpath.com/blog/designing-rest-json-apis
Slide 40
Slide 40 text
No content
Slide 41
Slide 41 text
Don’t Forget!
● Play to your strengths.
● Don’t worry about tools and languages.
● Give your team freedom!
● Services should be small enough to build in
a few days.
Slide 42
Slide 42 text
SOA Downsides
Slide 43
Slide 43 text
Don’t Use SOA If Your
Project is Unstable
Slide 44
Slide 44 text
Don’t Use SOA If Don’t Know APIs
Slide 45
Slide 45 text
No content
Slide 46
Slide 46 text
Recap
● Monolithic apps are hard to maintain and scale
● SOA apps require upfront work, but scale easily
● SOA apps are easier to maintain
● SOA apps can save you money