Surat MuleSoft Meetup
Flex Gateway (Port Based Routing V/S
Path Based Routing)
23rd Dec 2022
21:00 IST (GMT+05:30)
Safe Harbour Statement
● Both the speaker and the host are organizing this meet-up in individual capacity only. We are
not representing our companies here.
● This presentation is strictly for learning purposes only. Organizer/Presenter do not hold any
responsibility that same solution will work for your business requirements.
● This presentation is not meant for any promotional activities.
2
A recording of this meetup will be uploaded to events page within 24hours.
Questions can be submitted/asked at any time in the Chat/Questions & AnswersTab.
Make it more Interactive!!!
Give us feedback! Rate this meetup session by filling feedback form at the end of theday.
We Love Feedbacks!!! Its Bread & Butter for Meetup.
Housekeeping
3
Organizers
4
Jitendra Bafna
Senior Solution Architect
EPAM Systems
Nitish Jain
Application Developer
Accenture
Speakers
4
Jitendra Bafna
Senior Solution Architect
EPAM Systems
Agenda
Introduction
Universal API Management
Flex Gateway
Flex Gateway as a Kubernetes Ingress Controller
Enabling Monitoring
Applying Policies
Port Based Routing V/S Path Based Routing
Universal API Management
7
Universal API Management allows you to manage, govern or secure the APIs within single control plane, it
doesn’t matter whether they are MuleSoft or Non-MuleSoft APIs or it located anywhere (on-premise, cloud
or anywhere).
• It will allow the organizations or enterprises to control, manage, secure the APIs under single umbrella.
• Adapt any architecture with lightweight and flexible API Gateway to manage and secure the APIs.
• Govern the all APIs under single platform.
Flex Gateway
8
Flex Gateway is ultrafast, designed and manage the APIs running Anywhere. It is Envoy based, CNCF project and envoy is
high performance, low latency and very fast service till now.
❑ Secure and Manage APIs located Anywhere.
❑ Extend Anypoint Platform Capabilities to MuleSoft as well as Non-MuleSoft APIs.
❑ Achieve consistent security and governance across every API operating in any environment.
❑ Built to integrate seamlessly with DevOps and CI/CD workflows.
❑ Flex Gateway Can be used in Local or Connected Mode
Superfast/Ultrafast High Performance Flexible
Flex Gateway
-
Installation
Kubernetes Ingress
Controller
Docker
Container
Linux Service
Flex Gateway –
Authentication
Mechanism Anypoint Username and
Password
Auth Token
ConnectedApp
Flex Gateway (Connected V/S Local)
13
Parameters Connected Mode Local Mode
Control Plane Anypoint Platform Local Management Operations
Logging Anypoint Platform Advanced Logging
(Titanium License)
Third-Party Logging like Splunk, ELK etc.
API Monitoring Anypoint Monitoring or API ManagerMetrics Third-Party Monitoring tools like Grafana,
Prometheus etc.
Flex Gateway Management Flex Gateway is mange usingAnypoint
Platform.
Flex Gateway is managed using LocalYAML
Descriptors files.
API Policies Policies can be applied to APIs publishedto
Flex Gateway using API Manager.
Policies needs to be apply using LocalYAML
Descriptors files.
14
Docker Engine
Mule Runtime
Mule API (9002)
Spring (Java
Runtime)
Spring API (9003)
Flex Gateway
Anypoint Platform (Control Plane)
NodeJS
Node JS API (9004)
.Net
Replica 1 Replica 2 Replica n
Mule API
Instance
Spring API
Instance
NodeJS API
Instance
.Net API
Instance
.Net API (9005)
Container (8084) Container (8085) Container (8086) Container (8087)
API Policies API Security API Metrics API Alerts
API Manager
Flex Gateway (Runtime Manager)
Flex Gateway in Connected Mode Behind Firewall
Single Flex Gateway – Multiple APIs
15
Docker Engine
Mule Runtime
Mule API (9002)
Spring (Java
Runtime)
Spring API (9003)
Anypoint Platform (Control Plane)
NodeJS
Node JS API (9004)
.Net
.Net API (9005)
Container (8084) Container (8085) Container (8086) Container (8087)
API Policies API Security API Metrics API Alerts
API Manager
Multiple Flex Gateway in Connected Mode Behind Firewall
Replica 1
Replica 2
Replica 1
Replica 2
Replica 1
Replica 2
Replica 1
Replica 2
Flex Gateway Flex Gateway Flex Gateway Flex Gateway
Flex Gateway Flex Gateway Flex Gateway Flex Gateway
Multiple Flex Gateway Architecture – Flex Gateway as a MicroGateway
Flex Gateway in Connected Mode
14
Flex Gateway
(Ingress Layer)
Account Service
(Multiple Replicas
across worker nodes)
Payment Service
(Multiple Replicas
across worker nodes)
Kubernetes Cluster
Runtime Manager API Manager Anypoint Monitoring
Anypoint
Platform
Flex Gateway in Local Mode
15
Flex Gateway
(Ingress Layer)
Account Service
(Multiple Replicas
across worker nodes)
Payment Service
(Multiple Replicas
across worker nodes)
Kubernetes Cluster
YAML Descriptor
File
Local ManagementOperations
Third Party API Telemetry and Metrics
(example, Grafana)
Third Party Logging (example, Splunk)
Flex Gateway in Hybrid Mode
Flex Gateway
(Ingress Layer)
Web API
Kubernetes Cluster (Web Tier)
Runtime Manager API Manager Anypoint Monitoring
Anypoint
Platform
Payment
Flex Gateway
(Ingress Layer)
Account Service
Kubernetes Cluster (App Tier)
Payment Service
Account DB
Service
Kubernetes Cluster (Secure Zone)
Flex Gateway
(Ingress Layer)
Payment DB
Service
YAML Descriptor
File
19
Local ManagementOperations
Third Party API Telemetry and Metrics (example, Grafana)
Local Mode
Connected Mode
Connected Mode
Third Party API Telemetry and Metrics (example, Grafana)
Anypoint Monitoring and API Manager Telemetry
Demonstration
Thank You
Quiz Time
Get ready to WIN a Special Gift
from MuleSoftCommunity
Take a stand !
18
●Nominate yourself for the next meetup speaker and suggest a topic as well.
20
● Share:
○ Tweet using the hashtag #MuleSoftMeetups
○ Invite your network to join: https://meetups.mulesoft.com/surat/
● Feedback:
○ Fill out the survey feedback and suggest topics for upcoming events
○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program
What’s next?

