Contenu connexe Similaire à Gluecon 2013 netflix api crash course (20) Gluecon 2013 netflix api crash course1. Netflix API Crash Course
Building & Running the API in 30 minutes
Ben Schmaus, Netflix
May 2013, Gluecon
bschmaus@netflix.com
@schmaus
29. Continually changing UI scripts and
mid-tier services
Functionality, resiliency and
performance drifts over time
31. REMOVE MANUAL WORK pushing
code to multiple AWS regions/clusters
ENABLE RAPID DEPLOYMENT of
code despite limited visibility into how it's
changed
KEEP TEAM INFORMED about what's
happening in prod
MITIGATE RISK of systemic failure
35. Run 1% of your traffic on the new
code and see how it does
37. Manually looking at graphs and SSH-
ing into servers and grep-ing logs
doesn't scale
(although we used to do that)
51. $Who, $What, $Where, $When
e.g., "bschmaus, ami-123, Sandbox Canary, 2013-05-06 19:05"
Latest prod change in chat topic
55. Distributed grep + tail
2013-05-09.20:38:54 MX 200 us-east-1c i-1824cb73 i-1c61b77f prod
NFPS3-001-8G50FJCX... 288404769389848058 90ms api-global.
netflix.com GET /tvui/release/470/plus/pathEvaluator -
amazon.ami-id: ami-502eb039
amazon.availability-zone: us-east-1c
amazon.instance-id: i-1824cb73
amazon.instance-type: m2.2xlarge
amazon.local-ipv4: 10.6.213.112
amazon.public-hostname: ec2-54-243-4-69.compute-1.amazonaws.
com
amazon.public-ipv4: 54.243.4.69
cookie_esn: NFPS3-001-8G50FJCX...
country: MX
currentTime: 1368131934468
duration-millis: 90
esn: NFPS3-001-8G50FJCX...
geo.city: CIUDADOBREGON
...
$ ./simple_stream.py -f -q 'e["country"]=="MX" && e["esn"]
==~/NFPS3.*/' -r us
59. Even with the best tools, building
software is hard work.
Great engineers build great
software.
60. Want to help us build the API?
bschmaus@netflix.com
@schmaus