SlideShare a Scribd company logo
© OPITZ CONSULTING 2020
¢¢¢ Digitale Service Manufaktur
© OPITZ CONSULTING 2020
Sven Bernhardt, Chief Architect / Integration
Evangelist
Flexible, hybrid API-led
software architectures
with Kong
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
That’s me
Sven Bernhardt
Cloud-Native enthusiast, API & integration geek. Always curious how new
technologies and concepts can help to make things more valuable and
efficient.
Proud father of a son, soccer fan and player. Loves listening to good hand-
made music (Heavy Metal) and attending festivals.
¢ Chief Architect / Integration Evangelist
@OPITZ CONSULTING Deutschland GmbH
¢ Oracle ACE Director
@sbernhardt
https://svenbernhardt.wordpress.com/
Seite 2
© OPITZ CONSULTING 2020 Seite 3
Agenda
1
2
3
4
5
Why API-led?
API Management with Kong
Kong Deployment options
Demo
Summary
Flexible, hybrid API-led software architectures with Kong
© OPITZ CONSULTING 2020 Seite 4
Why API-led?
1
Flexible, hybrid API-led software architectures with Kong
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
API-led architectures enables access to business
capabilities in a secure, comprehensible way
¢ Provides a standard-based interface for accessing the functionality
¢ Decouples Consumer and Provider
¢ Implements cross-cutting concerns, declared as policies
¢ AuthN/AuthZ
¢ Throttling/Rate Limit
¢ Routing
¢ Caching
¢ …
¢ Policy enforcement done by a specific runtime component
µService
API
API Exposure
Seite 5
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
APIs further agility and help to create new digital
products and services
Source: Enterprise API Management, Luis Weir, 2019
Seite 6
© OPITZ CONSULTING 2020
Standard(On-
Prem)
DigitalProduct
Monolith
DigitalProduct
Business Domain
Shared Application Platform
Shared Services (Foundation)
Hybrid, flexible Infrastructure
Standard(On-
Prem)
StandardSaaS
Business DomainBusiness Domain
Digital Product
Overall vision: Business-driven product-centric
application world
Flexible, hybrid API-led software architectures with Kong Seite 7
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
IT system landscapes nowadays are hybrid,
heterogenous and often consists of data silos
¢ Hybrid: Apps are starting to be distributed across both Cloud and on-
premises
¢ Heterogenous:
¢ Monolithic systems
¢ Legacy applications (Mainframe-based)
¢ Custom “standard” software (like custom ERP solutions, etc.)
¢ Commerical off-the-shelf solutions (COTS)
¢ Software as a Service solutions (SaaS)
¢ Cloud-native apps
¢ Function-based apps (FaaS)
Source: https://tinyurl.com/yyx3yzg9
Seite 8
© OPITZ CONSULTING 2020 Seite 9
API Management with Kong
2
Flexible, hybrid API-led software architectures with Kong
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
Kong Gateway architecture
¢ Kong Microservice API Gateway
¢ Lightweight
¢ Scalable
¢ Modular
¢ Infrastructure-agnostic
¢ Deployed on top of reliable technologies
¢ NGINX
¢ PostgreSQL or Apache Cassandra
¢ Extensible using Plugins and other Open Source
compnents
¢ API-driven: Fully configurable using a REST API
Source: https://tinyurl.com/yxvhp6ej
Seite 10
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
Kong API Platform components
Source: https://tinyurl.com/yyksp3pa
Seite 11
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
Kong basics
µService
2
µService
1Client 1
Client 2
Client 3 COTS
GET
POST, PUT, DELETE
GET, POST, PUT, DELETE
GET, POST, PUT, DELETE
Clients
Services
Routes
Backend
apps
Seite 12
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
Kong basics
µService
2
µService
1
Route Service
Client 1
GET, POST, PUT, DELETE
µService
2
Route
Client 2
GET, POST, PUT, DELETE
Plugins
Upstream
Consum
er
Seite 13
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
Kong persistence
¢ Types of data stored by Kong Gateway
¢ Configuration data, for Services, Routes, Plugins or Cluster configuration
¢ API usage data
¢ Different persistence options depending on data classification and use
case
Configuration &
API Usage data
Configuration &
API Usage data
API Usage data
Seite 14
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
Even more lightweight with Kong DB-less mode
¢ Kong can run without a database (DB-less mode since Kong 1.1)
¢ Configuration is managed declaratively using a respective file
¢ Benefits:
¢ Reduced number of dependencies
¢ Good fit for automation in CI/CD scenarios
¢ More flexible deployment option for Kong Gateway
¢ Restrictions:
¢ Features in Kong Enterprise that requires DB (Dev Portal, Brain, Immunity, etc.)
¢ Not all Plugins are fully compatible with DB-less mode (Further details see here)
Seite 15
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
Kong management and configuration
¢ Admin API (REST)
¢ Easy to use and to integrate in CI/CD pipelines
¢ Only needs HTTP CLI tool like CURL or HTTPie
¢ Konga Admin UI
¢ Leverages Admin API functionality
¢ Allows Kong basic administration
¢ Open Source
¢ Kong Manager
¢ Leverages Admin API functionality
¢ Allows Kong administration and API Usage tracking
¢ Commercial version (Kong Enterprise)
Seite 16
© OPITZ CONSULTING 2020 Seite 17
Deployment options
3
Flexible, hybrid API-led software architectures with Kong
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
Classic deployment model
¢ Usually we don’t start on a green field!
¢ Applications deployed directly on Bare Metal server
¢ Applicatoins deploed in virtualized environments
¢ Model:
¢ Deployment on Bare Metal
¢ Deployment on Virtual Machines (Vagrant)
¢ Dockerized Deployment
¢ Scenarios:
¢ Mainly Legacy/COTS applications
¢ Kong as Edge Gateway in DMZ
VM / Bare Metal Host COTS
Legacy
Client
ESB
External/ Internet DMZ Internal
Seite 18
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
Distributed deployment model
¢ API Gateway is like a door to enterprises
to provide digital products and service
to consumers
¢ Shouldn’t be Single point of failure (High
Availability is mandatory)
¢ Model:
¢ Kong Cluster using PostgreSQL
¢ Kong Cluster using Cassandra
¢ Scenarios:
¢ Mainly Legacy/COTS applications
¢ Single DC setups
VM / Bare
Metal Host
VM / Bare
Metal Host
VM / Bare
Metal Host
VM / Bare
Metal Host
Loadbalancer
Loadbalancer
DC 1
Seite 19
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
Distributed deployment model
¢ API Gateway is like a door to enterprises to
provide digital products and service to
consumers
¢ Shouldn’t be Single point of failure (High
Availability is mandatory)
¢ Model:
¢ Kong Cluster using PostgreSQL
¢ Kong Cluster using Cassandra
¢ Scenarios:
¢ Mainly Legacy/COTS applications
¢ Multi DC setups
VM / Bare
Metal Host
VM / Bare
Metal Host
VM / Bare
Metal Host
VM / Bare
Metal Host
DC 1
DC 2
Loadbalancer
Seite 20
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
Have you heard of something called „Kubernetes“?
¢ Kubernetes is the new de-facto
application platform
¢ Container orchestration platform
developed by Google
¢ Abstracts Infrastructure, Network &
Storage
¢ Cloud technologies enable infinite
scalability and elasticity on a
infrastructure level
Seite 21
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
Kong and Kubernetes (Microgateway)
¢ API Gateway should run as close as possbile
to the services to secure
¢ Run Kong in a Kubernetes-native fashion
¢ Kong can be run in a Microgateway-style on
Kubernetes
¢ Run multiple Kong replicas
¢ Kong service is exposed using
¢ Load Balancer (K8s Service of type Loadbalancer)
¢ Kubernetes Ingress
¢ Use external DB or use DB-less mode
¢ Configuration is done using REST API
µSvc1
µSvc 2
PostgresSQL Cluster
Client
Seite 22
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
Kong and Kubernetes (Kubernetes Ingress)
¢ API Gateway should run as close as possbile
to the services to secure
¢ Run Kong in a Kubernetes-native fashion
¢ Kong can be run as Kubernetes Ingress1
¢ Extends Kubernetes using Custom Resource
Definitions (CRDs)
¢ KongPlugins
¢ KongConsumers
¢ KongCredentials
¢ KongIngress
¢ Uses Kubernetes etcd for Kong configuration data
¢ Note restrictions because of DB-less mode
µSvc1
µSvc 2
Client
1)
Open Source: Kong Ingress Controller
Enterprise. Kong for Kubernetes Enterprise
Seite 23
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
Benefits and limitations of Kong deployded in Ingress
mode
¢ Kubernetes-native management of Kong resources
¢ Avoid another level of abstraction
¢ Kong in Microgateway mode needs to be exposed from Kubernetes Cluster
¢ Less dependencies because no database is involved
¢ Kong in ingress mode also has its limitations:
¢ Plugin incompatibility
¢ Kong Enterprise:
¢ Kong Manager read-only
¢ Kong Dev Portal not available
¢ No support for additional Enterprise features like Kong Brain or Immunity
Seite 24
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
Hybrid architecture to connect Cloud and On-premises
¢ The world is hybrid!
¢ Multi-Cloud will be default, not an
exception!
¢ Run Kong in hybrid mode
¢ Control Plane (CP), where configuration is
managed and the Admin API is served
from
¢ Data Plane (DP), which serves traffic for
the proxy
On-premises
CP
DP
DP
DP
Seite 25
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
Benefits and limitations of Kong hybrid mode
¢ Separation into CP and DP brings the following advantages:
¢ Deployment flexibility
¢ Increased reliability
¢ Traffic reduction
¢ Increased security
¢ Ease of management
¢ Hybrid mode also has its limitations:
¢ Configuration inflexibility
¢ Plugin incompatibility
¢ Custom Plugins need to be deployed on both the CP and the DP
Seite 26
© OPITZ CONSULTING 2020 Seite 27
Demo
4
Flexible, hybrid API-led software architectures with Kong
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Seite 28
Demo scenario
¢ Create Kong API definition
¢ Service
¢ Route
¢ Add plugins and a consumer
¢ Key-Auth
¢ Rate limit
¢ Kong administration is done using
¢ Kong Admin API
¢ Konga Admin UI
¢ decK
Demo-Code: https://github.com/svenbernhardt/kong-simple-demo
Client Demo
Svc
Konga
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
Kong decK
¢ Simple CLI tool
¢ Helps to manage Kong configurations in a declarative way
¢ Main purpose:
¢ Sync configuration o a running Kong cluster
¢ Diff configurations to discover manual changes
¢ Backup the current configuration
¢ Ideally to support CI/CD requirements and build automation
¢ More about decK: https://tinyurl.com/y27hf85q
Seite 29
© OPITZ CONSULTING 2020 Seite 30
Summary
5
Flexible, hybrid API-led software architectures with Kong
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Seite 31
Key takeaways
¢ Kong is a modern next-gen API platform that help to gain agility
¢ Flexible and lightweight
¢ Scalable
¢ Extensible
¢ Ease-of-use with respect to
¢ Monitoring
¢ Configuration
¢ Operations
¢ Kong API Gateway is capable to tackle different challenges and address
multiple use cases
¢ Hybrid
¢ Multi Cloud
¢ On-premise
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
With great power, comes great responsibility - Avoid API
sandwich architectures
Seite 32
Source: https://tinyurl.com/y5zxgjz4
© OPITZ CONSULTING 2020 Seite 33
Q & A
Flexible, hybrid API-led software architectures with Kong
© OPITZ CONSULTING 2020
¢¢¢ Digitale Service Manufaktur
@OC_WIRE
OPITZCONSULTING
opitzconsulting
opitz-consulting-bcb8-1009116
WWW.OPITZ-CONSULTING.COM
Thanks for your attention!
Flexible, hybrid API-led software architectures with Kong
Sven Bernhardt
Chief Architect / Integration Evangelist | Oracle ACE Director
OPITZ CONSULTING Deutschland GmbH
Kirchstrasse 6, 51647 Gummersbach, Germany
Phone: +49 172 2193529
Mail: sven.bernhardt@opitz-consulting.com
@sbernhardt
https://svenbernhardt.wordpress.com
Seite 34
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
API Management and Big Data
¢ Project Purpose: Implement a Big Data platform for
¢ Data collection and processing
¢ Data analysis
¢ Type of data:
¢ Unstructured data (Binary Data)
¢ Structured data (Metadata, configuration data)
¢ Main purpose of API Management
¢ AuthN/AuthZ for accessing the data stored in the platform
¢ Track API usage
¢ Integrate with other business departments
Seite 35
© OPITZ CONSULTING 2020
Admin
App
Analytics
App 1
Analytics
App 2
Landing
Zone Data Pipeline /
Data Ingestion
Metadata
Store
Content
Store
Rawdata
Store
Big Data Platform
DataLake
Data Access
APIexposure
APIexposure
APIexposure
Streaming & Stream processing
DataSources(unstructured,
structured)
DataSources
(event-based) Presenta
tion &
Analytics
Analytics
App 3
API exposure
Decoding &
ProcessingJava
36
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
Example flow for accessing data from an arbitrary client
Data
Service
Client
OpenLDAP
Server
User and
group data
OpenID
Connect Token
Call Out to
Upstream
Svc
Retriev file
reference
Retrieve file
Query file by
criteria
AuthN:
• API Key
• OpenID Connect
AuthZ:
• LDAP groups (API Resource-level protection)
Seite 37
© OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong
Development approach
¢ APIs are developed using an API design-first approach
¢ API contracts are published to Kong Developer portal
¢ API Backend services are developed in Spring Boot
¢ Build and deployment is done using Jenkins
¢ Checkout and Build service
¢ API artifacts are managed using decK
Seite 38

