SlideShare ist ein Scribd-Unternehmen logo
1 von 25
Copyright 2008 Twilio
Empower Web Developers
To build Voice Communication
  Apps that Make or Receive
 Phone Calls, using only Basic
   Web Development skills
Simple API
          Only Five Building Blocks.
              Powerful API
     Build Advanced, Useful Applications
        Pay-As-You-Go Pricing
No upfront, no commitment. Pay only for what
                  you use.
Voice Communications
           (we use every day)
             Sales Automation
               Order Inquiry
     Customer Relations Management
       Intelligent Call Distribution
         Emergency NotiïŹcation
         Appointment Reminders
                 Voicemail
Typically Costly and DifïŹcult to Build
Costly to Build
                   Telecom
                   Engineers            Tiny Workforce

                                      Specialized Skill Set
                               Only Thousands of QualiïŹed People
Voice Applications                   (Cisco CertiïŹed, etc.)
                                                               2




  $20B Market  1                Complex Open Source Options
                                     Steep Learning Curve
Commoditize the Skills
                   Telecom
                  Engineers
                 (thousands)




    Voice
Communications     Web Developers
                     Largest engineering workforce!
 $20B Market
                       Millions of Skilled Workers
                                Processes
                           Agile Development
                          Commodity Hosting
                   Existing Infrastructure Investment




            Twilio
Telecom Goo              HTTP

                           XML
                        MP3, wav, etc.


               Twilio


HARD                         EASY!
Simple API
           <Say>
                                                               <Play>
<Say>Thank you for calling XYZ Corp.</Say>

                                              <Play>http://mycompany.com/greeting.mp3</Play>

   <Record>
<Record action=’http://mycompany.com/handler.php’/>


                                                  <Gather>
                           <Gather numDigits=’1’ action=’http://mycompany.com/handler.php’ />


         <Dial>
         <Dial>415-867-5309</Dial>



                          Just 5 Building Blocks
Example:




Example:




Example:
Next Grand Central



 In 15 Lines of PHP!
Pay-As-You-Go Pricing
       3Âą                / minute


     5Âą         / minute toll free


    $5    / month per phone number


 No Contract, No Shenanigans
 Free Trial with 1000 Minutes
           Privileged and ConïŹdential
Twilio + AWS
                        S3
        Storage of Voice Recordings

                   SQS
Decouples Telecom Infrastructure from Billing

                   EC2
      Lots of CPU Intensive Services
 Handle 9-5 Peaks, Minimize Costs Off-Peak
      Pass Savings on to Customers!
                   Privileged and ConïŹdential
Twilio + AWS
                          HTTP                                                                   VoIP
                       Load Balancer                                                         Load Balancer




Web              Web                   API                            API                 VoIP               VoIP
Load Balancer    Load Balancer         Load Balancer                      Load Balancer   Load Balancer      Load Balancer




      Database          Database             Database




                                               EC2
                                             Privileged and ConïŹdential
Twilio + AWS
          Realtime Transcoding
  <Play>http://myserver.com/foo.mp3</Play>
 256kbps stereo MP3 ➜ 11khz 8bit mono ulaw

                     <Record/>
  http://api.twilio.com/..../Recordings/RE12345
http://api.twilio.com/..../Recordings/RE12345.mp3
           11khz 8bit mono wav ➜ MP3

                       EC2
                     Privileged and ConïŹdential
Twilio + AWS
                          HTTP                                                                             VoIP
                       Load Balancer                                                                   Load Balancer




Web              Web                   API                            API                       VoIP                   VoIP
Load Balancer    Load Balancer         Load Balancer                      Load Balancer             Load Balancer        Load Balancer




      Database          Database             Database                                 Media Layer          Media Layer




                                               EC2
                                             Privileged and ConïŹdential
Twilio + AWS
              Cent5
3rd Party Software for All Machines
          (Apache, MySql, HaProxy, etc.)

     Automated Build Process
                  (out of SVN)

        Rev’d Infrequently
          (Every couple months or so)



                    AMI
                    EC2
                  Privileged and ConïŹdential
Twilio + AWS
At Boot Time, Pulls Twilio Code from SVN
          (What Code to Pull?)



                 SVN
                 AMI
                 EC2
                Privileged and ConïŹdential
Twilio + AWS
               Realms:
