Patterns for Mobile and IoT backends with serverless paradigms
Bringing API Management to AWS Powered Backends
-
Upload
apigee-google-cloud -
Category
Technology
-
view
3.139 -
download
1
Transcript of Bringing API Management to AWS Powered Backends
©2015 Apigee Corp. All Rights Reserved.
Agenda!
• API Management Background !• Reference Architecture !• Special AWS Use Cases !• Demo !
5
©2015 Apigee Corp. All Rights Reserved.
What is API Management ?!(hints : its more than an API gateway)!
©2015 Apigee Corp. All Rights Reserved.
Management of entire API lifecycle!
8 8
Design
Develop
Secure
Publish Monitor
Analyze
Monetize
Scale
©2015 Apigee Corp. All Rights Reserved.
Apigee / AWS Reference Architecture!
9
Apigee Gateway
AWS IAM protected Services
Analytics Dev Portal
API Health …. AWS
Lambda
Amazon EC2
Amazon"S3
Amazon API Gateway
Amazon"SQS
Amazon"RDS
Amazon"DynamoDB Amazon"
SNS
AWS SSL protected Services
Apigee Edge
3rd Party Apps
©2015 Apigee Corp. All Rights Reserved.
AWS Lambda Introduction!
10
EVENT-DRIVEN SCALE SERVERLESS SUBSECOND BILLING
©2015 Apigee Corp. All Rights Reserved.
BRING YOUR OWN CODE SIMPLE RESOURCE MODEL
FLEXIBLE INVOCATION PATHS GRANULAR PERMISSIONS CONTROL
AWS Lambda Benefits!
©2015 Apigee Corp. All Rights Reserved.
AUTHORING STATELESS
DEPLOYMENT MONITORING & LOGGING
AWS Lambda Benefits!
©2015 Apigee Corp. All Rights Reserved.
Why Apigee Edge!Design
©2015 Apigee. All Rights Reserved. 13
Design first. Document Smart. Full support for Swagger 2.0 !!
Build more consumable APIs!
14 ©2015 Apigee. All Rights Reserved.
©2015 Apigee Corp. All Rights Reserved.
Why Apigee Edge!
©2015 Apigee. All Rights Reserved. 15
Develop
Secure
Config - Over 30 ready-to-use and configurable policies !Code - Built-in support for Node, JavaScript and Java extensibility !
!
Build APIs faster!
16 ©2015 Apigee. All Rights Reserved.
Manage interactions with API consumers and optimize performance
Secure APIs and protect back-end systems from attack
Transform, translate and reformat data for easy consumption Extend with
programming when you need it
End-to-end security !PCI and HIPAA compliance !
Secure all points of engagement!
17 ©2015 Apigee. All Rights Reserved.
Users Connected Experience
Developers APIs API Team Back-end
Mutual TLS IP Access Control Southbound VPN
RBAC AD / LDAP
Audit
OAuth2 Quotas
Spike Arrest Threat Protection
Intrusion Detection Bot Detection
Access"Block
Revoke SSO
RBAC
API key OAuth2
Mutual TLS
OAuth2 MFA
Federated Login IP Access Control
©2015 Apigee Corp. All Rights Reserved.
Why Apigee Edge!
©2015 Apigee. All Rights Reserved. 18
Publish
Turnkey developer portal !!
Make it easy for developers to use your APIs!
19 ©2015 Apigee. All Rights Reserved.
Automatic or manual registration
Self-service app key requests Self-documenting
“Reduced time to first app from 4 weeks to 6 hours.”
- Online Education Provider
©2015 Apigee Corp. All Rights Reserved.
Why Apigee Edge!
©2015 Apigee. All Rights Reserved. 20
Scale
Apigee Black Friday Holiday Traffic
4x scale year/year
Scaled 2x within 2 hours
Zero impact to all other customers
Billions of API calls, including large spikes, processed regularly without disruption !!
Support web-scale mission-critical operations!
21 ©2015 Apigee. All Rights Reserved.
API requests handled: 102B+
Servers managed: 3000+
Apigee Cloud Stats 2014
Apigee Cloud Runs on AWS Everywhere!
22 ©2015 Apigee. All Rights Reserved.
Apigee Cloud 8 regions
>99.9%"API availability
19 availability zones
3,000+"servers
~1/2 billion"transactions / day
~20 ms"average latency
AWS Scalability = Apigee Scalability !
©2015 Apigee Corp. All Rights Reserved.
Apigee Components & Features!
23
Design Swagger Editor
Develop API Gateway Microgateway Swagger-Node Framework
Secure API Gateway Microgateway Apigee Sense (Bot Detection)
Publish • Turnkey Developer Portal • Smart (Interactive) Docs
MonitorAPI APM
Mobile APM API Health (Synthetic transaction
Monitoring)
Analyze App & API Analytics Developer Analytics
Custom Reports
Monetize
Scale Multi-Region Deployments Apigee Distributed Network
©2015 Apigee Corp. All Rights Reserved.
Why Apigee Edge!
©2015 Apigee. All Rights Reserved. 24
Monitor
Analyze
Complete visibility– from app end to backend !Automatically and continuously collect all data about your API traffic out of the box !
!
Gain visibility into the entire digital value chain!
25 ©2015 Apigee. All Rights Reserved.
API Analytics Developer Analytics App Analytics User Backend • API Traffic Patterns • API Performance • Geo location • Anomalies • Multiple metrics – traffic, response times, errors, data exchange, etc.
• Top Developers • Developer Engagement • Top API Users • Top Products • Top Apps
• App Performance • App Usage • API Performance • Filter by app version, device, platform, OS, etc.
Relevant, Actionable and Extensible"Dashboards, Tools & Custom Reports
©2015 Apigee Corp. All Rights Reserved.
Why Apigee Edge!
©2015 Apigee. All Rights Reserved. 26
Monetize
Flexible rate plans, internationalization support, usage tracking, limits and notifications !
Monetize APIs: Any partner, any business model!
27 ©2015 Apigee. All Rights Reserved.
Fixed
Flexible
Hybrid"(flat fee plus fixed and flexible)
Duration
Quantity
Hybrid
Revenue-sharing models"(API provider charges developer)
Fee-based models"(API provider charges developer) Freemium models
Transaction Volume
Custom Attribute
Revenue / Volume Bands
One-time
Advance / Arrears
Pro-rated / Full amount
Transaction
Subscription
©2015 Apigee Corp. All Rights Reserved.
• Design APIs with Swagger !
• Use Node.js & a127 framework !
• Use Apigee Vault for Tokens !
• Map Errors to HTTP Codes !
Exposing AWS Lambda!
29
AWS Lambda
IAM
Apigee Gateway
©2015 Apigee Corp. All Rights Reserved.
• Turn on Streaming for large files !
• Use Presigned URL generator SDK for files > 10 MB !
Exposing Amazon S3!
30
Amazon"S3 Streaming
Apigee Gateway
©2015 Apigee Corp. All Rights Reserved.
• Use Volos RDBMS Connector !
!
Exposing Amazon Relational Database Service!
31
Amazon"RDS
Apigee Gateway
SSL
©2015 Apigee Corp. All Rights Reserved.
Using Apigee & AWS API Gateway!
32
Apigee Gateway
AWS IAM protected Services
AWS Lambda
Amazon EC2
Amazon"S3
Amazon API Gateway
Amazon"SQS
Amazon"RDS
Amazon"DynamoDB Amazon"
SNS
AWS SSL protected Services
Apigee Edge
Amazon API Gateway
Dev Portal
3rd Party Apps
( < 20ms)
©2015 Apigee Corp. All Rights Reserved.
Example B2B Customer!
33
Autoscaling
AWS Lambda
Elastic Beanstalk
Amazon"S3 Amazon"
SQS
Amazon"DynamoDB
Amazon"SNS
3rd Party Apps
Apigee Gateway
Apigee Edge
Dev Portal
Elastic Beanstalk
Legacy Datacenter
API BaaS
©2015 Apigee Corp. All Rights Reserved.
Apigee & AWS Solutions Page:!!apigee.com/about/solutions/amazon-web-services-solution!
34