Adds notes about streaming subscription not supported by bulk or routes

Signed-off-by: joshvanl <me@joshvanl.dev>
This commit is contained in:
joshvanl 2024-06-23 11:44:47 +01:00
parent 357cca2633
commit 97ff3ef151
2 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,7 @@ Pub/sub routing is an implementation of [content-based routing](https://www.ente
While routing can be implemented with code, keeping routing rules external from the application can improve portability. While routing can be implemented with code, keeping routing rules external from the application can improve portability.
This feature is available to both the [declarative and programmatic subscription approaches]({{< ref subscription-methods.md >}}). This feature is available to both the [declarative and programmatic subscription approaches]({{< ref subscription-methods.md >}}), however does not apply to streaming subscriptions.
## Declarative subscription ## Declarative subscription

View File

@ -272,10 +272,11 @@ Invoke-RestMethod -Method Post -ContentType 'application/json' -Uri 'http://loca
## Subscribing messages in bulk ## Subscribing messages in bulk
The bulk subscribe API allows you to subscribe multiple messages from a topic in a single request. The bulk subscribe API allows you to subscribe multiple messages from a topic in a single request.
As we know from [How to: Publish & Subscribe to topics]({{< ref howto-publish-subscribe.md >}}), there are two ways to subscribe to topic(s): As we know from [How to: Publish & Subscribe to topics]({{< ref howto-publish-subscribe.md >}}), there are three ways to subscribe to topic(s):
- **Declaratively** - subscriptions are defined in an external file. - **Declaratively** - subscriptions are defined in an external file.
- **Programmatically** - subscriptions are defined in code. - **Programmatically** - subscriptions are defined in code.
- **Streaming** - *Not supported* for bulk subscribe as messages are sent to handler code.
To Bulk Subscribe to topic(s), we just need to use `bulkSubscribe` spec attribute, something like following: To Bulk Subscribe to topic(s), we just need to use `bulkSubscribe` spec attribute, something like following: