32
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

Monitoring API Performance and Delivering a Scalable API Solution

  • Upload
    wso2

  • View
    1.083

  • Download
    0

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Monitoring API Performance and Delivering a Scalable API Solution

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: Monitoring API Performance and Delivering a Scalable API Solution

Practical Guide to API Management Webinar Series

Page 3: Monitoring API Performance and Delivering a Scalable API Solution

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: Monitoring API Performance and Delivering a Scalable API Solution

Middleware for Scalable Solutions

Picture Credit : /http://www.london2012.com//

Page 5: Monitoring API Performance and Delivering a Scalable API Solution

API Façade Pattern – cont..

External Format (Demand)

Façade

Mediation

Backend Services

Page 6: Monitoring API Performance and Delivering a Scalable API Solution

API Façade Pattern – Generic Pattern

External Format (Demand)

Façade

Mediation

Backend Services

Façade + Mediation

Page 7: Monitoring API Performance and Delivering a Scalable API Solution

API Façade Pattern – WSO2 recommended architecture

External Format (Demand)

Façade

Mediation

Backend Services

Façade

Mediation

Page 8: Monitoring API Performance and Delivering a Scalable API Solution

API Façade Pattern – WSO2 Implementation

External Format (Demand)

Backend Services

Façade

Mediation

Page 9: Monitoring API Performance and Delivering a Scalable API Solution

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: Monitoring API Performance and Delivering a Scalable API Solution

API Façade Pattern – WSO2 Implementation BIG PICTURE

Page 11: Monitoring API Performance and Delivering a Scalable API Solution

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: Monitoring API Performance and Delivering a Scalable API Solution

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: Monitoring API Performance and Delivering a Scalable API Solution

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: Monitoring API Performance and Delivering a Scalable API Solution

Deployment Pattern : Minimum with internal store

Page 15: Monitoring API Performance and Delivering a Scalable API Solution

Deployment Pattern : Minimum with external store

Page 16: Monitoring API Performance and Delivering a Scalable API Solution

Deployment Pattern : Extend to scale

Page 17: Monitoring API Performance and Delivering a Scalable API Solution

Deployment Pattern : as an internal API solution

Page 18: Monitoring API Performance and Delivering a Scalable API Solution

Data to Scale : API Statistics

Picture Credit : http://www.mta.info/

Page 19: Monitoring API Performance and Delivering a Scalable API Solution

WSO2 BAM Workshop : Palo Alto

Page 20: Monitoring API Performance and Delivering a Scalable API Solution

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: Monitoring API Performance and Delivering a Scalable API Solution

21

lean . enterprise . middleware

Page 22: Monitoring API Performance and Delivering a Scalable API Solution

Monitoring API Performance and Delivering a

Scalable API Solution

Page 23: Monitoring API Performance and Delivering a Scalable API Solution

The feedback cycle

Gather API data

Slice and Dice

Decide

Adjust parameters

Page 24: Monitoring API Performance and Delivering a Scalable API Solution

Recap

• Monitoring stats available - http://bit.ly/SFepPt

• Usage data such as number of hits, subscriptions, access time already

gathered

Page 25: Monitoring API Performance and Delivering a Scalable API Solution

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: Monitoring API Performance and Delivering a Scalable API Solution

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 27: Monitoring API Performance and Delivering a Scalable API Solution

Decide

Page 28: Monitoring API Performance and Delivering a Scalable API Solution

Decide (cont.)

• Check for trends

• Compare past resutls

• Get help with Reporting & Dashboards

Page 29: Monitoring API Performance and Delivering a Scalable API Solution

Adjust parameters

Page 30: Monitoring API Performance and Delivering a Scalable API Solution

Adjust parameters (cont.)

• Increase server capacity

• Increase redundancy

• Retire APIs

• Introduce new versions

Page 31: Monitoring API Performance and Delivering a Scalable API Solution

Summary

• Create an effective feedback cycle

• Get proper alerts and dashboards in place

• Tune your APIs for maximum performance

Page 32: Monitoring API Performance and Delivering a Scalable API Solution

Q & A