More Related Content

PDF
DevOps for beginners
PDF
MSA 전략 1: 마이크로서비스, 어떻게 디자인 할 것인가?
PDF
Kafka for Real-Time Replication between Edge and Hybrid Cloud
PDF
How Netflix Is Solving Authorization Across Their Cloud
PPTX
Serverless computing
PDF
Designing APIs with OpenAPI Spec
ODP
Kong API Gateway
PDF
Apache Flink 101 - the rise of stream processing and beyond
DevOps for beginners
MSA 전략 1: 마이크로서비스, 어떻게 디자인 할 것인가?
Kafka for Real-Time Replication between Edge and Hybrid Cloud
How Netflix Is Solving Authorization Across Their Cloud
Serverless computing
Designing APIs with OpenAPI Spec
Kong API Gateway
Apache Flink 101 - the rise of stream processing and beyond

What's hot (20)

PPTX
Azure Bicep - An Introduction
PDF
Apigee Demo: API Platform Overview
PPTX
Customer case - Dynatrace Monitoring Redefined
DOC
Balaji Resume
PDF
What is REST API? REST API Concepts and Examples | Edureka
PDF
What's new in API Connect and DataPower - 2019
PPTX
Intro to Azure DevOps
PDF
Cloud Design Patterns - PRESCRIPTIVE ARCHITECTURE GUIDANCE FOR CLOUD APPLICAT...
PDF
Hyperledger Indy tutorial
PDF
Microservices with Java, Spring Boot and Spring Cloud
PDF
Let's build Developer Portal with Backstage
PPTX
Kafka connect 101
PDF
I Love APIs 2015 : Zero to Thousands TPS Private Cloud Operations Workshop
PPTX
Dynatrace
PDF
Serverless Kafka on AWS as Part of a Cloud-native Data Lake Architecture
PDF
APIsecure 2023 - Approaching Multicloud API Security USing Metacloud, David L...
PPTX
AWS SQS SNS
PDF
Tieto Application Operations
PPTX
FIWAREシステム内の短期履歴の管理
Azure Bicep - An Introduction
Apigee Demo: API Platform Overview
Customer case - Dynatrace Monitoring Redefined
Balaji Resume
What is REST API? REST API Concepts and Examples | Edureka
What's new in API Connect and DataPower - 2019
Intro to Azure DevOps
Cloud Design Patterns - PRESCRIPTIVE ARCHITECTURE GUIDANCE FOR CLOUD APPLICAT...
Hyperledger Indy tutorial
Microservices with Java, Spring Boot and Spring Cloud
Let's build Developer Portal with Backstage
Kafka connect 101
I Love APIs 2015 : Zero to Thousands TPS Private Cloud Operations Workshop
Dynatrace
Serverless Kafka on AWS as Part of a Cloud-native Data Lake Architecture
APIsecure 2023 - Approaching Multicloud API Security USing Metacloud, David L...
AWS SQS SNS
Tieto Application Operations
FIWAREシステム内の短期履歴の管理
Ad

