wso2con eu 2015: api readiness: is your api ready for primetime?

25
API Readiness: Visualizing and Virtualizing Lorinda Brandon Director, API Partner Development SmartBear So>ware @lindybrandon

Upload: wso2

Post on 25-Jul-2015

112 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

API  Readiness:  Visualizing  and  

Virtualizing  

Lorinda  Brandon  Director,  API  Partner  Development  

SmartBear  So>ware  @lindybrandon  

 

Page 2: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

Keys  to  a  successful  API  

•  documentaEon  •   tesEng  •   mocking  •   evangelism  •   management  •   monitoring  

Page 3: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

But  how  do  you  get  there?  

Page 4: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

API  Readiness  

visualize  

Page 5: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

Service  Defini+ons  The  best  way  to  visualize  your  API  

Page 6: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

Describing  is  not  really  visualizing  

Page 7: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

“The  best  design  gets  out  of  the  way  between  the  viewer’s  brain  and  the  content.”    

–  Edward  Tu>e  

Page 8: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

– Swagger.ed  (credit  -­‐  @chefarchitect)  

New  Ideas  Coloring  outside  the  lines  

 

Page 9: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

Visualizing:    New  ideas  

– Ardoq  

New  Ideas  Coloring  outside  the  lines  

 

Page 10: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

Visualizing:    New  ideas  

– LucyBot  

New  Ideas  Coloring  outside  the  lines  

 

Page 11: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

API  Readiness  

visualize  

validate  

Page 12: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

Func+onal  Test  Live  up  to  your  own  hype  

Page 13: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

Load  Test  Don’t  let  success  kill  you  

Page 14: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

Security  Test  Know  where  the  dangers  are  

Page 15: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

API  Readiness  

visualize  

validate  

virtualize  

Page 16: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

Why  virtualize  your  APIs?  

Page 17: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

Bootstrap Parallel  dev  and  test  

Test Design

Virtual API Generate from spec

or with tools

Client Development

Integration Development

Page 18: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

Isolate Test  execuEon  and  development  

Test Execution (automated or manual)

Development

Component in dev or test

3rd party APIs (virtualized)

Other APIs (virtualized)

Legacy Systems

(virtualized)

•  Simulate (un)expected behavior •  Minimize impact on and usage of external systems •  Assert usage of external components

Page 19: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

Performance Test

Solution under test

Load Test Execution (automated or manual) 3rd party APIs

(virtualized)

Other APIs (virtualized)

Legacy Systems

(virtualized)

•  Simulate (un)expected performance in external systems

•  Minimize impact on and usage of external systems

•  Triage Performance bottlenecks

Page 20: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

Provide Sandbox

Hardware / Software Solution

API Virtual API

Evaluate

Integrate

Integration Test

Page 21: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

Three  Levels  of  API  Virtualiza+on  

StaEc  Mocks  

Static responses •  Semantically

correct •  No logic •  Payloads

generated from schemas or examples

Code or generated from metadata  

Dynamic  Mocks  

Dynamic responses •  Based on input •  Re-use input in

output •  Scripting •  Data-driven /

Data-generation •  Simulate state Assertions on incoming content  

Virtual  APIs  

Runtime behavior simulation Runtime management •  Redirect traffic to

Virtual APIs dynamically •  Access control •  Deployment •  Test execution

integration      

Page 22: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

API  Readiness  

visualize  

validate  

virtualize  

monitor  

Page 23: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

MONITORING  Virtual  APIs  

Mock  Services  

ProducEon  APIs  

Keep  producEon  stable    Prevent  boTlenecks  

Test  

Dev  Test  Dev  

Test  

Ongoing  development  

API  Monitoring  

Page 24: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

visualize  validate  virtualize  monitor  

Page 25: WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?

Thank  You