• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
API Days 2012 - 1 billion SMS through an API !
 

API Days 2012 - 1 billion SMS through an API !

on

  • 533 views

I gave this presentation at the API Days conference on Dec 3rd 2012 ...

I gave this presentation at the API Days conference on Dec 3rd 2012

Once upon a time, people wanted to send a billion SMS per month through an API ... This session will tell you the story of how this can be achieved.
Taking example on the design behind the apiGrove opensource project, you will hear about the under the hood technology details relating to API policy distribution across large scale clusters of API gateways. In the cloud. With throughput above tens of thousands transactions per second. With high availability and high accuracy in rate limit enforcement.

Statistics

Views

Total Views
533
Views on SlideShare
490
Embed Views
43

Actions

Likes
2
Downloads
0
Comments
0

2 Embeds 43

http://eventifier.co 42
http://localhost 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    API Days 2012 - 1 billion SMS through an API ! API Days 2012 - 1 billion SMS through an API ! Presentation Transcript

    • American  Idol  :  The  tale  of  1  Billion  SMS  /  month   through  an  API   Guilhem  Ensuque   @apigrove   #apidays  
    • How  it  started   •  10s  of  millions  of  viewers   •  Worldwide  franchise   •  Vote  by  SMS   •  2-­‐hour  window  to  vote     •  Through  an  API  
    • The  Big  Picture  
    • Mission  :  Impossible  •  Replace  legacy  system  in  <  1  year  •  99.999%  reliability  (5  mins  downSme  /  year)  •  American  Idol-­‐scale   –  Peak  throughput  =  20,000  TPS   –  Average  volume  =  1  billion  messages  /  month  •  Secure  •  In  the  cloud  
    • Key  decisions  •  Code  fast,  show  results  early  •  Open  Source  2-­‐ways  •  K.I.S.S.  :  meter  /  protect  /  scale  •  Integrate  easily  in  bigger  system  through  …                                APIs  
    • OpSons  vs  Challenges   Web  Proxy  (ligh2pd)     ESB  (Fuse)   +     +   Custom  C/C++   Custom  Java            Performance                 Dev.  Time      
    • Technology    •  Choosing  a  technology  is  important  …    •  …  unSl  you  find  a  be^er  one          DON’T  BE  RELIGIOUS  •  “Business”  code  is  middleware-­‐agnosSc      
    • Policy  Model   AUTH API - authId-apiId - status-endpoint - type-type - key-validationType - username-authenticationTypes - password-nbRequestCertificate - policyContext id-notificationFlag - apiContext id-contexts - id - status auths0 : ..* - targetHosts - sbRequestsType - sbRequestsCredentials - maxRateLimits apis 0 : ..* POLICY - policyId - contexts - id - status - quotas - rateLimits
    • E3Route Camel  Pipeline   HTTP Request Jetty%Camel Validation Auth0Manager Rates0Quatas Custom <jetty> <validate> <auth> <rates0quotas> <other> Client TargetHostApplication OK Exception Service Error Gateway%Error% Processor Status% Error%TDR Billing%TDR TDR Tdr0Lib <TDR%Queue> Emit%tdr File% System !
    • Clustering  
    • Hard  Stuff:  Rate  limits  Sync  •  How  to  sync  rate  limits  data  ?  •  Main  difficulty:  large  cluster  (40  instances)  •  SoluSon  :  Speaker  Manager  +  maths  
    • Wrap  Up  /  Q&As   guilhem.ensuque@alcatel-­‐lucent.com     Twi^er:  @gensuque_alu         h^p://apigrove.net     h^p://github.com/apigrove/apigrove