Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 927 Bytes

pip_307.md

File metadata and controls

30 lines (21 loc) · 927 Bytes

Background knowledge

WebSocket currently only supports the consumption of a single topic, which cannot satisfy users' consumption scenarios of multiple topics.

Motivation

Supports consumption of multiple topics or pattern topics.

Detailed Design

Currently, the topic name is specified through path for consumption, like:

/ws/v2/consumer/persistent/my-property/my-ns/my-topic/my-subscription

If we want to support subscribing multi-topics, adding parameters will be confusing. Therefore, add a new v3 request path as follows:

For consumption of pattern-topics:

/ws/v3/consumer/subscription?topicsPattern="a.*"

For consumption of multi-topics:

/ws/v3/consumer/subscription?topics="a,b,c"

Links