Page 1
WSO2 Practical Guide to API Management Webinar
Monitoring API Performance and Delivering
Scalable API Solutions
© WSO2 2012. Not for redistribution. Commercial in Confidence.
Asanka Abeysinghe - Director, Solutions Architecture, WSO2
Tharindu Mathew - Associate Technical Lead, WSO2
Page 2
Practical Guide to API Management Webinar Series
Page 3
Requirement for Scalable API Solutions - Architecture
- (ONLY) Business functionality execution point
- Business (functionality) as a Service
- High business demand
- Subscription model
- Unknown consumers / Applications
- Unknown usage
- SLAs (Service Level Agreements)
- Market driven usage patterns
Picture Credit : http://london2012.photos.usatoday.com/
Page 4
Middleware for Scalable Solutions
Picture Credit : /http://www.london2012.com//
Page 5
API Façade Pattern – cont..
External Format (Demand)
Façade
Mediation
Backend Services
Page 6
API Façade Pattern – Generic Pattern
External Format (Demand)
Façade
Mediation
Backend Services
Façade + Mediation
Page 7
API Façade Pattern – WSO2 recommended architecture
External Format (Demand)
Façade
Mediation
Backend Services
Façade
Mediation
Page 8
API Façade Pattern – WSO2 Implementation
External Format (Demand)
Backend Services
Façade
Mediation
Page 9
Oth
er
Serv
ice
Conta
iners
Ext API
(Demand)
API Façade
Mediation /
Service Virtualization /
Orchestration
Service
Platforms
API Façade Pattern – WSO2 Implementation extended
Page 10
API Façade Pattern – WSO2 Implementation BIG PICTURE
Page 11
API Management Platform Layered Architecture
- Invoke the API: API Gateway
- Secure : API Auth Server
- Look-up, Subscribe : API Store
- Govern, LCM : API Publisher
- Monitor : API Analytics Platform
Page 12
API Gateway
API Store
API Publisher
API Auth Server
API Analytics
Platform
RDBMS
(G-Reg +Analytics)2.0
BAM-2.0 Data Collector
BAM-2.0 Analytics + Dashboard
BAM-2.0 Data Store
Load Balancer
Ext LB
Ext
Analytics2.0
WSO2 API Manager Platform – Component Architecture
Ext Auth
Page 13
Capacity Planning – Facts Matrix
Component Capacity Planning Guidelines
API Gateway Peak load of the API calls
Auth Server Peak load of the API calls
API Store Peak load of the subscriptions and browsing
API Publisher Peak load of the API publishing and LCM tasks
Analytics System load of the API calls
Page 14
Deployment Pattern : Minimum with internal store
Page 15
Deployment Pattern : Minimum with external store
Page 16
Deployment Pattern : Extend to scale
Page 17
Deployment Pattern : as an internal API solution
Page 18
Data to Scale : API Statistics
Picture Credit : http://www.mta.info/
Page 19
WSO2 BAM Workshop : Palo Alto
Page 20
More Info
Corporate website: http://wso2.com
Solution Architecture Blog: http://wso2.com/blogs/architecture/
Business development team: [email protected]
Asanka Abeysinghe
Blog : http://asanka.abeysinghe.org
Twitter : @asankama
Tharindu Mathew
Blog : http://tharindumathew.com/
Twitter : @mccloud35
Page 21
21
lean . enterprise . middleware
Page 22
Monitoring API Performance and Delivering a
Scalable API Solution
Page 23
The feedback cycle
Gather API data
Slice and Dice
Decide
Adjust parameters
Page 24
Recap
• Monitoring stats available - http://bit.ly/SFepPt
• Usage data such as number of hits, subscriptions, access time already
gathered
Page 25
Gathering API data
• What if you want custom data off of API requests?
• Plug-in a monitoring extension – mediator
• Net total of each order – total=259
API Manager
BAM
Page 26
Slice and Dice
• Customers who have placed orders above 2 mil USD
• Select customer_name, sum(order_amount) from Orders groupby
customer_name
Customer_name Sum(order_amount)
Coyote 2,332,223
Acme 10,654,333
Page 28
Decide (cont.)
• Check for trends
• Compare past resutls
• Get help with Reporting & Dashboards
Page 29
Adjust parameters
Page 30
Adjust parameters (cont.)
• Increase server capacity
• Increase redundancy
• Retire APIs
• Introduce new versions
Page 31
Summary
• Create an effective feedback cycle
• Get proper alerts and dashboards in place
• Tune your APIs for maximum performance