Similar to Flexible, hybrid API-led software architectures with Kong (20)

PDF
Kong 101 - Jumpstart into the world of APIs
PDF
Introduction to Kong API Gateway
PDF
Kong Workshop.pdf
PDF
Kong API Gateway.pdf
PDF
Kong session, CloudNative Days Tokyo 2021
PDF
Managing Multi-Platform and Multi-Region APIs with Kong Konnect and AWS
PDF
apidays LIVE Paris 2021 - Synchronous Communication Patterns by Sébastien Ber...
PDF
apidays LIVE JAKARTA - Enterprise API management in agile integration by Ragh...
PDF
Deploying Kong with Mesosphere DC/OS
PDF
Driving success in the cloud with NGINX
PDF
Leverage An Intelligent Application Infrastructure for Competitive Advantage.
PDF
API Gateway or Service Mesh - Complementary or excluding concepts
PDF
Modern Web development and operations practices
PDF
API Gateway or Service mesh - Complementary or excluding concepts
PPTX
Accelerating the Consumption of APIs Built on Cloud Foundry
PDF
Manage your APIs and Microservices with an API Gateway
PPTX
Ultimate Guide to Microservice Architecture on Kubernetes
PPTX
Scylla Summit 2018: Kong & Cassandra/Scylla for distributed APIs and Microser...
PDF
CloudBuilders 2022: "The Past, Present, and Future of Cloud Native API Gateways"
PDF
GOTOpia 2020: "The Past, Present, and Future of Cloud Native API Gateways"
Kong 101 - Jumpstart into the world of APIs
Introduction to Kong API Gateway
Kong Workshop.pdf
Kong API Gateway.pdf
Kong session, CloudNative Days Tokyo 2021
Managing Multi-Platform and Multi-Region APIs with Kong Konnect and AWS
apidays LIVE Paris 2021 - Synchronous Communication Patterns by Sébastien Ber...
apidays LIVE JAKARTA - Enterprise API management in agile integration by Ragh...
Deploying Kong with Mesosphere DC/OS
Driving success in the cloud with NGINX
Leverage An Intelligent Application Infrastructure for Competitive Advantage.
API Gateway or Service Mesh - Complementary or excluding concepts
Modern Web development and operations practices
API Gateway or Service mesh - Complementary or excluding concepts
Accelerating the Consumption of APIs Built on Cloud Foundry
Manage your APIs and Microservices with an API Gateway
Ultimate Guide to Microservice Architecture on Kubernetes
Scylla Summit 2018: Kong & Cassandra/Scylla for distributed APIs and Microser...
CloudBuilders 2022: "The Past, Present, and Future of Cloud Native API Gateways"
GOTOpia 2020: "The Past, Present, and Future of Cloud Native API Gateways"
Ad