At Boot Time, Pulls Twilio Code from SVN
            Dev, Stage, Prod
          (What Code Accounts
        Separate AWS     to Pull?)
       Completely Firewalled Off
     Credentials Access Controlled
                 SVN
                 AMI
                 EC2
                Privileged and ConïŹdential
Twilio + AWS
                SVN Externals
Each Realm has a “rootfs” in SVN
       Is overlaid on the AMI ïŹlesystem @ boottime

               svnroot/realm-conïŹg/dev/rootfs
              svnroot/realm-conïŹg/stage/rootfs
              svnroot/realm-conïŹg/prod/rootfs

Each “rootfs” has SVN Externals
         Point to various Twilio code-bases @REV
        Bump versions independently in each realm
         Bump different code bases independently

          svnroot/realm-conïŹg/dev/rootfs:
svnroot/some-codebase ➜ ./usr/local/some-codebase @HEAD
 svnroot/come-conïŹg-ïŹles ➜ ./etc/some-conïŹg-ïŹles @HEAD
         svnroot/realm-conïŹg/prod/rootfs:
svnroot/some-codebase ➜ ./usr/local/some-codebase @12345
 svnroot/come-conïŹg-ïŹles ➜ ./etc/some-conïŹg-ïŹles @12000

      (Could also use branching / tagging just as easily.)
                        Privileged and ConïŹdential
Twilio + AWS
At Boot Time, Pulls Twilio Code from SVN
          (What Code to Pull?)
svn export realm-conïŹg/$MYREALM/rootfs

   Pulls all code targeted at this realm, dropped correctly in the ïŹlesystem!



                                  SVN
                                  AMI
                                  EC2
                                 Privileged and ConïŹdential
Twilio + AWS
Launches and Destroys Instances
  Coordinates Load Balancers
     UI + Pubsub + REST

      BOXCONFIG
         SVN
         AMI
         EC2
            Privileged and ConïŹdential
Twilio + AWS
Each Instance Serves One Or More “Roles”
           Purpose of the Instance
              (VoIP, web, API, transcoding, etc.)


            Set of Init scripts
           EC2 Security Group
             Nagios Settings
          At Boot, BoxconïŹg:
          Starts Correct Services
         NotiïŹes All Load Balancers
              Updates Nagios
                        Privileged and ConïŹdential
Twilio + AWS                                               Machine Startup/Shutdown
                     BoxconïŹg                                                         1. Launch Instances
                      System           3                        PUBSUB
                                                                                      2. ConïŹgure Services per Role
                                                                          3           3. Notify Interested Load Balancers
                                   1

                          HTTP                                                                         VoIP
                       Load Balancer                                                               Load Balancer




Web              Web                   API                           API                       VoIP                 VoIP
Load Balancer    Load Balancer         Load Balancer
                                                             3        Load Balancer             Load Balancer
                                                                                                                3   Load Balancer




      Database          Database             Database                         Media Layer        Media Layer          Media Laye

                                                                                       2
                                             Privileged and ConïŹdential
EC2 Learnings
Test “Roles” on Instance Sizes
  Find optimal cost / performance tradeoff

    Great for Load Testing
 Spin up a test cluster, ïŹre trafïŹc, spin down...
               Total cost: $5-10!

  Great for Failure Testing
 Hrm, what happens if I shoot this database...
           terminateInstances()

                    Privileged and ConïŹdential
Jeff Lawson
  jeff@twilio.com

http://www.twilio.com
   Twitter: @twilio


       Privileged and ConïŹdential

Weitere Àhnliche Inhalte

Was ist angesagt?

AWS_Architecture_e-commerce
AWS_Architecture_e-commerceAWS_Architecture_e-commerce
AWS_Architecture_e-commerce
SEONGTAEK OH
 
