Managing your Business APIs is using WSO2 API Manager

34
Managing your business APIs using WSO2 API Manager Sanjeewa Malalgoda, Vijayaratha Vijayasingam WSO2 September, 2013

description

 

Transcript of Managing your Business APIs is using WSO2 API Manager

Page 1: Managing your Business APIs is using WSO2 API Manager

Managing your business APIs using WSO2 API Manager

Sanjeewa Malalgoda, Vijayaratha VijayasingamWSO2

September, 2013

Page 2: Managing your Business APIs is using WSO2 API Manager

About WSO2

● Providing the only complete open source componentized cloud platform

■ Dedicated to removing all the stumbling blocks to enterprise agility■ Enabling you to focus on business logic and business value

● Recognized by leading analyst firms as visionaries and leaders■ Gartner cites WSO2 as visionaries in all 3 categories of application

infrastructure■ Forrester places WSO2 in top 2 for API Management

● Global corporation with offices in USA, UK & Sri Lanka■ 200+ employees and growing

● Business model of selling comprehensive support & maintenance for our products

Page 3: Managing your Business APIs is using WSO2 API Manager

150+ globally positioned support customers

Page 4: Managing your Business APIs is using WSO2 API Manager

What we will cover today…………..

● Transforming web services , data feed , external APIs into Business APIs.○ APIs○ Business APIs

● Managing, Monitoring APIs on various aspects○ Managing APIs○ Monitoring and usage patterns

● How to secure, scale and control Business APIs

● Analyze and identify business patterns○ API related Business use cases

Page 5: Managing your Business APIs is using WSO2 API Manager

What is an API ?

● In computer science we’ve used the term “Application Programming Interface”.

● APIs facilitate communication between different applications.

● “web services API” means some functionality that you can invoke over the Internet.

Page 6: Managing your Business APIs is using WSO2 API Manager

Business APIs - API usages

Source : http://blog.programmableweb.com/2011/05/25/who-belongs-to-the-api-billionaires-club/

Page 7: Managing your Business APIs is using WSO2 API Manager

Business APIs - Enabling business

● The application programming interfaces (API) economy has arrived and is growing thanks to the role it plays in IT industry.

● APIs came into picture with the growth of consumer-oriented applications such as Facebook, Twitter and LinkedIn.

● Twitter, facebook and google's popularity is large because users can interact with the network through multiple channels and devices, which made possible by APIs.

Page 8: Managing your Business APIs is using WSO2 API Manager

Business APIs - Driving revenue from the API

● For example, Pizza Ordering mobile application uses ○ Google Maps to locate nearby shops, ○ Communicate with point-of-sales system to place orders and ○ Connect with the bank Network to buy and refill pizza credits.

● Not only support this type of integration, but a good set of APIs ensures this process is seamless and efficient.

Page 9: Managing your Business APIs is using WSO2 API Manager

Business APIs - Startups

For new companies, the API is a key part of the toolbox that has slashed costs and development time in getting to market.

Data centers, servers, storage, databases, load-balancers and more are now all programmable through an API.

Not only startups

APIs are not just for startups anymore.Most of big companies are developing an API strategy. This includes the well known companies like Google, facebook, twitter and Amazons

Page 10: Managing your Business APIs is using WSO2 API Manager

Business APIs -Challenges

● How to create API centric business?○ Why?○ For whom?

● Authentication & Authorization● Subscription Management● Access Provisioning

○ How to control access?○ Throttling

● Monitoring & SLA

Page 11: Managing your Business APIs is using WSO2 API Manager

Business APIs -Challenges

● Revenue Generation○ Statistics collection○ Billing Model

● Selling your APIs○ Advertising○ Store○ Subscription Tiers

● Deployment○ Fail safe○ Scalable

● many more..

Page 12: Managing your Business APIs is using WSO2 API Manager

Manage APIs - API Publisher

Page 13: Managing your Business APIs is using WSO2 API Manager

Consume APIs - API Store

Page 14: Managing your Business APIs is using WSO2 API Manager

Manage APIs - API access control and throttling

● Application level throttling● API level throttling● Resource level throttling● Spike arrest throttling policies● Custom throttling policies using WS policy

Page 15: Managing your Business APIs is using WSO2 API Manager

Manage APIs - Custom policy sample

