Smart Routing

General

KubeMQ smart routing is In-flight and routing tables messaging feature which allows to multicast a messages to many destinations in single operation.

Multicast Destinations

RPC and Queues senders can multicast a message to many channels at once, even to a different messaging pattern. Separate each destination with a ; and specify the message pattern type with :.

Message Pattern Format

Predefined Routes - Smart routes

A predefined routes rule can be set with KubeMQ Smart Routing configuration and can be used like that:

Mixing Message Pattern destinations

Mixing message pattern destination is allowed. for example, an events sender can send a message to events_store subscriber and to a queues subscriber at the same time.

Examples

Smart Route Preload Configuration

A routing rule is defined by a record with two fields:

Routes cannot point to another Route Key

Example:

Two routing rules:

[
   {
      "Key":"all-to-foo-bar",
      "Routes":"events:foo.bar;events_store:foo.bar;queues:foo.bar"
   },
   {
      "Key":"sink-to-events-channel",
      "Routes":"events:sink"
   }
]

The Smart Route preload configuration feature is available only on KubeMQ Enterprise Edition.

Register for free 30 days license here.

Last updated