Business of APIs Conference 2011 - Netflix

406 views
352 views

Published on

Published in: Technology, Self Improvement
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
406
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Business of APIs Conference 2011 - Netflix

  1. 1. Transforming  Streaming  with  the   Ne2lix  API   By  Daniel  Jacobson   @daniel_jacobson   djacobson@ne2lix.com  
  2. 2. Ne2lix     API   Almost  23,000  flowers    
  3. 3. Ne2lix     API  Hundreds  of  devices   Almost  23,000  flowers    
  4. 4. API  Personaliza Movie   Movie   Similar   A/B  Test   Lon   User  Info   Reviews   Engine   Metadata   RaLngs   Movies   Engine  
  5. 5. Ne2lix  API  Requests  by  Audience   Ne2lix  Devices   Open  API  Developers  
  6. 6. Current  Emphasis  of  Ne2lix   Ne2lix  Devices  
  7. 7. Ne2lix  API  :  Requests  Per  Month    35      30      25    Requests  in  Billions    20      15      10      5      -­‐        
  8. 8. AWS  Cloud  
  9. 9. So,  we  have  a  scalable  infrastructure…       Now  what?  
  10. 10. Webkit   •  Dynamically  update  UIs   •  Control  the  experience   •  Share  code  across   devices   •  Run  A/B  tests  
  11. 11. iPhone   Android  
  12. 12. And  we  have  a  flexible  UI.   Now  what?  
  13. 13. Next  Step…  Redesign  the  API  
  14. 14. Ne2lix  API  :  Requests  Per  Month    35      30      25    Requests  in  Billions    20      15      10      5      -­‐        
  15. 15. Growth  of  the  Ne2lix  API   Over  1  Billion  requests  per  day   (Peaks  at  about  20,000  requests  per  second)  
  16. 16. <catalog_Ltles>      <number_of_results>1140</number_of_results>      <start_index>0</start_index>      <results_per_page>10</results_per_page>      <catalog_Ltle>      <id>hdp://api.ne2lix.com/catalog/Ltles/movies/60021896</id><Ltle  short="Star"  regular="Star"></Ltle>      <box_art  small="hdp://alien2.ne2lix.com/us/boxshots/Lny/60021896.jpg"        medium="hdp://alien2.ne2lix.com/us/boxshots/small/60021896.jpg"        large="hdp://alien2.ne2lix.com/us/boxshots/large/60021896.jpg"></box_art>      <link  href="hdp://api.ne2lix.com/catalog/Ltles/movies/60021896/synopsis"        rel="hdp://schemas.ne2lix.com/catalog/Ltles/synopsis"  Ltle="synopsis"></link>      <release_year>2001</release_year>      <category  scheme="hdp://api.ne2lix.com/catalog/Ltles/mpaa_raLngs"  label="NR"></category>      <category  scheme="hdp://api.ne2lix.com/categories/genres"  label="Foreign"></category>      <link  href="hdp://api.ne2lix.com/catalog/Ltles/movies/60021896/cast"        rel="hdp://schemas.ne2lix.com/catalog/people.cast"  Ltle="cast"></link>  <link  href="hdp://api.ne2lix.com/catalog/Ltles/movies/60021896/screen_formats"  rel="hdp://schemas.ne2lix.com/catalog/Ltles/screen_formats"  Ltle="screen  formats"></link      <link  href="hdp://api.ne2lix.com/catalog/Ltles/movies/60021896/languages_and_audio"  rel="hdp://schemas.ne2lix.com/catalog/Ltles/languages_and_audio"  Ltle="languages  and  audio"></link>      <average_raLng>1.9</average_raLng>      <link  href="hdp://api.ne2lix.com/catalog/Ltles/movies/60021896/similars"  rel="hdp://schemas.ne2lix.com/catalog/Ltles.similars"  Ltle="similars"></link>      <link  href="hdp://www.ne2lix.com/Movie/Star/60021896"  rel="alternate"  Ltle="webpage"></link>      </catalog_Ltle>      <catalog_Ltle>      <id>hdp://api.ne2lix.com/catalog/Ltles/movies/17985448</id><Ltle  short="Lone  Star"  regular="Lone  Star"></Ltle>      <box_art  small="hdp://alien2.ne2lix.com/us/boxshots/Lny/17985448.jpg"  medium="hdp://alien2.ne2lix.com/us/boxshots/small/17985448.jpg"  large=""></box_art>      <link  href="hdp://api.ne2lix.com/catalog/Ltles/movies/17985448/synopsis"  rel="hdp://schemas.ne2lix.com/catalog/Ltles/synopsis"  Ltle="synopsis"></link>      <release_year>1996</release_year>      <category  scheme="hdp://api.ne2lix.com/catalog/Ltles/mpaa_raLngs"  label="R"></category>      <category  scheme="hdp://api.ne2lix.com/categories/genres"  label="Drama"></category>  <link  href="hdp://api.ne2lix.com/catalog/Ltles/movies/17985448/awards"  rel="hdp://schemas.ne2lix.com/catalog/Ltles/awards"  Ltle="awards"></link>      <link  href="hdp://api.ne2lix.com/catalog/Ltles/movies/17985448/format_availability"  rel="hdp://schemas.ne2lix.com/catalog/Ltles/format_availability"  Ltle="formats"></link>      <link  href="hdp://api.ne2lix.com/catalog/Ltles/movies/17985448/screen_formats"  rel="hdp://schemas.ne2lix.com/catalog/Ltles/screen_formats"  Ltle="screen  formats"></link>      <link  href="hdp://api.ne2lix.com/catalog/Ltles/movies/17985448/languages_and_audio"  rel="hdp://schemas.ne2lix.com/catalog/Ltles/languages_and_audio"  Ltle="languages  and  audio"></link>      <average_raLng>3.7</average_raLng>      <link  href="hdp://api.ne2lix.com/catalog/Ltles/movies/17985448/previews"  rel="hdp://schemas.ne2lix.com/catalog/Ltles/previews"  Ltle="previews"></link>      <link  href="hdp://api.ne2lix.com/catalog/Ltles/movies/17985448/similars"  rel="hdp://schemas.ne2lix.com/catalog/Ltles.similars"  Ltle="similars"></link>      <link  href="hdp://www.ne2lix.com/Movie/Lone_Star/17985448"  rel="alternate"  Ltle="webpage"></link>      </catalog_Ltle>  </catalog_Ltles>  
  17. 17. {"catalog_Ltle":  {"id":"hdp://api.ne2lix.com/catalog/Ltles/movies/60034967",  "Ltle":{"Ltle_short":"Rosencrantz  and  Guildenstern  Are  Dead",  "regular":"Rosencrantz  and  Guildenstern  Are  Dead"},  "maturity_level":60,  "release_year":"1990",  "average_raLng":3.7,  "box_art":{"284pix_w":"hdp://cdn-­‐7.nflximg.com/en_US/boxshots/ghd/60034967.jpg",  "110pix_w":"hdp://cdn-­‐7.nflximg.com/en_US/boxshots/large/60034967.jpg",  "38pix_w":"hdp://cdn-­‐7.nflximg.com/en_US/boxshots/Lny/60034967.jpg",  "64pix_w":"hdp://cdn-­‐7.nflximg.com/en_US/boxshots/small/60034967.jpg",  "150pix_w":"hdp://cdn-­‐7.nflximg.com/en_US/boxshots/150/60034967.jpg",  "88pix_w":"hdp://cdn-­‐7.nflximg.com/en_US/boxshots/88/60034967.jpg",  "124pix_w":"hdp://cdn-­‐7.nflximg.com/en_US/boxshots/124/60034967.jpg"},  "language":"en",  "web_page":"hdp://www.ne2lix.com/Movie/Rosencrantz_and_Guildenstern_Are_Dead/60034967",  "Lny_url":"hdp://movi.es/ApUP9"},  "meta":{  "expand":["@directors","@bonus_materials","@cast","@awards","@short_synopsis","@synopsis","@box_art","@screen_formats","@"links":{"id":"hdp://api.ne2lix.com/catalog/Ltles/movies/60034967",  "languages_and_audio":"hdp://api.ne2lix.com/catalog/Ltles/movies/60034967/languages_and_audio",  "Ltle":"hdp://api.ne2lix.com/catalog/Ltles/movies/60034967/Ltle",  "screen_formats":"hdp://api.ne2lix.com/catalog/Ltles/movies/60034967/screen_formats",  "cast":"hdp://api.ne2lix.com/catalog/Ltles/movies/60034967/cast",  "awards":"hdp://api.ne2lix.com/catalog/Ltles/movies/60034967/awards",  "short_synopsis":"hdp://api.ne2lix.com/catalog/Ltles/movies/60034967/short_synopsis",  "box_art":"hdp://api.ne2lix.com/catalog/Ltles/movies/60034967/box_art",  "synopsis":"hdp://api.ne2lix.com/catalog/Ltles/movies/60034967/synopsis",  "directors":"hdp://api.ne2lix.com/catalog/Ltles/movies/60034967/directors",  "similars":"hdp://api.ne2lix.com/catalog/Ltles/movies/60034967/similars",  "format_availability":"hdp://api.ne2lix.com/catalog/Ltles/movies/60034967/format_availability"}  }}  
  18. 18. Improve  Efficiency  of  API  Requests  Could  it  have  been  100  million  requests  per  day?  Or  less?   (Assuming  everything  else  remained  the  same)  
  19. 19. Daniel  Jacobson   djacobson@ne2lix.com   @daniel_jacobson  hdp://www.linkedin.com/in/danieljacobson  

×