MuleSoft Surat Meetup#52 - Flex Gateway (Port Based Routing V/S Path Based Routing)

  • 1.
    Surat MuleSoft Meetup FlexGateway (Port Based Routing V/S Path Based Routing) 23rd Dec 2022 21:00 IST (GMT+05:30)
  • 2.
    Safe Harbour Statement ●Both the speaker and the host are organizing this meet-up in individual capacity only. We are not representing our companies here. ● This presentation is strictly for learning purposes only. Organizer/Presenter do not hold any responsibility that same solution will work for your business requirements. ● This presentation is not meant for any promotional activities. 2
  • 3.
    A recording ofthis meetup will be uploaded to events page within 24hours. Questions can be submitted/asked at any time in the Chat/Questions & AnswersTab. Make it more Interactive!!! Give us feedback! Rate this meetup session by filling feedback form at the end of theday. We Love Feedbacks!!! Its Bread & Butter for Meetup. Housekeeping 3
  • 4.
    Organizers 4 Jitendra Bafna Senior SolutionArchitect EPAM Systems Nitish Jain Application Developer Accenture
  • 5.
  • 6.
    Agenda Introduction Universal API Management FlexGateway Flex Gateway as a Kubernetes Ingress Controller Enabling Monitoring Applying Policies Port Based Routing V/S Path Based Routing
  • 7.
    Universal API Management 7 UniversalAPI Management allows you to manage, govern or secure the APIs within single control plane, it doesn’t matter whether they are MuleSoft or Non-MuleSoft APIs or it located anywhere (on-premise, cloud or anywhere). • It will allow the organizations or enterprises to control, manage, secure the APIs under single umbrella. • Adapt any architecture with lightweight and flexible API Gateway to manage and secure the APIs. • Govern the all APIs under single platform.
  • 8.
    Flex Gateway 8 Flex Gatewayis ultrafast, designed and manage the APIs running Anywhere. It is Envoy based, CNCF project and envoy is high performance, low latency and very fast service till now. ❑ Secure and Manage APIs located Anywhere. ❑ Extend Anypoint Platform Capabilities to MuleSoft as well as Non-MuleSoft APIs. ❑ Achieve consistent security and governance across every API operating in any environment. ❑ Built to integrate seamlessly with DevOps and CI/CD workflows. ❑ Flex Gateway Can be used in Local or Connected Mode Superfast/Ultrafast High Performance Flexible
  • 9.
  • 10.
    Flex Gateway – Authentication MechanismAnypoint Username and Password Auth Token ConnectedApp
  • 11.
    Flex Gateway (ConnectedV/S Local) 13 Parameters Connected Mode Local Mode Control Plane Anypoint Platform Local Management Operations Logging Anypoint Platform Advanced Logging (Titanium License) Third-Party Logging like Splunk, ELK etc. API Monitoring Anypoint Monitoring or API ManagerMetrics Third-Party Monitoring tools like Grafana, Prometheus etc. Flex Gateway Management Flex Gateway is mange usingAnypoint Platform. Flex Gateway is managed using LocalYAML Descriptors files. API Policies Policies can be applied to APIs publishedto Flex Gateway using API Manager. Policies needs to be apply using LocalYAML Descriptors files.
  • 12.
    14 Docker Engine Mule Runtime MuleAPI (9002) Spring (Java Runtime) Spring API (9003) Flex Gateway Anypoint Platform (Control Plane) NodeJS Node JS API (9004) .Net Replica 1 Replica 2 Replica n Mule API Instance Spring API Instance NodeJS API Instance .Net API Instance .Net API (9005) Container (8084) Container (8085) Container (8086) Container (8087) API Policies API Security API Metrics API Alerts API Manager Flex Gateway (Runtime Manager) Flex Gateway in Connected Mode Behind Firewall Single Flex Gateway – Multiple APIs
  • 13.
    15 Docker Engine Mule Runtime MuleAPI (9002) Spring (Java Runtime) Spring API (9003) Anypoint Platform (Control Plane) NodeJS Node JS API (9004) .Net .Net API (9005) Container (8084) Container (8085) Container (8086) Container (8087) API Policies API Security API Metrics API Alerts API Manager Multiple Flex Gateway in Connected Mode Behind Firewall Replica 1 Replica 2 Replica 1 Replica 2 Replica 1 Replica 2 Replica 1 Replica 2 Flex Gateway Flex Gateway Flex Gateway Flex Gateway Flex Gateway Flex Gateway Flex Gateway Flex Gateway Multiple Flex Gateway Architecture – Flex Gateway as a MicroGateway
  • 14.
    Flex Gateway inConnected Mode 14 Flex Gateway (Ingress Layer) Account Service (Multiple Replicas across worker nodes) Payment Service (Multiple Replicas across worker nodes) Kubernetes Cluster Runtime Manager API Manager Anypoint Monitoring Anypoint Platform
  • 15.
    Flex Gateway inLocal Mode 15 Flex Gateway (Ingress Layer) Account Service (Multiple Replicas across worker nodes) Payment Service (Multiple Replicas across worker nodes) Kubernetes Cluster YAML Descriptor File Local ManagementOperations Third Party API Telemetry and Metrics (example, Grafana) Third Party Logging (example, Splunk)
  • 16.
    Flex Gateway inHybrid Mode Flex Gateway (Ingress Layer) Web API Kubernetes Cluster (Web Tier) Runtime Manager API Manager Anypoint Monitoring Anypoint Platform Payment Flex Gateway (Ingress Layer) Account Service Kubernetes Cluster (App Tier) Payment Service Account DB Service Kubernetes Cluster (Secure Zone) Flex Gateway (Ingress Layer) Payment DB Service YAML Descriptor File 19 Local ManagementOperations Third Party API Telemetry and Metrics (example, Grafana) Local Mode Connected Mode Connected Mode Third Party API Telemetry and Metrics (example, Grafana) Anypoint Monitoring and API Manager Telemetry
  • 19.
  • 20.
  • 21.
    Quiz Time Get readyto WIN a Special Gift from MuleSoftCommunity
  • 22.
    Take a stand! 18 ●Nominate yourself for the next meetup speaker and suggest a topic as well.
  • 23.
    20 ● Share: ○ Tweetusing the hashtag #MuleSoftMeetups ○ Invite your network to join: https://meetups.mulesoft.com/surat/ ● Feedback: ○ Fill out the survey feedback and suggest topics for upcoming events ○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program What’s next?