Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
How to build a Unified API
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Simon Wood
October 25, 2013
Programming
1k
4
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
How to build a Unified API
Presentation on APIs at FOWA 2013
Simon Wood
October 25, 2013
Transcript
72 slides
How to Build a Unified API
Simon Wood @hpoom Holiday Extras Image by Barney Livingston -
Flickr
@hpoom
@hpoom Over 40m visits and 500k bookings in the last
5 years Give £20m revenue to hotels each year
@hpoom
Because of APIs I can tell you... Yesterday I walked
6191 steps FitBit API The music I listen to most is Radiohead Last.fm API It is currently 13ºC in New York Yahoo Weather API The Brewery is located at lat: 51.520475 lon: -0.091471 Google Maps API @hpoom
The Future is mobile The Future is social The Future
is cloud @hpoom
The Future is mobile The Future is social The Future
is cloud The Future is APIs @hpoom
APIs Mobile Social Cloud @hpoom Diagram by Sam Ramji -
http://bit.ly/biz-apis
What I am going to cover The Problem Solutions -
Good and Bad Considerations Technology How you can do this too @hpoom
LET’S TALK ABOUT THE PROBLEM @hpoom
Multiple sources of data @hpoom
@hpoom
Multiple consumers of data @hpoom
Shortbreaks traffic breakdown 18 months @hpoom Desktop Tablet Mobile
@hpoom
De couple @hpoom
Hide legacy @hpoom
Speed! @hpoom
Source: Strangeloop Networks Case Study Amazon 100 milliseconds revenue 1%
Mozilla 2.2 seconds downloads 60m per year @hpoom
Scaleability @hpoom
Be efficient with resource @hpoom
SO WHAT IS THE THE SOLUTION @hpoom
The Unified Bit @hpoom
Website Application Layer Legacy Reservation System @hpoom
Website Application Layer & API Legacy Reservation System Affiliates @hpoom
Website Application Layer & API Legacy Reservation System Affiliates Hotel
System Ticket System @hpoom
Website Application Layer & API Legacy Reservation System Affiliates Hotel
System Ticket System @hpoom
Unified API Website Mobile App Affiliates Smart TV Hotels Tickets
Transport Food Multiple consumers of data Multiple sources of data @hpoom
Proxy @hpoom
Website Application Layer Legacy Reservation System @hpoom
Website Application Layer Unified API Legacy Reservation System New System
Proxy @hpoom
Hierarchical @hpoom
Website Application Layer Unified API Legacy Reservation System New System
@hpoom
Website Application Layer Unified API Product API Content API Price
& Availability Name Star Rating Facilities @hpoom
Website Application Layer Unified API Product API Content API Hotels
Tickets Transport @hpoom
Website Application Layer Unified API Product API Content API Hotels
Tickets Transport Legacy New Affiliate @hpoom
Micro-service architecture Idea by Fred George - http://bit.ly/fred-george @hpoom
Traditional Enterprise Architecture Micro Service Architecture Diagram by James Hughes
- http://bit.ly/micro-service @hpoom
Website Application Layer Unified API Content API @hpoom
Authentication @hpoom
Unified API Website Mobile App Affiliates Smart TV Hotels Tickets
Transport Food Auth Use OAuth 2.0 @hpoom
Standardise your payloads @hpoom
PUBLIC SERVICE ANNOUNCEMENT @hpoom This is THE correct way to
write numeric dates 2013-10-25 Source XKCD - http://bit.ly/iso-date
Checksum tricks @hpoom MD5 ("Checksum tricks") = 1aef67e94cf84d9c4200e24cbdc9f93d
Cache & async requests @hpoom
Unified API Website Mobile App Affiliates Smart TV Hotels Tickets
Transport Food Async Total request time is only as slow as the slowest provider 1.2s 0.8s 1.1s 0.6s @hpoom
Unified API Website Mobile App Affiliates Smart TV Hotels Tickets
Transport Food Cache Cache Cache Cache Cache If we hit the top cache respond in 0.04s @hpoom
In summary Solutions Unified API Standard Payloads Micro Services Proxy
Cache & Async Hierarchical Problems Multi Data Sources Multi Consumers Decouple Hide Legacy Speed Scaleability @hpoom
SOME CONSIDERATIONS @hpoom
Open & Commercial @hpoom
The right way to rate limit @hpoom
Unlimited pools of talent @hpoom Chris Jason, ESPN - http://bit.ly/espnapi
Debugging & Logs @hpoom
Our log data in loggly @hpoom
300k unique payloads 3GB JSON logged daily @hpoom
WHAT TECHNOLOGY? @hpoom
We use... @hpoom express web application framework for node
Yesterday’s Standard SOAP XML Today’s Standard REST JSON Keep it
simple! @hpoom
@hpoom
Language does not matter @hpoom
WHERE TO START? @hpoom
What do you hate? @hpoom
Where are you going? @hpoom
Which public APIs could you consume? @hpoom
Who needs access? @hpoom
Good docs @hpoom Pusher Blog - http://bit.ly/devapidocs
TAKE AWAYS @hpoom
Consume your own APIs @hpoom uses to build Source Zach
Holman - http://bit.ly/githubdogfood uses to build
@hpoom “You wouldn't really think that an online bookstore needs
to be an extensible, programmable platform. Would you?” Steve Yegge Source Steve Yegge - http://bit.ly/yegge
The future of web apps is Unified APIs @hpoom
Thanks http://bit.ly/unifiedapi @hpoom We’re hiring - http://bit.ly/hx-sb twitter + github
Simon Wood
More Decks by Simon Wood
See All by Simon Wood
Managing Legacy Tech Migrations
hpoom
0
110
Killing off legacy tech the right way
hpoom
0
220
Tech's Got Talent
hpoom
1
310
Holiday Extras AWS use case
hpoom
0
250
Node.js & Microservices
hpoom
2
390
Javascript: One language to rule them all
hpoom
0
310
APIs are eating the world
hpoom
2
1k
Wake up and smell the API
hpoom
1
200
APIs from the Trenches - API Days Mediterranea 2015
hpoom
0
230
Other Decks in Programming
See All in Programming
高速開発を止めずに 性能を上げる Flyleのシステム刷新と改善の歴史
azihsoyn
0
110
AIが実装を担う時代の「技術設計」と「チームマネジメント」
kamina_zzz
2
470
LambdaなのにVM?Lambda MicroVMsを調べてみた / About Lambda Micro VMs
ak2ie
2
100
Enforcing Your Architecture with Unit Tests in the AI Era (Swift Connection X)
steliosf
PRO
1
200
AIエージェントの「テストは通るのに本番で壊れる」を減らす
shibuiwilliam
3
130
将来の標準フォーマッター?ktfmtを深堀る
t45k
1
250
初学者向け 分散トレーシングとDatadog
mtaka1222
0
110
Compiling Your Language to WasmGC & Friends
tanishiking
0
880
どうしても Eloquent でリポジトリパターンをやりたいんだ #phpcon_niigata / phpcon-niigata-2026
shogogg
0
710
Debian JP Projectのサーバー構成
uwabami
1
190
Stage 3でも仕様は変わる。アプリケーション開発者のためのTC39プロセスの読み方
bicstone
1
1.2k
Beyond Chatbots: Agentic UI with Open Standards @W-JAX 2026, München
manfredsteyer
PRO
0
130
Featured
See All Featured
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
2
450
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
580
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
2k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
490
Claude Code のすすめ
schroneko
67
230k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
510
The Pragmatic Product Professional
lauravandoore
37
7.5k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
Discover your Explorer Soul
emna__ayadi
2
1.4k
Scaling GitHub
holman
464
140k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.3k