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
Data Decay and the Illusion of the Present
Search
API Strategy & Practice Conference
October 24, 2013
Technology
0
120
Data Decay and the Illusion of the Present
By Dan Lynn @ API Strategy & Practice Conference
San Francisco, October 23-24-25, 2013
API Strategy & Practice Conference
October 24, 2013
Tweet
Share
More Decks by API Strategy & Practice Conference
See All by API Strategy & Practice Conference
APIStrat 2016 | The end of polling: why and how to transform a REST API into a Data Streaming API (Audrey Neveu)
apistrat
12
280
APIStrat 2016 | OpenAPI Trek: Beyond API Documentation (Arnaud Lauret)
apistrat
5
220
APIStrat 2016 | Flying Dreams: Real-Time Communication from the Edge of Space (Jonathan Barton, Neha Abrol)
apistrat
1
120
APIStrat 2016 | On-prem support? That was so 1982 (Charlie Ozinga)
apistrat
0
99
APIStrat 2016 | Effortless microservices in production with Kubernetes (Ken Wronkiewicz)
apistrat
0
130
Song by Tony Blank
apistrat
0
150
API Lifecycle Manager by Steve Fonseca
apistrat
2
220
APIs In The Enterprise: How Walgreens Formed It's Digital Business by Drew Schweinfurth
apistrat
1
360
Developers Are Difficult by Andrew Noonan
apistrat
0
120
Other Decks in Technology
See All in Technology
2024年にチャレンジしたことを振り返るぞ
mitchan
0
140
OpenAIの蒸留機能(Model Distillation)を使用して運用中のLLMのコストを削減する取り組み
pharma_x_tech
4
570
開発生産性向上! 育成を「改善」と捉えるエンジニア育成戦略
shoota
2
400
サイバー攻撃を想定したセキュリティガイドライン 策定とASM及びCNAPPの活用方法
syoshie
3
1.3k
podman_update_2024-12
orimanabu
1
280
大幅アップデートされたRagas v0.2をキャッチアップ
os1ma
2
540
ずっと昔に Star をつけたはずの思い出せない GitHub リポジトリを見つけたい!
rokuosan
0
150
ハイテク休憩
sat
PRO
2
170
1等無人航空機操縦士一発試験 合格までの道のり ドローンミートアップ@大阪 2024/12/18
excdinc
0
170
あの日俺達が夢見たサーバレスアーキテクチャ/the-serverless-architecture-we-dreamed-of
tomoki10
0
480
NW-JAWS #14 re:Invent 2024(予選落ち含)で 発表された推しアップデートについて
nagisa53
0
270
レンジャーシステムズ | 会社紹介(採用ピッチ)
rssytems
0
200
Featured
See All Featured
How to Think Like a Performance Engineer
csswizardry
22
1.2k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Automating Front-end Workflow
addyosmani
1366
200k
Faster Mobile Websites
deanohume
305
30k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Docker and Python
trallard
42
3.1k
Site-Speed That Sticks
csswizardry
2
190
Designing on Purpose - Digital PM Summit 2013
jponch
116
7k
Optimising Largest Contentful Paint
csswizardry
33
3k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
170
Transcript
Data Decay and the Illusion of the Present Dan Lynn
@danklynn
Keeps all your contacts in one place and keeps them
automatically up to date. Based in Denver, Colorado CTO & Co-Founder
[email protected]
@danklynn
Let’s talk about time.
None
The Past
http://wearcam.org/dundas-square/2004sep23/cement.jpg
The Future The Past The Present
Unless you’re a yogi, you probably can’t even perceive the
present.
http://applemagazine.com/wp-content/uploads/2012/12/ exc.jpeg
- Washington Post (September 24, 2013) “Traders may have gotten
last week’s Fed news 7 milliseconds early“
It’s just a question of how old. Data is always
old
How do APIs keep data fresh?
Polling • Simple • But can lead to complex scheduling
• Trades efficient use of resources for fresh data. GET /notifications?since=1382630675166
- Zapier “98.5% of polls are wasted”
Ping/Pull • XML-RPC • Facebook Realtime updates • Avoids scheduled
polling • Consumer must host an endpoint • Moderate latency (3 hops) • Complex
Push • Github service hooks • Content of change is
pushed • Payload can be diff or full resource • Consumer must host an endpoint • Lowest latency (1 hop)
We are moving towards a push-based API ecosystem
“Security is abnormally slow.” Flight Delays
“Dan Lynn changed his phone number” Contact Information
Dynamic Subscriptions POST /contacts/123/subscriptions { "url" : "https://.../updates?contactId=123" } 201
Created { "url" : "/contacts/123/subscriptions/a3b"}
Dynamic Subscriptions DELETE /contacts/123/subscriptions/a3b 200 OK
So which model is right for your API?
What’s the cost of acting on wrong data?
$100 per contact Source: SiriusDecisions If left untreated
Low time sensitivity? Polling is fine.
High time sensitivity? Go with push.
APIs are combating information asymmetry.
Thanks! @danklynn See Also: http://xmpp.org/extensions/xep-0060.html https://code.google.com/p/pubsubhubbub/ http://www.resthooks.org/