当前位置:网站首页>Composition of pulsar messages
Composition of pulsar messages
2022-06-13 12:07:00 【swadian2008】
Pulsar be based on Release - A subscription model ( Commonly abbreviated as pub-sub), In this mode , producer (producers) The message is (messages) Post to topic (topics); consumer (consumers) Subscribe to these topics (topics), Then process the incoming message (messages), And report to the agent after processing (broker) Send a confirmation message .
When a consumer subscribes to a message , Even if the consumer disconnects ,Pulsar It will be Keep all messages . Only when the consumer confirms that all messages have been successfully processed ,Pulsar Will discard the reserved message .
If a message fails to be consumed , Consumers want to consume this message again , Can be opened Message re delivery mechanism , request broker Resend this message .
news (messages) yes Pulsar Basic “ Company ”. The following table lists the components of the message .
Component | Description |
---|---|
Value / data payload | The data carried by the message. All Pulsar messages contain raw bytes, although message data can also conform to data schemas. // The data carried by the message . all Pulsar Messages contain raw bytes , Although the message data can also conform to the data pattern . |
Key | The key (string type) of the message. It is a short name of message key or partition key. Messages are optionally tagged with keys, which is useful for features like topic compaction. // Key of the message ( String type ). It's news key Or zoning key For short . Messages can optionally be marked with keys , This is very useful for compressing topics, etc . |
Properties | An optional key/value map of user-defined properties. // A key value pair attribute that can be customized by the user |
Producer name | The name of the producer who produces the message. If you do not specify a producer name, the default name is used. // The name of the producer that generated the message . If no producer name is specified , The default name is used . |
Topic name | The name of the topic that the message is published to. |
Schema version | The version number of the schema that the message is produced with. // The version number of the schema used to generate the message . |
Sequence ID | Each Pulsar message belongs to an ordered sequence on its topic. The sequence ID of a message is initially assigned by its producer, indicating its order in that sequence, and can also be customized. // Every one of them Pulsar message stay topic There is an ordered sequence in , Sequence ID By default, it is assigned by its producer , Indicates its order in the sequence , You can also customize it . // Sequence ID Can be used to de duplicate messages . If BrokerDeplicationEnabled Set to true, Then the sequence of each message ID In the theme ( Non partition ) Or partition is the only producer . |
Message ID | The message ID of a message is assigned by bookies as soon as the message is persistently stored. Message ID indicates a message’s specific position in a ledger and is unique within a Pulsar cluster. // news ID Persistent by bookies Distribute , Specify the specific location of the message in the message classification , And in Pulsar It's the only one in the cluster . |
Publish time | The timestamp of when the message is published. The timestamp is automatically applied by the producer. // Time of news release , This time is automatically provided by the producer |
Event time | An optional timestamp attached to a message by applications. For example, applications attach a timestamp on when the message is processed. If nothing is set to event time, the value is // Optional timestamp that the application attaches to the message . for example , The application processes the message with a timestamp . If nothing is set to the event time , The value is 0. |
news (messages) The default size is 5 MB. You can also use the following configuration , Configure message size .
in the broker.conf
file.
# The max size of a message (in bytes).
maxMessageSize=5242880
In the bookkeeper.conf
file.
# The max size of the netty frame (in bytes). Any messages received larger than this value are rejected. The default value is 5 MB.
nettyMaxFrameSizeBytes=5253120
For more information on Pulsar messages, see Pulsar binary protocol.
边栏推荐
- 我和指针那些事——初识指针
- SMS based on stm32f103+as608 fingerprint module +4x4 matrix key +sim900a - intelligent access control card system
- Wallys/Network_ Card/DR-NAS26/AR9223/2x2 MIMO
- OpenCV学习笔记(二):读取mnist数据集
- camunda如何使用script脚本节点
- Lightweight real-time semantic segmentation: eNet & erfnet
- Fuel scheme and product business modeling
- (Yousheng small message-04) how to use mobile WPS for electronic signature on PDF
- [tcapulusdb knowledge base] Introduction to tcapulusdb tcapsvrmgr tool (II)
- 二建资格后审没通过怎么办?这篇文章告诉你
猜你喜欢
基于STM32F103+AS608指纹模块+4X4矩阵按键+SIM900A发短信——智能门禁卡系统
Pulsar 生产者
Books + videos + learning notes + skill improvement resource library, interview must ask
UE4, ue5 phantom engine, command console command, parameter set
web开发视频教程,web开发教学
查询当前电脑cpu核心数
基于STM32F103——AS608指纹模块+串口打印
[tcapulusdb knowledge base] Introduction to tcapulusdb tcapsvrmgr tool (II)
致力超表面光子芯片产品研发与制造,山河光电完成数千万元Pre-A轮融资
UNIX环境高级编程(APUE,第三版)---环境搭建
随机推荐
kubernetes 部署 ActiveMQ
Pulsar 消费者
break algorithm---dynamic planning(dp-func)
Process of manually encrypting and burning the mass production firmware of ESP equipment
基于STM32F103——DS1302日期时间+串口打印
Type de condition pour ts Advanced
Books + videos + learning notes + skill improvement resource library, interview must ask
How vscode converts a tab key in an edited file into a spacebar
多系统对接的适配与包装模式应用
Idea usage
Kubernetes problem sorting
Machine learning (IV) - PCA (principal component analysis) theory and code explanation
MCDF Experiment 2
Seccloud and trend technology jointly release the overall solution of container cloud platform and GPU resource pooling
(Yousheng small message-04) how to use mobile WPS for electronic signature on PDF
Intelligent customer service system framework rasa
复习指南,学生党必看
Interview shock 56: what is the difference between clustered index and non clustered index?
Machine learning (II) - logical regression theory and code explanation
[tcapulusdb knowledge base] Introduction to tcapulusdb analytical text export