Add custom throttling policy<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:throttle="http://www.wso2.org/products/wso2commons/throttle"> <throttle:MediatorThrottleAssertion><wsp:Policy> <throttle:ID throttle:type="IP">10.1.1.1</throttle:ID> <wsp:Policy> <throttle:Control> <wsp:Policy> <throttle:MaximumCount>1</throttle:MaximumCount> <throttle:UnitTime>60000</throttle:UnitTime> </wsp:Policy> </throttle:Control> </wsp:Policy> </wsp:Policy> <wsp:Policy> <throttle:ID throttle:type="IP">other</throttle:ID> <wsp:Policy> <throttle:Control> <wsp:Policy> <throttle:MaximumCount>2</throttle:MaximumCount> <throttle:UnitTime>60000</throttle:UnitTime> </wsp:Policy> </throttle:Control> </wsp:Policy> </wsp:Policy></throttle:MediatorThrottleAssertion></wsp:Policy>

Engage throttling policy to your API <handler class="org.wso2.carbon.apimgt.gateway.handlers.throttling.APIThrottleHandler"> <property name="id" value="A"/> <property name="policyKey" value="gov:/apimgt/applicationdata/throttle.xml"/> </handler>

Page 16: Managing your Business APIs is using WSO2 API Manager

Monitoring APIs - Statistics

Page 17: Managing your Business APIs is using WSO2 API Manager

Monitoring APIs - Statistics

Page 18: Managing your Business APIs is using WSO2 API Manager

Monitoring APIs - Using WSO2 BAM

Page 19: Managing your Business APIs is using WSO2 API Manager

Monitoring APIs - Traffic Monitoring

WSO2 API management platform lets you monitor APIs keeping an eye on traffic. ● Monitoring features include:

○ Monitoring - Get visibility into how your API or App is behaving understand how your customers are using it

○ Troubleshooting - Quickly identify and fix problems to keep your customers happy

Page 20: Managing your Business APIs is using WSO2 API Manager

Monitoring APIs - SLA and QoS

WSO2 API management platform lets you manage quality-of-service for your APIs, managing quotas and service-levels for individual Apps. Management features include:

● Performance and Scale - use our proven enterprise platform to ensure that your API starts and remains blisteringly fast

● Protect Applications/ APIs - Avoid overloading your internal applications while providing customers with guaranteed service-levels using our comprehensive QoS management for SLAs and quotas

Page 21: Managing your Business APIs is using WSO2 API Manager

Securing,Scaling Business APIs

Page 22: Managing your Business APIs is using WSO2 API Manager

Securing & Scaling Business APIs

Page 23: Managing your Business APIs is using WSO2 API Manager

Securing APIs

Page 24: Managing your Business APIs is using WSO2 API Manager

Securing APIs

● Application access tokens

■ Owned by application owner

■ Domains/token validity time can be specified

● User tokens

■ For subscribed users

■ Token partitioning

Page 25: Managing your Business APIs is using WSO2 API Manager

Securing APIs

Page 26: Managing your Business APIs is using WSO2 API Manager

Scaling APIs

Page 27: Managing your Business APIs is using WSO2 API Manager

Scaling APIs

Page 28: Managing your Business APIs is using WSO2 API Manager

Controlling APIs

Page 29: Managing your Business APIs is using WSO2 API Manager

Business Patterns - Identifying and Analyzing

● Why it is important?■ Enables us to have systematic and relevant information about

business operations■ To Identify market potential

● How to do it?■ Gather data■ Analyze■ Presentation

Page 30: Managing your Business APIs is using WSO2 API Manager

Business Patterns - Identifying and Analyzing

● WSO2 Business Activity Monitor (BAM) to collect and summarize runtime statistics

● Sample to generate Billing and Usage for APIs.

● Extensible solution

Page 31: Managing your Business APIs is using WSO2 API Manager

Business Patterns

Some use cases;

● Region/Domain specific usage

● Billing and Metering

● Market potential of APIs

Page 32: Managing your Business APIs is using WSO2 API Manager

Wrap Up…

● In this session, we covered some topics on ‘How Business APIs can be managed using WSO2APIManager’.○ Transforming external APIs into Business APIs.○ Managing, Monitoring the APIs on various aspects.○ How to secure, scale and control the Business APIs○ Analyze and identify the business patterns.

Page 33: Managing your Business APIs is using WSO2 API Manager

Engage with WSO2

●Helping you get the most out of your deployments●From project evaluation and inception to development

and going into production, WSO2 is your partner in ensuring 100% project success

Page 34: Managing your Business APIs is using WSO2 API Manager