More from Sven Bernhardt (20)

PDF
The integration revolution: Building bridges between On-premises and Cloud ec...
PDF
Efficient development of smart apps: The role of AI gateways
PDF
Next-level Kubernetes Service Management with an API gateway
PDF
Effective and simple - integration architectures with Apache Camel and Quarkus
PDF
One Gateway to Rule them All: Building a Federated API Management Platform
PDF
Modernization options for Oracle Forms applications
PDF
Elevating Development: Embracing APIOps for Enhanced Developer Productivity
PDF
Declarative observability management for Microservice architectures
PDF
Integration architectures based on Microservices, APIs and events
PDF
Build and Manage Multi-Cloud Applications Using Kuma
PDF
Build and Manage Multi-Cloud Applications Using Kuma
PDF
Torch the light - Implementing Observability for Microservice Architectures
PDF
Analytics meets Integration - Modern Development with Data APIs
PDF
Modern Integration based on OCI Cloud-native Services
PDF
Service Mesh Advanced Use Cases
PDF
Cloud-native Application Development on OCI
PDF
Rumble in the Jungle - API Kickstart with Kong
PDF
Cloud-native Application Development - The new normal
PDF
Efficient API delivery with APIOps
PDF
Implementing Cloud-native apps on OCI
The integration revolution: Building bridges between On-premises and Cloud ec...
Efficient development of smart apps: The role of AI gateways
Next-level Kubernetes Service Management with an API gateway
Effective and simple - integration architectures with Apache Camel and Quarkus
One Gateway to Rule them All: Building a Federated API Management Platform
Modernization options for Oracle Forms applications
Elevating Development: Embracing APIOps for Enhanced Developer Productivity
Declarative observability management for Microservice architectures
Integration architectures based on Microservices, APIs and events
Build and Manage Multi-Cloud Applications Using Kuma
Build and Manage Multi-Cloud Applications Using Kuma
Torch the light - Implementing Observability for Microservice Architectures
Analytics meets Integration - Modern Development with Data APIs
Modern Integration based on OCI Cloud-native Services
Service Mesh Advanced Use Cases
Cloud-native Application Development on OCI
Rumble in the Jungle - API Kickstart with Kong
Cloud-native Application Development - The new normal
Efficient API delivery with APIOps
Implementing Cloud-native apps on OCI

