# Connecting Kong and Solace: Building Smarter Event-Driven APIs
Hugo Guerrero
Principal Tech PMM, Kong
Bringing APIs and events together has always been a challenge. REST APIs give developers a familiar interface, while event brokers like **Solace Broker** excel at fan-out, filtering, and scalable, reliable event delivery. The tricky part? Bridging these two worlds without building a lot of custom glue.
That’s exactly what the new **Kong plugin for Solace upstream mediation** does. It lets you expose Solace event streams through Kong Gateway, applying the same policies and developer experience you already use for REST APIs.
In this post, I’ll walk you through a demo that shows how Kong makes Solace better: not just a passthrough, but a smart, policy-driven **API front door for events**.
## Why Kong in front of Solace?
Running Kong in front of your Solace Broker adds real benefits:
- **Authentication & Access Control** – protect your broker from unauthorized publishers.
- **Validation & Transformation** – enforce schemas, sanitize data, and map REST calls into event topics.
- **Enrichment & Observability** – add correlation IDs, apply tracing, and log events without touching your apps.
- **Protection** – rate limits, request size caps, and termination policies stop bad clients from overwhelming Solace.
- **Consistency** – the same governance you use for REST APIs now applies to events.
## Demo flow: Order processing
Imagine an **order service** that accepts REST requests and publishes them as events.
**1. API Consumer** calls Kong with a standard POST request:
POST /solace/orders/new
{"orderId":"12345","customerId":"567","items":[{"sku":"ABC123","qty":2},{"sku":"XYZ789","qty":1}],"total":149.99}
**2. Kong Gateway** applies authentication, validates the payload, adds a correlation ID, rate limits traffic, and transforms the request into a Solace event.
**3. Solace Broker** receives the newly transformed event on the topic orders/new.
**4. Subscribers** (like Inventory, Billing, and Analytics services) consume the event in real time. You can watch this live in the **Solace Manager “Try Me!”** UI.
Prerequisites
Before jumping into the steps, you’ll need a few things set up:
We’ll load Kong’s configuration using decK. The repository includes a kong.yaml file that defines a service pointing to your Solace broker, a /solace route, and the Solace upstream plugin.
Update the kong.yaml file with your Solace connection details. Here is what the configuration looks like:
Watch the full JSON payload (with x-correlation-id) arrive in real time.
Play with the policies:
Send a malformed order (missing items) → Kong rejects it with 400.
Flood requests → Kong enforces rate limits (429).
Try without auth → Kong blocks unauthorized traffic.
This demonstrates Kong’s mediation: developers can interact with Solace topics through a standard API front door, while Solace subscribers consume events as usual.
## The benefits in action
By running this demo, you’ve watched Kong actively:
- **Authenticate & authorize** clients before they can publish.
- **Validate** event payloads, preventing garbage from entering Solace.
The line between APIs and events is disappearing. With Kong Gateway operating in front of Solace, you aren't just connecting two separate systems—you are governing, protecting, and enriching event flows with the exact same maturity you apply to your REST APIs.
That’s how you make **event-driven APIs enterprise-ready**.
Traditional APIs are, in a word, predictable. You know what you're getting: Compute costs that don't surprise you Traffic patterns that behave themselves Clean, well-defined request and response cycles AI APIs, especially anything that runs on LLMs
The widespread adoption of Kafka and event streaming platforms is evident across several enterprises, where they serve as the backbone of critical operations, ranging from financial transactions to AI inference pipelines. However, in the domains of
Your Kafka Doesn't Have to Live Behind a Wall
When teams resort to VPC peering or PrivateLink to expose Kafka, they're not solving the problem — they're managing it, one network topology decision at a time. Every new external consumer adds compl
Architecture Overview
A multicloud DCGW architecture typically contains three main layers.
1\. Konnect Control Plane
The SaaS control plane manages configuration, plugins, and policies. All gateways connect securely to this layer.
2\. Dedicated C
Kong customers include some of the most forward-thinking, tech-savvy organizations in the world. And while we’re proud to help them innovate through traditional APIs, the reality is that their ambitions don’t stop there. Increasingly, our customers a
Free collaboration with Postman — a myth On March 1st, 2026, Postman discontinued free collaboration for small teams. Now , Git or Cloud-native collaboration requires a Team plan starting at $19 per person per month. That means even a 3-person team
The Shifting Economic Landscape: The AI token economy in 2026 is evolving, and enterprise leaders must distinguish between low-cost input tokens and high-premium output tokens to maintain profitability. Agentic AI Financial Risks: The transition t