Service-gateway access enables a VMware Tanzu RabbitMQ for Tanzu Application Service on-demand service instance to connect to external components that are not on the same foundation as the service instance. These components could be on another foundation or hosted outside of the foundation.
For related procedures, see:
NoteService-gateway access is no longer in the beta stage. It works with Advanced Message Queuing Protocol (AMQP), MQ Telemetry Transport (MQTT), Simple (or Streaming) Text Orientated Messaging Protocol (STOMP), STOMP over a WebSocket connection (Web STOMP), and AMQP 1.0.
There are multiple use cases for service-gateway access. For example:
Service-gateway access to Tanzu RabbitMQ for Tanzu Application Service instances leverages the TCP router in TAS for VMs.
Any RabbitMQ requests that an app makes are forwarded through DNS to a load balancer that can route traffic from outside to inside the foundation. This load balancer opens a range of ports that are reserved for RabbitMQ traffic. When an app developer creates a service instance on a plan with service-gateway access enabled, a port from the range is provisioned for that service instance. The load balancer then forwards the requests for this Tanzu RabbitMQ for Tanzu Application Service service instance to the TCP router. The TCP router internally load balances between the Tanzu RabbitMQ for Tanzu Application Service service instance nodes.
The following diagram shows how the traffic is routed from apps to the RabbitMQ nodes in this case. All apps using this Tanzu RabbitMQ for Tanzu Application Service service instance follow the same route, irrespective of whether they are hosted on the foundation or are hosted outside of the foundation.
In the diagram, the TAS for VMs Tile Ports are a range of ports to facilitate TCP traffic to apps in TAS for VMs. The RabbitMQ Tile Ports are a range of ports used by RabbitMQ service instances.