Skip to main content
Ctrl+K
PyFlink 1.20+vvr.11.7.dev0 documentation - Home PyFlink 1.20+vvr.11.7.dev0 documentation - Home
  • API Reference
  • Examples
  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
  • PyFlink DataStream
    • StreamExecutionEnvironment
    • DataStream
    • Functions
    • State
    • Timer
    • Window
    • Checkpoint
    • Side Outputs
    • Asynchronous I/O
    • Connectors
    • Formats
  • PyFlink DataFrame
  • PyFlink Common
  • API Reference
  • PyFlink DataStream
  • Connectors
  • pyflink.datastream.connectors.pulsar.TopicRoutingMode

pyflink.datastream.connectors.pulsar.TopicRoutingMode#

class TopicRoutingMode(value)[source]#

The routing policy for choosing the desired topic by the given message.

Data:

ROUND_ROBIN:

The producer will publish messages across all partitions in a round-robin fashion to achieve maximum throughput. Please note that round-robin is not done per individual message but rather it’s set to the same boundary of batching delay, to ensure batching is effective.

Data:

MESSAGE_KEY_HASH:

If no key is provided, The partitioned producer will randomly pick one single topic partition and publish all the messages into that partition. If a key is provided on the message, the partitioned producer will hash the key and assign the message to a particular partition.

Data:

CUSTOM:

Use custom topic router implementation that will be called to determine the partition for a particular message.

Attributes

ROUND_ROBIN

MESSAGE_KEY_HASH

CUSTOM

previous

pyflink.datastream.connectors.pulsar.PulsarSourceBuilder

next

pyflink.datastream.connectors.pulsar.MessageDelayer

On this page
  • TopicRoutingMode

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.