api management with microservices · the outer architecture is the environment where the...

30
API Management with Microservices Sept 14, 2016 @VinayBhalerao

Upload: others

Post on 22-May-2020

11 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

API Management with Microservices

Sept 14, 2016 @VinayBhalerao

Page 2: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

What I am talking about

- Microservices: Introduction and Challenges

- The Role of API Management in Microservice Architecture

- Best practices and use of API Gateway for Microservices

Page 3: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

Microservices Architecture

Page 4: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

How Microservices?

4

Crusty Monolith Awesome Microservices

Page 5: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

Known quality for Dev and Ops

Develop → Deploy → Scale → Manage

Page 6: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

New Frontier for Dev and Ops

Develop → Deploy → Scale → Manage

Develop → Deploy → Scale → Manage

Develop → Deploy → Scale → Manage

Develop → Deploy → Scale → Manage

Develop → Deploy → Scale → Manage

Develop → Deploy → Scale → Manage

Page 7: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

Oh Yeah … It’s Distributed Too

7

Awesome Microservices

Page 8: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

Challenges- How do you determine who get access to the microservice?

- Degree to which they have access to the microservice

- Discovering and exposing the versioned microservice

Gateway

- Managing the API Gateway with zero downtime

Page 9: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

What Hope?

9

Page 10: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

The ‘Mantra’

10

API

APIAPI

APIAPI

API

API Management

Develop Deploy Scale Manage

Container Application Platform (PaaS)

Page 11: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

The Inner and the Outer Architecture

Src

: Gar

y O

lliffe

.ht

tp://

blog

s.ga

rtner

.com

/gar

y-ol

liffe

/201

5/01

/30/

mic

rose

rvic

es-g

uts-

on-th

e-ou

tsid

e/

11

Page 12: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

Src

: Gar

y O

lliffe

.ht

tp://

blog

s.ga

rtner

.com

/gar

y-ol

liffe

/201

5/01

/30/

mic

rose

rvic

es-g

uts-

on-th

e-ou

tsid

e/

12

Page 13: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

Src

: Gar

y O

lliffe

.ht

tp://

blog

s.ga

rtner

.com

/gar

y-ol

liffe

/201

5/01

/30/

mic

rose

rvic

es-g

uts-

on-th

e-ou

tsid

e/

13

Page 14: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

Src

: Gar

y O

lliffe

.ht

tp://

blog

s.ga

rtner

.com

/gar

y-ol

liffe

/201

5/01

/30/

mic

rose

rvic

es-g

uts-

on-th

e-ou

tsid

e/

14

Page 15: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

Key Aspects of the Outer Architecture

15

The Outer Architecture delivers the platform capabilities you need to help all those simple little microservices (and their DevOps teams) work together to make good on the promises of flexible and scalable development and deployment.

It is coping with this complexity that makes SDLC discipline and automation an essential element of delivering microservice architecture.

-- Gary Olliffe

Page 16: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

The Role of API Management in Microservice Architectures

16

Page 17: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

Typical Use of API Gateways in MSAs

17

Page 18: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

18

Page 19: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

19

Page 20: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

API Management Key Benefits for MSAs 1/5

Fine-grained and flexible access control to microservices

20

➢ Standard API keys

➢ Application ID and key pair

➢ OAuth v1.0 and 2.0

Page 21: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

API Management Key Benefits for MSAs 2/5

Microservices usage analytics

21

➢ Traffic patterns

➢ Top microservice consumers

➢ Alerts, reporting

Page 22: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

API Management Key Benefits for MSAs 3/5

Configuration of usage contracts such as rate limits

22

➢ Different microservice consumer

segments

➢ Flexible per-time-period limits

Page 23: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

API Management Key Benefits for MSAs 4/5

Automatic and interactive interface documentation

23

➢ Interactive API documentation

➢ Swagger-based

➢ Self-service developer portal

Page 24: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

API Management Key Benefits for MSAs 5/5

Monetization of individual microservices

24

➢ Build business model

➢ Flexible pricing rules

➢ Automatic invoicing

Page 25: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

Managing Internal vs External APIs

Along all the 5 key benefits:

1. Access control and security

2. Usage analytics

3. Usage contracts

4. Documentation

5. Monetization

25

Page 26: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

How 3scale handles Gateway with zero downtime

MicroserviceGET /productdetails/{id}

API Gateway: eg: Nginx- Static files - API management business logic- Dynamic files - Endpoints information

Command/Scriptnginx -s reload

Page 27: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

Summary

27

Page 28: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

Key Take-aways

The outer architecture is the environment where the microservices live.

Specifically address the outer architecture to achieve real enterprise agility.

PaaS and API management are two crucial elements of the outer architecture.

API Management allows to define microservice access control, analytics, usage contracts, documentation, or monetization.

28

Page 29: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

Learn more about API management and microservices

Download the whitepaper:

http://bit.ly/APIsforMSA

Contact us:

[email protected]

29

Page 30: API Management with Microservices · The outer architecture is the environment where the microservices live. Specifically address the outer architecture to achieve real enterprise

-- The End --

30