• Post category:StudyBullet-16
  • Reading time:11 mins read


Master the Art of API Management with Kong – Your Step-by-Step Guide to Building Secure, Scalable, and Efficient APIs

What you will learn

Introduction: Understand the benefits of using Kong in our full-stack application

Fundamentals of API Management: Understanding the basics of APIs and how Kong API Gateway facilitates their management

Installation and Configuration: How to install Kong API Gateway and configure it for different environments

Managing Services and Routes: Creating and managing services and routes within Kong

Securing APIs: Implementing security measures such as authentication, authorization, and encryption to protect APIs

Learn AI Gateway with Multi-LLM Support: For Generative AI Developers

Traffic Control: Techniques for controlling and optimizing the flow of API traffic, including rate limiting and load balancing

Monitoring and Analytics: Setting up monitoring tools to track API performance and analyze usage data

Plugin Development: Learning how to extend Kong’s functionality with custom plugins written in Lua

Best Practices: Understanding best practices for API management and operations within Kong

Description

In this course, you will learn Kong, Kong API Gateway is a powerful tool for managing APIs in a microservices architecture. Here are some common use cases for Kong API Gateway and things we are going to cover in this course.


Get Instant Notification of New Courses on our Telegram channel.


  • Installing Kong: Installing Kong via Docker
  • Interacting with Kong via Konga: Open-Source GUI to Kong Admin API
  • Interacting Kong via REST API: create services, Routes, Consumers, and plugins in Kong via REST APIs.
  • Microservices Abstraction: It acts as a single entry point for all backend services, simplifying the development, deployment, and management of systems.
  • Security and Authentication: Kong can manage security concerns like SSL/TLS termination, OAuth2.0, JWT, API keys, and more, ensuring secure access to your services.
  • Traffic Control: With features like rate limiting, request size limiting, and circuit breakers, Kong helps control the traffic flow to your services.
  • Analytics and Monitoring: Kong provides real-time analytics and monitoring capabilities, allowing you to track API performance and usage patterns.
  • AI Gateway with Multi-LLM Support: This allows developers who want to integrate one or more LLMs into their products to be more productive and ship AI capabilities faster while offering a solution to architects and platform teams that ensures visibility, control, and compliance on every AI request sent by the teams. And because it’s built on top of Kong Gateway, it will be possible to orchestrate AI flows in the cloud or on self-hosted LLMs with the best performance and the lowest latency, which are critical in AI-based applications.
  • High Availability: Kong supports clustering for high availability, ensuring that the API gateway remains operational even if some nodes fail.
  • Load Balancing: It can distribute incoming API traffic across multiple backend services, improving performance and reliability.
  • Request and Response Transformations: Kong can modify requests and responses on the fly, such as adding, removing, or modifying headers.
  • Decoupling: By decoupling the client-facing API endpoints from the underlying microservice architecture, Kong allows for seamless updates and changes to the services without affecting the clients.
  • Extending Kong via Creating Custom Plugins in Lua: Creating custom plugins in Lua for Kong API Gateway allows you to extend its functionality to suit your specific needs.
  • Learn Lua (Optional): We are going to learn Lua Programming Language.
English
language

Content

Introduction

Course Outline
What is Kong (Docs)
Kong Overview
About Me
Coding Resources
Making the Best Use of This Course

Installation

Install WSL
Install Docker
Install Kong via Docker (Docs)
Docker Compose Code
Useful Docker Commands
Install Kong Gateway
Konga Direct Installation (Optional)
Install PostgreSQL Database Directly (Optional)
Install pgAdmin Directly (Optional)
Exploring Kong Database
Connectiong Kong with Konga
Required Ports (Docs)

API Endpoint Using FastAPI (Optional)

Introduction to FastAPI
GitHub Repo (Docs)
Create an API Endpoint using FastAPI

Postman

Introduction
Postman Installation
Add a FastAPI Application
Adding API Endpoint to Postman

Kong

Kong Manager
Kong Service
Kong Route
Kong Consumers
Kong Plugins
Kong Upstreams

Kong Admin API

Kong Admin API

Konga (Optional)

Konga UI

Kong Authentication Plugins

Basic Authentication
HMAC Authentication
HMAC Authentication Errors (Docs)
Key Authentication
Key Authentication Tips (Docs)
JWT Authentication
OAuth 2.0 Authentication

Kong Security Plugins

Bot Detection
Kong Regular Expressions (Docs)
IP Restriction

Kong Traffic Control Plugins

ACL
AI Prompt Guard
Proxy Caching
Rate Limiting
Request Size Limiting
Request Termination

Serverless Plugins

AI Proxy

Kong Analytics & Monitoring Plugins

Prometheus
Zipkin

Kong Transformations Plugins

AI Prompt Decorator
AI Prompt Template
Correlation ID
Request Transformer
Response Transformer

Kong Logging Plugins

Logging Plugins
UDP Logs with EKL Stack
Configure ELK Stack (Docs)
Visualize API Analytics

Creating Custom Kong Plugin with Lua

Custom Plugin Schema
Custom Plugin Handler
Deploy Custom Plugin
Deploy Custom Plugin in Kong (Docs)
Run Custom Plugin

Application Demo

GlobeHopper Architecture
GlobeHopper (App created with Kong API Gateway)

Lua Programming (Optional)

Introduction to Lua
Installing Lua
Hello World in Lua
Data Types in Lua
Comments in Lua
Variables in Lua
Strings in Lua
Math in Lua
If Else in Lua
Loops in Lua
User Input in Lua
Tables in Lua
OS in Lua
Functions in Lua
FileHandling in Lua
CustomModule in Lua
OOP in Lua
Co-Routines in Lua
Metamethods in Lua
What’s next ?

Conclusion

Conclusion