The Forward to Virtual Cluster policy forwards messages from Kafka clients to virtual clusters configured with port or SNI routing.
Forward to Virtual Cluster
Related Documentation
Incompatible with
on-prem
Tags
Use cases
The following examples provide some common configurations for the Forward to Virtual Cluster policy:
|
Use case |
Description |
|---|---|
| Example: Port mapping | Forward to virtual clusters using port mapping. |
| Example: SNI routing | Forward to virtual clusters using SNI routing. |
| How-to: Get started with Event Gateway | Use port mapping for testing and demo environments. |
| How-to: SNI routing with TLS | Set up SNI routing to send traffic to multiple virtual clusters in the same Event Gateway control plane without opening more ports on the data plane. |
Note: When using
port_mapping, there must be a mapping port for each broker on the backend cluster.
Configuring multiple policies
Each listener can have multiple Forward to Virtual Cluster policies configured.
However, there can only be one instance of port_mapping.
When multiple Forward to Virtual Cluster policies are configured, the first one that matches the connection is used. If no policy matches, the connection is rejected.