Recently uploaded (20)

PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPT
Teaching material agriculture food technology
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Electronic commerce courselecture one. Pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
KodekX | Application Modernization Development
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Teaching material agriculture food technology
NewMind AI Monthly Chronicles - July 2025
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Big Data Technologies - Introduction.pptx
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
20250228 LYD VKU AI Blended-Learning.pptx
Chapter 3 Spatial Domain Image Processing.pdf
NewMind AI Weekly Chronicles - August'25 Week I
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
CIFDAQ's Market Insight: SEC Turns Pro Crypto
MYSQL Presentation for SQL database connectivity
Electronic commerce courselecture one. Pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Mobile App Security Testing_ A Comprehensive Guide.pdf
KodekX | Application Modernization Development
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf

Flexible, hybrid API-led software architectures with Kong

  • 1. © OPITZ CONSULTING 2020 ¢¢¢ Digitale Service Manufaktur © OPITZ CONSULTING 2020 Sven Bernhardt, Chief Architect / Integration Evangelist Flexible, hybrid API-led software architectures with Kong
  • 2. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong That’s me Sven Bernhardt Cloud-Native enthusiast, API & integration geek. Always curious how new technologies and concepts can help to make things more valuable and efficient. Proud father of a son, soccer fan and player. Loves listening to good hand- made music (Heavy Metal) and attending festivals. ¢ Chief Architect / Integration Evangelist @OPITZ CONSULTING Deutschland GmbH ¢ Oracle ACE Director @sbernhardt https://svenbernhardt.wordpress.com/ Seite 2
  • 3. © OPITZ CONSULTING 2020 Seite 3 Agenda 1 2 3 4 5 Why API-led? API Management with Kong Kong Deployment options Demo Summary Flexible, hybrid API-led software architectures with Kong
  • 4. © OPITZ CONSULTING 2020 Seite 4 Why API-led? 1 Flexible, hybrid API-led software architectures with Kong
  • 5. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong API-led architectures enables access to business capabilities in a secure, comprehensible way ¢ Provides a standard-based interface for accessing the functionality ¢ Decouples Consumer and Provider ¢ Implements cross-cutting concerns, declared as policies ¢ AuthN/AuthZ ¢ Throttling/Rate Limit ¢ Routing ¢ Caching ¢ … ¢ Policy enforcement done by a specific runtime component µService API API Exposure Seite 5
  • 6. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong APIs further agility and help to create new digital products and services Source: Enterprise API Management, Luis Weir, 2019 Seite 6
  • 7. © OPITZ CONSULTING 2020 Standard(On- Prem) DigitalProduct Monolith DigitalProduct Business Domain Shared Application Platform Shared Services (Foundation) Hybrid, flexible Infrastructure Standard(On- Prem) StandardSaaS Business DomainBusiness Domain Digital Product Overall vision: Business-driven product-centric application world Flexible, hybrid API-led software architectures with Kong Seite 7
  • 8. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong IT system landscapes nowadays are hybrid, heterogenous and often consists of data silos ¢ Hybrid: Apps are starting to be distributed across both Cloud and on- premises ¢ Heterogenous: ¢ Monolithic systems ¢ Legacy applications (Mainframe-based) ¢ Custom “standard” software (like custom ERP solutions, etc.) ¢ Commerical off-the-shelf solutions (COTS) ¢ Software as a Service solutions (SaaS) ¢ Cloud-native apps ¢ Function-based apps (FaaS) Source: https://tinyurl.com/yyx3yzg9 Seite 8
  • 9. © OPITZ CONSULTING 2020 Seite 9 API Management with Kong 2 Flexible, hybrid API-led software architectures with Kong
  • 10. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Kong Gateway architecture ¢ Kong Microservice API Gateway ¢ Lightweight ¢ Scalable ¢ Modular ¢ Infrastructure-agnostic ¢ Deployed on top of reliable technologies ¢ NGINX ¢ PostgreSQL or Apache Cassandra ¢ Extensible using Plugins and other Open Source compnents ¢ API-driven: Fully configurable using a REST API Source: https://tinyurl.com/yxvhp6ej Seite 10
  • 11. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Kong API Platform components Source: https://tinyurl.com/yyksp3pa Seite 11
  • 12. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Kong basics µService 2 µService 1Client 1 Client 2 Client 3 COTS GET POST, PUT, DELETE GET, POST, PUT, DELETE GET, POST, PUT, DELETE Clients Services Routes Backend apps Seite 12
  • 13. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Kong basics µService 2 µService 1 Route Service Client 1 GET, POST, PUT, DELETE µService 2 Route Client 2 GET, POST, PUT, DELETE Plugins Upstream Consum er Seite 13
  • 14. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Kong persistence ¢ Types of data stored by Kong Gateway ¢ Configuration data, for Services, Routes, Plugins or Cluster configuration ¢ API usage data ¢ Different persistence options depending on data classification and use case Configuration & API Usage data Configuration & API Usage data API Usage data Seite 14
  • 15. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Even more lightweight with Kong DB-less mode ¢ Kong can run without a database (DB-less mode since Kong 1.1) ¢ Configuration is managed declaratively using a respective file ¢ Benefits: ¢ Reduced number of dependencies ¢ Good fit for automation in CI/CD scenarios ¢ More flexible deployment option for Kong Gateway ¢ Restrictions: ¢ Features in Kong Enterprise that requires DB (Dev Portal, Brain, Immunity, etc.) ¢ Not all Plugins are fully compatible with DB-less mode (Further details see here) Seite 15
  • 16. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Kong management and configuration ¢ Admin API (REST) ¢ Easy to use and to integrate in CI/CD pipelines ¢ Only needs HTTP CLI tool like CURL or HTTPie ¢ Konga Admin UI ¢ Leverages Admin API functionality ¢ Allows Kong basic administration ¢ Open Source ¢ Kong Manager ¢ Leverages Admin API functionality ¢ Allows Kong administration and API Usage tracking ¢ Commercial version (Kong Enterprise) Seite 16
  • 17. © OPITZ CONSULTING 2020 Seite 17 Deployment options 3 Flexible, hybrid API-led software architectures with Kong
  • 18. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Classic deployment model ¢ Usually we don’t start on a green field! ¢ Applications deployed directly on Bare Metal server ¢ Applicatoins deploed in virtualized environments ¢ Model: ¢ Deployment on Bare Metal ¢ Deployment on Virtual Machines (Vagrant) ¢ Dockerized Deployment ¢ Scenarios: ¢ Mainly Legacy/COTS applications ¢ Kong as Edge Gateway in DMZ VM / Bare Metal Host COTS Legacy Client ESB External/ Internet DMZ Internal Seite 18
  • 19. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Distributed deployment model ¢ API Gateway is like a door to enterprises to provide digital products and service to consumers ¢ Shouldn’t be Single point of failure (High Availability is mandatory) ¢ Model: ¢ Kong Cluster using PostgreSQL ¢ Kong Cluster using Cassandra ¢ Scenarios: ¢ Mainly Legacy/COTS applications ¢ Single DC setups VM / Bare Metal Host VM / Bare Metal Host VM / Bare Metal Host VM / Bare Metal Host Loadbalancer Loadbalancer DC 1 Seite 19
  • 20. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Distributed deployment model ¢ API Gateway is like a door to enterprises to provide digital products and service to consumers ¢ Shouldn’t be Single point of failure (High Availability is mandatory) ¢ Model: ¢ Kong Cluster using PostgreSQL ¢ Kong Cluster using Cassandra ¢ Scenarios: ¢ Mainly Legacy/COTS applications ¢ Multi DC setups VM / Bare Metal Host VM / Bare Metal Host VM / Bare Metal Host VM / Bare Metal Host DC 1 DC 2 Loadbalancer Seite 20
  • 21. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Have you heard of something called „Kubernetes“? ¢ Kubernetes is the new de-facto application platform ¢ Container orchestration platform developed by Google ¢ Abstracts Infrastructure, Network & Storage ¢ Cloud technologies enable infinite scalability and elasticity on a infrastructure level Seite 21
  • 22. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Kong and Kubernetes (Microgateway) ¢ API Gateway should run as close as possbile to the services to secure ¢ Run Kong in a Kubernetes-native fashion ¢ Kong can be run in a Microgateway-style on Kubernetes ¢ Run multiple Kong replicas ¢ Kong service is exposed using ¢ Load Balancer (K8s Service of type Loadbalancer) ¢ Kubernetes Ingress ¢ Use external DB or use DB-less mode ¢ Configuration is done using REST API µSvc1 µSvc 2 PostgresSQL Cluster Client Seite 22
  • 23. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Kong and Kubernetes (Kubernetes Ingress) ¢ API Gateway should run as close as possbile to the services to secure ¢ Run Kong in a Kubernetes-native fashion ¢ Kong can be run as Kubernetes Ingress1 ¢ Extends Kubernetes using Custom Resource Definitions (CRDs) ¢ KongPlugins ¢ KongConsumers ¢ KongCredentials ¢ KongIngress ¢ Uses Kubernetes etcd for Kong configuration data ¢ Note restrictions because of DB-less mode µSvc1 µSvc 2 Client 1) Open Source: Kong Ingress Controller Enterprise. Kong for Kubernetes Enterprise Seite 23
  • 24. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Benefits and limitations of Kong deployded in Ingress mode ¢ Kubernetes-native management of Kong resources ¢ Avoid another level of abstraction ¢ Kong in Microgateway mode needs to be exposed from Kubernetes Cluster ¢ Less dependencies because no database is involved ¢ Kong in ingress mode also has its limitations: ¢ Plugin incompatibility ¢ Kong Enterprise: ¢ Kong Manager read-only ¢ Kong Dev Portal not available ¢ No support for additional Enterprise features like Kong Brain or Immunity Seite 24
  • 25. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Hybrid architecture to connect Cloud and On-premises ¢ The world is hybrid! ¢ Multi-Cloud will be default, not an exception! ¢ Run Kong in hybrid mode ¢ Control Plane (CP), where configuration is managed and the Admin API is served from ¢ Data Plane (DP), which serves traffic for the proxy On-premises CP DP DP DP Seite 25
  • 26. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Benefits and limitations of Kong hybrid mode ¢ Separation into CP and DP brings the following advantages: ¢ Deployment flexibility ¢ Increased reliability ¢ Traffic reduction ¢ Increased security ¢ Ease of management ¢ Hybrid mode also has its limitations: ¢ Configuration inflexibility ¢ Plugin incompatibility ¢ Custom Plugins need to be deployed on both the CP and the DP Seite 26
  • 27. © OPITZ CONSULTING 2020 Seite 27 Demo 4 Flexible, hybrid API-led software architectures with Kong
  • 28. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Seite 28 Demo scenario ¢ Create Kong API definition ¢ Service ¢ Route ¢ Add plugins and a consumer ¢ Key-Auth ¢ Rate limit ¢ Kong administration is done using ¢ Kong Admin API ¢ Konga Admin UI ¢ decK Demo-Code: https://github.com/svenbernhardt/kong-simple-demo Client Demo Svc Konga
  • 29. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Kong decK ¢ Simple CLI tool ¢ Helps to manage Kong configurations in a declarative way ¢ Main purpose: ¢ Sync configuration o a running Kong cluster ¢ Diff configurations to discover manual changes ¢ Backup the current configuration ¢ Ideally to support CI/CD requirements and build automation ¢ More about decK: https://tinyurl.com/y27hf85q Seite 29
  • 30. © OPITZ CONSULTING 2020 Seite 30 Summary 5 Flexible, hybrid API-led software architectures with Kong
  • 31. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Seite 31 Key takeaways ¢ Kong is a modern next-gen API platform that help to gain agility ¢ Flexible and lightweight ¢ Scalable ¢ Extensible ¢ Ease-of-use with respect to ¢ Monitoring ¢ Configuration ¢ Operations ¢ Kong API Gateway is capable to tackle different challenges and address multiple use cases ¢ Hybrid ¢ Multi Cloud ¢ On-premise
  • 32. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong With great power, comes great responsibility - Avoid API sandwich architectures Seite 32 Source: https://tinyurl.com/y5zxgjz4
  • 33. © OPITZ CONSULTING 2020 Seite 33 Q & A Flexible, hybrid API-led software architectures with Kong
  • 34. © OPITZ CONSULTING 2020 ¢¢¢ Digitale Service Manufaktur @OC_WIRE OPITZCONSULTING opitzconsulting opitz-consulting-bcb8-1009116 WWW.OPITZ-CONSULTING.COM Thanks for your attention! Flexible, hybrid API-led software architectures with Kong Sven Bernhardt Chief Architect / Integration Evangelist | Oracle ACE Director OPITZ CONSULTING Deutschland GmbH Kirchstrasse 6, 51647 Gummersbach, Germany Phone: +49 172 2193529 Mail: sven.bernhardt@opitz-consulting.com @sbernhardt https://svenbernhardt.wordpress.com Seite 34
  • 35. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong API Management and Big Data ¢ Project Purpose: Implement a Big Data platform for ¢ Data collection and processing ¢ Data analysis ¢ Type of data: ¢ Unstructured data (Binary Data) ¢ Structured data (Metadata, configuration data) ¢ Main purpose of API Management ¢ AuthN/AuthZ for accessing the data stored in the platform ¢ Track API usage ¢ Integrate with other business departments Seite 35
  • 36. © OPITZ CONSULTING 2020 Admin App Analytics App 1 Analytics App 2 Landing Zone Data Pipeline / Data Ingestion Metadata Store Content Store Rawdata Store Big Data Platform DataLake Data Access APIexposure APIexposure APIexposure Streaming & Stream processing DataSources(unstructured, structured) DataSources (event-based) Presenta tion & Analytics Analytics App 3 API exposure Decoding & ProcessingJava 36
  • 37. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Example flow for accessing data from an arbitrary client Data Service Client OpenLDAP Server User and group data OpenID Connect Token Call Out to Upstream Svc Retriev file reference Retrieve file Query file by criteria AuthN: • API Key • OpenID Connect AuthZ: • LDAP groups (API Resource-level protection) Seite 37
  • 38. © OPITZ CONSULTING 2020 Flexible, hybrid API-led software architectures with Kong Development approach ¢ APIs are developed using an API design-first approach ¢ API contracts are published to Kong Developer portal ¢ API Backend services are developed in Spring Boot ¢ Build and deployment is done using Jenkins ¢ Checkout and Build service ¢ API artifacts are managed using decK Seite 38