Simplified Machine Learning Architecture with an Event Streaming Platform (Ap...
Simplified Machine Learning Architecture with an Event Streaming Platform (Ap...Simplified Machine Learning Architecture with an Event Streaming Platform (Ap...
Simplified Machine Learning Architecture with an Event Streaming Platform (Ap...
Kai WĂ€hner
 

Was ist angesagt? (20)

Microsoft power apps
Microsoft power appsMicrosoft power apps
Microsoft power apps
 
AWS_Architecture_e-commerce
AWS_Architecture_e-commerceAWS_Architecture_e-commerce
AWS_Architecture_e-commerce
 
Running & Scaling Large Elasticsearch Clusters
Running & Scaling Large Elasticsearch ClustersRunning & Scaling Large Elasticsearch Clusters
Running & Scaling Large Elasticsearch Clusters
 
Presentation On Slack
Presentation On SlackPresentation On Slack
Presentation On Slack
 
Google Vertex AI
Google Vertex AIGoogle Vertex AI
Google Vertex AI
 
Introduction to power apps
Introduction to power appsIntroduction to power apps
Introduction to power apps
 
Artificial Intelligence on AWS
Artificial Intelligence on AWSArtificial Intelligence on AWS
Artificial Intelligence on AWS
 
Whats New in Microsoft Teams Calling November 2021
Whats New in Microsoft Teams Calling November 2021Whats New in Microsoft Teams Calling November 2021
Whats New in Microsoft Teams Calling November 2021
 
Excel Fundamentals
Excel Fundamentals Excel Fundamentals
Excel Fundamentals
 
Spark NLP: State of the Art Natural Language Processing at Scale
Spark NLP: State of the Art Natural Language Processing at ScaleSpark NLP: State of the Art Natural Language Processing at Scale
Spark NLP: State of the Art Natural Language Processing at Scale
 
Using AWS IoT for Industrial Applications - AWS Online Tech Talks
Using AWS IoT for Industrial Applications - AWS Online Tech TalksUsing AWS IoT for Industrial Applications - AWS Online Tech Talks
Using AWS IoT for Industrial Applications - AWS Online Tech Talks
 
Testing Guide for SAP SuccessFactors
Testing Guide for SAP SuccessFactorsTesting Guide for SAP SuccessFactors
Testing Guide for SAP SuccessFactors
 
Simplified Machine Learning Architecture with an Event Streaming Platform (Ap...
Simplified Machine Learning Architecture with an Event Streaming Platform (Ap...Simplified Machine Learning Architecture with an Event Streaming Platform (Ap...
Simplified Machine Learning Architecture with an Event Streaming Platform (Ap...
 
Presentation on Microsoft Teams
Presentation on Microsoft Teams Presentation on Microsoft Teams
Presentation on Microsoft Teams
 
Amazon EMR Masterclass
Amazon EMR MasterclassAmazon EMR Masterclass
Amazon EMR Masterclass
 
Office 365 Sales Presentation
Office 365 Sales PresentationOffice 365 Sales Presentation
Office 365 Sales Presentation
 
Office 365 Presentation - Renato Civili, Infosoft Systems
Office 365 Presentation - Renato Civili, Infosoft SystemsOffice 365 Presentation - Renato Civili, Infosoft Systems
Office 365 Presentation - Renato Civili, Infosoft Systems
 
Introduction to Google Cloud Platform
Introduction to Google Cloud PlatformIntroduction to Google Cloud Platform
Introduction to Google Cloud Platform
 
Introduction to Node.js
Introduction to Node.jsIntroduction to Node.js
Introduction to Node.js
 
Real Time Analytics: Algorithms and Systems
Real Time Analytics: Algorithms and SystemsReal Time Analytics: Algorithms and Systems
Real Time Analytics: Algorithms and Systems
 

Andere mochten auch

Why All Industries will be Software Industries - unSexy Conference 2013 - We ...
Why All Industries will be Software Industries - unSexy Conference 2013 - We ...Why All Industries will be Software Industries - unSexy Conference 2013 - We ...
Why All Industries will be Software Industries - unSexy Conference 2013 - We ...
Twilio Inc
 
ContribuciĂłn social cat
ContribuciĂłn social catContribuciĂłn social cat
ContribuciĂłn social cat
katika1101
 

Andere mochten auch (20)

Twilio Web Service API for building Voice Applications
Twilio Web Service API for building Voice ApplicationsTwilio Web Service API for building Voice Applications
Twilio Web Service API for building Voice Applications
 
Twilio Product Overview
Twilio Product OverviewTwilio Product Overview
Twilio Product Overview
 
What Can You Do With Twilio
What Can You Do With TwilioWhat Can You Do With Twilio
What Can You Do With Twilio
 
Asynchronous Architectures for Implementing Scalable Cloud Services - Evan Co...
Asynchronous Architectures for Implementing Scalable Cloud Services - Evan Co...Asynchronous Architectures for Implementing Scalable Cloud Services - Evan Co...
Asynchronous Architectures for Implementing Scalable Cloud Services - Evan Co...
 
Scaling Twilio - Evan Cooke - Twilio Conference 2011
Scaling Twilio - Evan Cooke - Twilio Conference 2011Scaling Twilio - Evan Cooke - Twilio Conference 2011
Scaling Twilio - Evan Cooke - Twilio Conference 2011
 
Twiliobot at Google Wave Meetup 2009-09-14
Twiliobot at Google Wave Meetup 2009-09-14Twiliobot at Google Wave Meetup 2009-09-14
Twiliobot at Google Wave Meetup 2009-09-14
 
Why All Industries will be Software Industries - unSexy Conference 2013 - We ...
Why All Industries will be Software Industries - unSexy Conference 2013 - We ...Why All Industries will be Software Industries - unSexy Conference 2013 - We ...
Why All Industries will be Software Industries - unSexy Conference 2013 - We ...
 
Twilio Messaging: Overview and New Feature Deep Dive
Twilio Messaging: Overview and New Feature Deep DiveTwilio Messaging: Overview and New Feature Deep Dive
Twilio Messaging: Overview and New Feature Deep Dive
 
Open Source Software Business Model
Open Source Software Business Model Open Source Software Business Model
Open Source Software Business Model
 
Productizing Twilio Applications
Productizing Twilio ApplicationsProductizing Twilio Applications
Productizing Twilio Applications
 
Twilio Contact Center Overview
Twilio Contact Center OverviewTwilio Contact Center Overview
Twilio Contact Center Overview
 
Why Mobile Messaging Works?
Why Mobile Messaging Works?Why Mobile Messaging Works?
Why Mobile Messaging Works?
 
How To Track Calls Using Twilio?
How To Track Calls Using Twilio?How To Track Calls Using Twilio?
How To Track Calls Using Twilio?
 
High-Availability Infrastructure in the Cloud - Evan Cooke - Web 2.0 Expo NYC...
High-Availability Infrastructure in the Cloud - Evan Cooke - Web 2.0 Expo NYC...High-Availability Infrastructure in the Cloud - Evan Cooke - Web 2.0 Expo NYC...
High-Availability Infrastructure in the Cloud - Evan Cooke - Web 2.0 Expo NYC...
 
BoletĂ­n TĂ©cnico colec. Junio 2014
BoletĂ­n TĂ©cnico colec. Junio  2014BoletĂ­n TĂ©cnico colec. Junio  2014
BoletĂ­n TĂ©cnico colec. Junio 2014
 
ContribuciĂłn social cat
ContribuciĂłn social catContribuciĂłn social cat
ContribuciĂłn social cat
 
Retour de SxSW 2015 - La Netscouade
Retour de SxSW 2015 - La NetscouadeRetour de SxSW 2015 - La Netscouade
Retour de SxSW 2015 - La Netscouade
 
Eigenstudie meinungsraum.at Urlaub
Eigenstudie meinungsraum.at UrlaubEigenstudie meinungsraum.at Urlaub
Eigenstudie meinungsraum.at Urlaub
 
Elcorondel067 oks
Elcorondel067 oksElcorondel067 oks
Elcorondel067 oks
 
DiĂĄlogos desde el autismo.
DiĂĄlogos desde el autismo.DiĂĄlogos desde el autismo.
DiĂĄlogos desde el autismo.
 

Ähnlich wie Twilio Voice Applications with Amazon AWS S3 and EC2

Lsm2010 os-ubuntu-cloud
Lsm2010 os-ubuntu-cloudLsm2010 os-ubuntu-cloud
Lsm2010 os-ubuntu-cloud
kbour23
 

Ähnlich wie Twilio Voice Applications with Amazon AWS S3 and EC2 (20)

AWS Customer Presentation - Twilio
AWS Customer Presentation - TwilioAWS Customer Presentation - Twilio
AWS Customer Presentation - Twilio
 
Mastering Kubernetes on AWS (CON301-R1) - AWS re:Invent 2018
Mastering Kubernetes on AWS (CON301-R1) - AWS re:Invent 2018Mastering Kubernetes on AWS (CON301-R1) - AWS re:Invent 2018
Mastering Kubernetes on AWS (CON301-R1) - AWS re:Invent 2018
 
Lessons learned migrating 100+ services to Kubernetes
Lessons learned migrating 100+ services to KubernetesLessons learned migrating 100+ services to Kubernetes
Lessons learned migrating 100+ services to Kubernetes
 
Builders' Day- Mastering Kubernetes on AWS
Builders' Day- Mastering Kubernetes on AWSBuilders' Day- Mastering Kubernetes on AWS
Builders' Day- Mastering Kubernetes on AWS
 
01 introduction
01 introduction01 introduction
01 introduction
 
Terraform
TerraformTerraform
Terraform
 
Building a Great Web API - Evan Cooke - QCON 2011
Building a Great Web API - Evan Cooke - QCON 2011Building a Great Web API - Evan Cooke - QCON 2011
Building a Great Web API - Evan Cooke - QCON 2011
 
2012 05 confess_camel_cloud_integration
2012 05 confess_camel_cloud_integration2012 05 confess_camel_cloud_integration
2012 05 confess_camel_cloud_integration
 
Continuous Integration and Deployment Best Practices on AWS
Continuous Integration and Deployment Best Practices on AWSContinuous Integration and Deployment Best Practices on AWS
Continuous Integration and Deployment Best Practices on AWS
 
Lsm2010 os-ubuntu-cloud
Lsm2010 os-ubuntu-cloudLsm2010 os-ubuntu-cloud
Lsm2010 os-ubuntu-cloud
 
Razorfish Technology Summit 2012 - Introduction
Razorfish Technology Summit 2012 - IntroductionRazorfish Technology Summit 2012 - Introduction
Razorfish Technology Summit 2012 - Introduction
 
Twilio - Social App Workshop - 2010-07-24
Twilio - Social App Workshop - 2010-07-24Twilio - Social App Workshop - 2010-07-24
Twilio - Social App Workshop - 2010-07-24
 
C# Client to Cloud
C# Client to CloudC# Client to Cloud
C# Client to Cloud
 
AWS Core Services Overview, Immersion Day Huntsville 2019
AWS Core Services Overview, Immersion Day Huntsville 2019AWS Core Services Overview, Immersion Day Huntsville 2019
AWS Core Services Overview, Immersion Day Huntsville 2019
 
Getting Started with Containers on AWS: Collision 2018
Getting Started with Containers on AWS: Collision 2018Getting Started with Containers on AWS: Collision 2018
Getting Started with Containers on AWS: Collision 2018
 
Amazon ECS (December 2015)
Amazon ECS (December 2015)Amazon ECS (December 2015)
Amazon ECS (December 2015)
 
Serverless Computing, AWS Way by SourceFuse Technologies
Serverless Computing, AWS Way by SourceFuse Technologies Serverless Computing, AWS Way by SourceFuse Technologies
Serverless Computing, AWS Way by SourceFuse Technologies
 
Serverless Computing, AWS Way: SourceFuse Technologies
Serverless Computing, AWS Way: SourceFuse Technologies Serverless Computing, AWS Way: SourceFuse Technologies
Serverless Computing, AWS Way: SourceFuse Technologies
 
Spring Boot & Spring Cloud on Pivotal Application Service
Spring Boot & Spring Cloud on Pivotal Application ServiceSpring Boot & Spring Cloud on Pivotal Application Service
Spring Boot & Spring Cloud on Pivotal Application Service
 
Lessons learned while going Serverless in production
Lessons learned while going Serverless in productionLessons learned while going Serverless in production
Lessons learned while going Serverless in production
 

Mehr von Twilio Inc

Mehr von Twilio Inc (20)

Building Blocks for Next Generation Contact Centers
Building Blocks for Next Generation Contact CentersBuilding Blocks for Next Generation Contact Centers
Building Blocks for Next Generation Contact Centers
 
Create an IVR that Keeps Up with Your Customers
Create an IVR that Keeps Up with Your CustomersCreate an IVR that Keeps Up with Your Customers
Create an IVR that Keeps Up with Your Customers
 
Salesforce’s Andy Kung on the Power of CRM Integrations
 Salesforce’s Andy Kung on the Power of CRM Integrations Salesforce’s Andy Kung on the Power of CRM Integrations
Salesforce’s Andy Kung on the Power of CRM Integrations
 
All Web Leads’ Lorena Lauv on How to Scale a Virtual Call Center
All Web Leads’ Lorena Lauv on How to Scale a Virtual Call CenterAll Web Leads’ Lorena Lauv on How to Scale a Virtual Call Center
All Web Leads’ Lorena Lauv on How to Scale a Virtual Call Center
 
Understand How Consumers Use Messaging
Understand How Consumers Use MessagingUnderstand How Consumers Use Messaging
Understand How Consumers Use Messaging
 
Twilio Signal 2016 WebRTC Reborn
Twilio Signal 2016 WebRTC RebornTwilio Signal 2016 WebRTC Reborn
Twilio Signal 2016 WebRTC Reborn
 
Twilio Signal 2016 Using Add-ons
Twilio Signal 2016 Using Add-onsTwilio Signal 2016 Using Add-ons
Twilio Signal 2016 Using Add-ons
 
Twilio Signal 2016 Technical Blogging
Twilio Signal 2016 Technical Blogging Twilio Signal 2016 Technical Blogging
Twilio Signal 2016 Technical Blogging
 
Twilio Signal 2016 Serverless Contact Center
Twilio Signal 2016 Serverless Contact CenterTwilio Signal 2016 Serverless Contact Center
Twilio Signal 2016 Serverless Contact Center
 
Twilio Signal 2016 Robots-IoT-Watson-Cognitive + Twilio
Twilio Signal 2016 Robots-IoT-Watson-Cognitive + TwilioTwilio Signal 2016 Robots-IoT-Watson-Cognitive + Twilio
Twilio Signal 2016 Robots-IoT-Watson-Cognitive + Twilio
 
Twilio Signal 2016 Leading An Open Hardware Revolution
Twilio Signal 2016 Leading An Open Hardware RevolutionTwilio Signal 2016 Leading An Open Hardware Revolution
Twilio Signal 2016 Leading An Open Hardware Revolution
 
Twilio Signal 2016 IoT Using LittleBits and Twilio SMS
Twilio Signal 2016 IoT Using LittleBits and Twilio SMSTwilio Signal 2016 IoT Using LittleBits and Twilio SMS
Twilio Signal 2016 IoT Using LittleBits and Twilio SMS
 
Twilio Signal 2016 Chaos Patterns
Twilio Signal 2016 Chaos PatternsTwilio Signal 2016 Chaos Patterns
Twilio Signal 2016 Chaos Patterns
 
Twilio Signal 2016 How to Impact Non-profits
Twilio Signal 2016 How to Impact Non-profits Twilio Signal 2016 How to Impact Non-profits
Twilio Signal 2016 How to Impact Non-profits
 
Twilio Signal 2016 Bringing P2P to the Masses with WebRTC
Twilio Signal 2016 Bringing P2P to the Masses with WebRTCTwilio Signal 2016 Bringing P2P to the Masses with WebRTC
Twilio Signal 2016 Bringing P2P to the Masses with WebRTC
 
Twilio Signal 2016 Listing Services and Lead Generation
Twilio Signal 2016 Listing Services and Lead GenerationTwilio Signal 2016 Listing Services and Lead Generation
Twilio Signal 2016 Listing Services and Lead Generation
 
Twilio Signal 2016 Bots
Twilio Signal 2016 BotsTwilio Signal 2016 Bots
Twilio Signal 2016 Bots
 
Twilio Signal 2016 Taking Your SMS App Global
Twilio Signal 2016 Taking Your SMS App GlobalTwilio Signal 2016 Taking Your SMS App Global
Twilio Signal 2016 Taking Your SMS App Global
 
Twilio Signal 2016 Real-time Communications Overview
Twilio Signal 2016 Real-time Communications OverviewTwilio Signal 2016 Real-time Communications Overview
Twilio Signal 2016 Real-time Communications Overview
 
Twilio Signal 2016 Omni-channel Routing Bots
Twilio Signal 2016 Omni-channel Routing BotsTwilio Signal 2016 Omni-channel Routing Bots
Twilio Signal 2016 Omni-channel Routing Bots
 

KĂŒrzlich hochgeladen

unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
Abortion pills in Kuwait Cytotec pills in Kuwait
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
dollysharma2066
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
Matteo Carbone
 
Call Girls In DLf Gurgaon ➄99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➄99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➄99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➄99902@11544 ( Best price)100% Genuine Escort In 24...
lizamodels9
 
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 
Russian Call Girls In Gurgaon ❀8448577510 âŠčBest Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❀8448577510 âŠčBest Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❀8448577510 âŠčBest Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❀8448577510 âŠčBest Escorts Service In 24/7 Delh...
lizamodels9
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
Renandantas16
 

KĂŒrzlich hochgeladen (20)

The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
 
A DAY IN THE LIFE OF A SALESMAN / WOMAN
A DAY IN THE LIFE OF A  SALESMAN / WOMANA DAY IN THE LIFE OF A  SALESMAN / WOMAN
A DAY IN THE LIFE OF A SALESMAN / WOMAN
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
 
Regression analysis: Simple Linear Regression Multiple Linear Regression
Regression analysis:  Simple Linear Regression Multiple Linear RegressionRegression analysis:  Simple Linear Regression Multiple Linear Regression
Regression analysis: Simple Linear Regression Multiple Linear Regression
 
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfDr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
 
HONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael HawkinsHONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael Hawkins
 
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 
John Halpern sued for sexual assault.pdf
John Halpern sued for sexual assault.pdfJohn Halpern sued for sexual assault.pdf
John Halpern sued for sexual assault.pdf
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
 
It will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayIt will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 May
 
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...
 
Call Girls In DLf Gurgaon ➄99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➄99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➄99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➄99902@11544 ( Best price)100% Genuine Escort In 24...
 
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Russian Call Girls In Gurgaon ❀8448577510 âŠčBest Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❀8448577510 âŠčBest Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❀8448577510 âŠčBest Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❀8448577510 âŠčBest Escorts Service In 24/7 Delh...
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
 
RSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataRSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors Data
 
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
 

Twilio Voice Applications with Amazon AWS S3 and EC2

  • 2. Empower Web Developers To build Voice Communication Apps that Make or Receive Phone Calls, using only Basic Web Development skills
  • 3. Simple API Only Five Building Blocks. Powerful API Build Advanced, Useful Applications Pay-As-You-Go Pricing No upfront, no commitment. Pay only for what you use.
  • 4. Voice Communications (we use every day) Sales Automation Order Inquiry Customer Relations Management Intelligent Call Distribution Emergency NotiïŹcation Appointment Reminders Voicemail Typically Costly and DifïŹcult to Build
  • 5. Costly to Build Telecom Engineers Tiny Workforce Specialized Skill Set Only Thousands of QualiïŹed People Voice Applications (Cisco CertiïŹed, etc.) 2 $20B Market 1 Complex Open Source Options Steep Learning Curve
  • 6. Commoditize the Skills Telecom Engineers (thousands) Voice Communications Web Developers Largest engineering workforce! $20B Market Millions of Skilled Workers Processes Agile Development Commodity Hosting Existing Infrastructure Investment Twilio
  • 7. Telecom Goo HTTP XML MP3, wav, etc. Twilio HARD EASY!
  • 8. Simple API <Say> <Play> <Say>Thank you for calling XYZ Corp.</Say> <Play>http://mycompany.com/greeting.mp3</Play> <Record> <Record action=’http://mycompany.com/handler.php’/> <Gather> <Gather numDigits=’1’ action=’http://mycompany.com/handler.php’ /> <Dial> <Dial>415-867-5309</Dial> Just 5 Building Blocks
  • 10. Next Grand Central In 15 Lines of PHP!
  • 11. Pay-As-You-Go Pricing 3Âą / minute 5Âą / minute toll free $5 / month per phone number No Contract, No Shenanigans Free Trial with 1000 Minutes Privileged and ConïŹdential
  • 12. Twilio + AWS S3 Storage of Voice Recordings SQS Decouples Telecom Infrastructure from Billing EC2 Lots of CPU Intensive Services Handle 9-5 Peaks, Minimize Costs Off-Peak Pass Savings on to Customers! Privileged and ConïŹdential
  • 13. Twilio + AWS HTTP VoIP Load Balancer Load Balancer Web Web API API VoIP VoIP Load Balancer Load Balancer Load Balancer Load Balancer Load Balancer Load Balancer Database Database Database EC2 Privileged and ConïŹdential
  • 14. Twilio + AWS Realtime Transcoding <Play>http://myserver.com/foo.mp3</Play> 256kbps stereo MP3 ➜ 11khz 8bit mono ulaw <Record/> http://api.twilio.com/..../Recordings/RE12345 http://api.twilio.com/..../Recordings/RE12345.mp3 11khz 8bit mono wav ➜ MP3 EC2 Privileged and ConïŹdential
  • 15. Twilio + AWS HTTP VoIP Load Balancer Load Balancer Web Web API API VoIP VoIP Load Balancer Load Balancer Load Balancer Load Balancer Load Balancer Load Balancer Database Database Database Media Layer Media Layer EC2 Privileged and ConïŹdential
  • 16. Twilio + AWS Cent5 3rd Party Software for All Machines (Apache, MySql, HaProxy, etc.) Automated Build Process (out of SVN) Rev’d Infrequently (Every couple months or so) AMI EC2 Privileged and ConïŹdential
  • 17. Twilio + AWS At Boot Time, Pulls Twilio Code from SVN (What Code to Pull?) SVN AMI EC2 Privileged and ConïŹdential
  • 18. Twilio + AWS Realms: At Boot Time, Pulls Twilio Code from SVN Dev, Stage, Prod (What Code Accounts Separate AWS to Pull?) Completely Firewalled Off Credentials Access Controlled SVN AMI EC2 Privileged and ConïŹdential
  • 19. Twilio + AWS SVN Externals Each Realm has a “rootfs” in SVN Is overlaid on the AMI ïŹlesystem @ boottime svnroot/realm-conïŹg/dev/rootfs svnroot/realm-conïŹg/stage/rootfs svnroot/realm-conïŹg/prod/rootfs Each “rootfs” has SVN Externals Point to various Twilio code-bases @REV Bump versions independently in each realm Bump different code bases independently svnroot/realm-conïŹg/dev/rootfs: svnroot/some-codebase ➜ ./usr/local/some-codebase @HEAD svnroot/come-conïŹg-ïŹles ➜ ./etc/some-conïŹg-ïŹles @HEAD svnroot/realm-conïŹg/prod/rootfs: svnroot/some-codebase ➜ ./usr/local/some-codebase @12345 svnroot/come-conïŹg-ïŹles ➜ ./etc/some-conïŹg-ïŹles @12000 (Could also use branching / tagging just as easily.) Privileged and ConïŹdential
  • 20. Twilio + AWS At Boot Time, Pulls Twilio Code from SVN (What Code to Pull?) svn export realm-conïŹg/$MYREALM/rootfs Pulls all code targeted at this realm, dropped correctly in the ïŹlesystem! SVN AMI EC2 Privileged and ConïŹdential
  • 21. Twilio + AWS Launches and Destroys Instances Coordinates Load Balancers UI + Pubsub + REST BOXCONFIG SVN AMI EC2 Privileged and ConïŹdential
  • 22. Twilio + AWS Each Instance Serves One Or More “Roles” Purpose of the Instance (VoIP, web, API, transcoding, etc.) Set of Init scripts EC2 Security Group Nagios Settings At Boot, BoxconïŹg: Starts Correct Services NotiïŹes All Load Balancers Updates Nagios Privileged and ConïŹdential
  • 23. Twilio + AWS Machine Startup/Shutdown BoxconïŹg 1. Launch Instances System 3 PUBSUB 2. ConïŹgure Services per Role 3 3. Notify Interested Load Balancers 1 HTTP VoIP Load Balancer Load Balancer Web Web API API VoIP VoIP Load Balancer Load Balancer Load Balancer 3 Load Balancer Load Balancer 3 Load Balancer Database Database Database Media Layer Media Layer Media Laye 2 Privileged and ConïŹdential
  • 24. EC2 Learnings Test “Roles” on Instance Sizes Find optimal cost / performance tradeoff Great for Load Testing Spin up a test cluster, ïŹre trafïŹc, spin down... Total cost: $5-10! Great for Failure Testing Hrm, what happens if I shoot this database... terminateInstances() Privileged and ConïŹdential
  • 25. Jeff Lawson jeff@twilio.com http://www.twilio.com Twitter: @twilio Privileged and ConïŹdential