API Management with Microservices · The outer architecture is the environment where the...
Transcript of API Management with Microservices · The outer architecture is the environment where the...
![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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/1.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/2.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/3.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/4.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/5.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/6.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/7.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/8.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/9.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/10.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/11.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/12.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/13.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/14.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/15.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/16.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/17.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/18.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/19.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/20.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/21.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/22.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/23.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/24.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/25.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/26.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/27.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/28.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/29.jpg)
Learn more about API management and microservices
Download the whitepaper:
http://bit.ly/APIsforMSA
Contact us:
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](https://reader035.fdocuments.us/reader035/viewer/2022062505/5ec991aff42e65744a27fa06/html5/thumbnails/30.jpg)
-- The End --
30