asafm commented on code in PR #15720:
URL: https://github.com/apache/pulsar/pull/15720#discussion_r882708630


##########
site2/docs/concepts-messaging.md:
##########
@@ -813,12 +812,14 @@ non-persistent://tenant/namespace/topic
 
 > For more info on using non-persistent topics, see the [Non-persistent 
 > messaging cookbook](cookbooks-non-persistent).
 
-In non-persistent topics, brokers immediately deliver messages to all 
connected subscribers *without persisting them* in 
[BookKeeper](concepts-architecture-overview.md#persistent-storage). If a 
subscriber is disconnected, the broker will not be able to deliver those 
in-transit messages, and subscribers will never be able to receive those 
messages again. Eliminating the persistent storage step makes messaging on 
non-persistent topics slightly faster than on persistent topics in some cases, 
but with the caveat that some of the core benefits of Pulsar are lost.
+In non-persistent topics, brokers immediately deliver messages to all 
connected subscribers *without persisting them* in 
[BookKeeper](concepts-architecture-overview.md#persistent-storage). If a 
subscriber is disconnected, the broker will not be able to deliver those 
in-transit messages, and subscribers will never be able to receive those 
messages again. Eliminating the persistent storage step makes messaging on 
non-persistent topics slightly faster than on persistent topics in some cases, 
but with the caveat that some core benefits of Pulsar are lost. 
 
-> With non-persistent topics, message data lives only in memory. If a message 
broker fails or message data can otherwise not be retrieved from memory, your 
message data may be lost. Use non-persistent topics only if you're *certain* 
that your use case requires it and can sustain it.
+> With non-persistent topics, message data lives only in memory,  without a 
specific buffer - which means data *is not* buffered in memory. The received 
messages are immediately transmitted to all *connected consumers*. If a message 
broker fails or message data can otherwise not be retrieved from memory, your 
message data may be lost. Use non-persistent topics only if you're *certain* 
that your use case requires it and can sustain it.
 
 By default, non-persistent topics are enabled on Pulsar brokers. You can 
disable them in the broker's 
[configuration](reference-configuration.md#broker-enableNonPersistentTopics). 
You can manage non-persistent topics using the `pulsar-admin topics` command. 
For more information, see 
[`pulsar-admin`](https://pulsar.apache.org/tools/pulsar-admin/).
 
+Currently non-persistent topics which are not partitioned are not persisted to 
ZK, which means if the broker owning them crashes, they won't get re-assigned 
to another broker because they only existed in the owner broker memory. The 
current work-around for that is to make sure `allowAutoTopicCreation` broker 
config is `true` and `allowAutoTopicCreationType` is `non-partitioned` (Those 
the the default values).

Review Comment:
   @Anonymitaet fixed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to