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 Design an API
Search
Simon Wood
July 02, 2014
Technology
0
240
How to Design an API
Talk at London API Meetup on 2nd July 2014.
Simon Wood
July 02, 2014
Tweet
Share
More Decks by Simon Wood
See All by Simon Wood
Managing Legacy Tech Migrations
hpoom
0
36
Killing off legacy tech the right way
hpoom
0
140
Tech's Got Talent
hpoom
1
240
Holiday Extras AWS use case
hpoom
0
140
Node.js & Microservices
hpoom
2
270
Javascript: One language to rule them all
hpoom
0
220
APIs are eating the world
hpoom
2
930
Wake up and smell the API
hpoom
1
130
APIs from the Trenches - API Days Mediterranea 2015
hpoom
0
180
Other Decks in Technology
See All in Technology
ブラックフライデーで購入したPixel9で、Gemini Nanoを動かしてみた
marchin1989
1
520
Oracle Cloudの生成AIサービスって実際どこまで使えるの? エンジニア目線で試してみた
minorun365
PRO
4
280
Snykで始めるセキュリティ担当者とSREと開発者が楽になる脆弱性対応 / Getting started with Snyk Vulnerability Response
yamaguchitk333
2
180
多領域インシデントマネジメントへの挑戦:ハードウェアとソフトウェアの融合が生む課題/Challenge to multidisciplinary incident management: Issues created by the fusion of hardware and software
bitkey
PRO
2
100
Wantedly での Datadog 活用事例
bgpat
1
420
OpenAIの蒸留機能(Model Distillation)を使用して運用中のLLMのコストを削減する取り組み
pharma_x_tech
4
540
第3回Snowflake女子会_LT登壇資料(合成データ)_Taro_CCCMK
tarotaro0129
0
180
サイボウズフロントエンドエキスパートチームについて / FrontendExpert Team
cybozuinsideout
PRO
5
38k
re:Invent 2024 Innovation Talks(NET201)で語られた大切なこと
shotashiratori
0
300
LINE Developersプロダクト(LIFF/LINE Login)におけるフロントエンド開発
lycorptech_jp
PRO
0
120
1等無人航空機操縦士一発試験 合格までの道のり ドローンミートアップ@大阪 2024/12/18
excdinc
0
150
レンジャーシステムズ | 会社紹介(採用ピッチ)
rssytems
0
150
Featured
See All Featured
How GitHub (no longer) Works
holman
311
140k
Fireside Chat
paigeccino
34
3.1k
Mobile First: as difficult as doing things right
swwweet
222
9k
Optimising Largest Contentful Paint
csswizardry
33
3k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
330
21k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Imperfection Machines: The Place of Print at Facebook
scottboms
266
13k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5k
Speed Design
sergeychernyshev
25
670
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.4k
Transcript
How to Design a Unified API London API Group -
02/07/14 Wednesday, 2 July 14
Simon Wood @hpoom Holiday Extras Image by Barney Livingston -
Flickr Wednesday, 2 July 14
@hpoom Wednesday, 2 July 14
@hpoom Over 40m visits and 500k bookings in the last
5 years Give £20m revenue to hotels each year Wednesday, 2 July 14
@hpoom Wednesday, 2 July 14
What I am going to cover The Problem Design Solutions
Considerations Technology @hpoom Wednesday, 2 July 14
LET’S TALK ABOUT THE PROBLEM @hpoom Wednesday, 2 July 14
Multiple sources of data @hpoom Wednesday, 2 July 14
@hpoom Wednesday, 2 July 14
Multiple consumers of data @hpoom Wednesday, 2 July 14
Shortbreaks traffic breakdown 18 months @hpoom Wednesday, 2 July 14
@hpoom Wednesday, 2 July 14
De couple @hpoom Wednesday, 2 July 14
Hide legacy @hpoom Wednesday, 2 July 14
Speed! @hpoom Wednesday, 2 July 14
Source: Strangeloop Networks Case Study Amazon 100 milliseconds revenue 1%
Mozilla 2.2 seconds downloads 60m per year @hpoom Wednesday, 2 July 14
Scaleability @hpoom Wednesday, 2 July 14
Be efficient with resource @hpoom Wednesday, 2 July 14
SO WHAT IS THE THE SOLUTION @hpoom Wednesday, 2 July
14
The Design Bit @hpoom Wednesday, 2 July 14
Website Application Layer Legacy Reservation System @hpoom Wednesday, 2 July
14
Website Application Layer & API Legacy Reservation System Affiliates @hpoom
Wednesday, 2 July 14
Website Application Layer & API Legacy Reservation System Affiliates Hotel
System Ticket System @hpoom Wednesday, 2 July 14
Website Application Layer & API Legacy Reservation System Affiliates Hotel
System Ticket System @hpoom Wednesday, 2 July 14
Unified API Website Mobile App Affiliates Smart TV Hotels Tickets
Transport Food Multiple consumers of data Multiple sources of data @hpoom Wednesday, 2 July 14
Proxy @hpoom Wednesday, 2 July 14
Website Application Layer Legacy Reservation System @hpoom Wednesday, 2 July
14
Website Application Layer Unified API Legacy Reservation System New System
Proxy @hpoom Wednesday, 2 July 14
Hierarchical @hpoom Wednesday, 2 July 14
Website Application Layer Unified API Legacy Reservation System New System
@hpoom Wednesday, 2 July 14
Website Application Layer Unified API Product API Content API Price
& Availability Name Star Rating Facilities @hpoom Wednesday, 2 July 14
Website Application Layer Unified API Product API Content API Hotels
Tickets Transport @hpoom Wednesday, 2 July 14
Website Application Layer Unified API Product API Content API Hotels
Tickets Transport Legacy New Affiliate @hpoom Wednesday, 2 July 14
Micro-service architecture Idea by Fred George - http://bit.ly/fred-george @hpoom Wednesday,
2 July 14
Traditional Enterprise Architecture Micro Service Architecture Diagram by James Hughes
- http://bit.ly/micro-service @hpoom Wednesday, 2 July 14
Website Application Layer Unified API Content API @hpoom Wednesday, 2
July 14
Authentication @hpoom Wednesday, 2 July 14
Unified API Website Mobile App Affiliates Smart TV Hotels Tickets
Transport Food Auth @hpoom Wednesday, 2 July 14
Standardise your payloads @hpoom Wednesday, 2 July 14
PUBLIC SERVICE ANNOUNCEMENT @hpoom This is THE correct way to
write numeric dates 2014-07-02 Source XKCD - http://bit.ly/iso-date Wednesday, 2 July 14
Checksum tricks @hpoom MD5 ("Checksum tricks") = 1aef67e94cf84d9c4200e24cbdc9f93d Wednesday, 2
July 14
Cache & async requests @hpoom Wednesday, 2 July 14
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 Wednesday, 2 July 14
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 Wednesday, 2 July 14
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 Wednesday, 2 July 14
SOME CONSIDERATIONS @hpoom Wednesday, 2 July 14
Open & Commercial @hpoom Wednesday, 2 July 14
The right way to rate limit @hpoom Wednesday, 2 July
14
Who needs access? @hpoom Wednesday, 2 July 14
Unlimited pools of talent @hpoom Chris Jason, ESPN - http://bit.ly/espnapi
Wednesday, 2 July 14
Debugging & Logs @hpoom Wednesday, 2 July 14
Our log data in loggly @hpoom Wednesday, 2 July 14
700k unique payloads 3GB JSON logged daily @hpoom Wednesday, 2
July 14
WHAT TECHNOLOGY? @hpoom Wednesday, 2 July 14
We use... @hpoom express web application framework for node Wednesday,
2 July 14
Yesterday’s Standard SOAP XML Today’s Standard REST JSON Keep it
simple! @hpoom Wednesday, 2 July 14
@hpoom Wednesday, 2 July 14
Language does not matter @hpoom Wednesday, 2 July 14
Good docs @hpoom Pusher Blog - http://bit.ly/devapidocs Wednesday, 2 July
14
TAKE AWAYS @hpoom Wednesday, 2 July 14
APIs Mobile Social Cloud @hpoom Diagram by Sam Ramji -
http://bit.ly/biz-apis Wednesday, 2 July 14
Consume your own APIs @hpoom uses to build Source Zach
Holman - http://bit.ly/githubdogfood uses to build Wednesday, 2 July 14
@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 Wednesday, 2 July 14
is really important don't screw it up APIs Design @hpoom
Wednesday, 2 July 14
Thanks http://bit.ly/unifiedapi @hpoom twitter + github Simon Wood Wednesday, 2
July 14