jerrypeng edited a comment on issue #6787:
URL: https://github.com/apache/pulsar/pull/6787#issuecomment-618205635


   @sijie the default behavior of stored data in pulsar is not exactly the same 
as data stored in a file.  By default data is not persisted in Pulsar at all.  
Only if a topic has a subscription or retention configured is the data actually 
persisted.  Readers are by definition ephemeral and have no persistent state 
from a brokers perspective, thus if you want to Readers to able to read a 
certain amount of data, the user should configure the appropriate retention.  
Readers are responsible for reading the data and not to determine how much data 
is retained.  I believe those are two separate concepts. The correct workflow 
we should recommend users that want to use Readers. I would also argue that if 
you are using the Reader API and you want some level of guarantee of reading 
the data, you would have to configure retention.  If you don't and the Reader 
dies, the data is not guaranteed to be there when the Reader comes back.


----------------------------------------------------------------
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.

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


Reply via email to