Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
How to build a Unified API
Search
Simon Wood
October 25, 2013
Programming
4
750
How to build a Unified API
Presentation on APIs at FOWA 2013
Simon Wood
October 25, 2013
Tweet
Share
More Decks by Simon Wood
See All by Simon Wood
Managing Legacy Tech Migrations
hpoom
0
25
Killing off legacy tech the right way
hpoom
0
130
Tech's Got Talent
hpoom
1
230
Holiday Extras AWS use case
hpoom
0
120
Node.js & Microservices
hpoom
2
270
Javascript: One language to rule them all
hpoom
0
210
APIs are eating the world
hpoom
2
920
Wake up and smell the API
hpoom
1
130
APIs from the Trenches - API Days Mediterranea 2015
hpoom
0
180
Other Decks in Programming
See All in Programming
JaSST 24 九州:ワークショップ(は除く)実践!マインドマップを活用したソフトウェアテスト+活用事例
satohiroyuki
0
260
とにかくAWS GameDay!AWSは世界の共通言語! / Anyway, AWS GameDay! AWS is the world's lingua franca!
seike460
PRO
1
550
Hotwire or React? ~Reactの録画機能をHotwireに置き換えて得られた知見~ / hotwire_or_react
harunatsujita
9
4.1k
Golang と Erlang
taiyow
8
1.9k
Pinia Colada が実現するスマートな非同期処理
naokihaba
2
160
弊社の「意識チョット低いアーキテクチャ」10選
texmeijin
5
23k
デプロイを任されたので、教わった通りにデプロイしたら障害になった件 ~俺のやらかしを越えてゆけ~
techouse
52
32k
Boost Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
870
Universal Linksの実装方法と陥りがちな罠
kaitokudou
1
220
アジャイルを支えるテストアーキテクチャ設計/Test Architecting for Agile
goyoki
7
2.8k
Vaporモードを大規模サービスに最速導入して学びを共有する
kazukishimamoto
4
4.3k
go.mod、DockerfileやCI設定に分散しがちなGoのバージョンをまとめて管理する / Go Connect #3
arthur1
10
2.4k
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
51
13k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5k
4 Signs Your Business is Dying
shpigford
180
21k
Happy Clients
brianwarren
97
6.7k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
664
120k
The World Runs on Bad Software
bkeepers
PRO
65
11k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
328
21k
The Cost Of JavaScript in 2023
addyosmani
45
6.6k
YesSQL, Process and Tooling at Scale
rocio
167
14k
How GitHub (no longer) Works
holman
311
140k
Typedesign – Prime Four
hannesfritz
39
2.4k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Transcript
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