You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/02/05 07:47:47 UTC

[GitHub] [pulsar] zymap commented on pull request #9444: makes subscription start from MessageId.latest defaultly

zymap commented on pull request #9444:
URL: https://github.com/apache/pulsar/pull/9444#issuecomment-773859476


   @aloyszhang I think there has an easier way is add query params at this API and allow it to pass a message position string.  If the user only specifies the message position with a string in the query params, we can use it to create a cursor. Otherwise, we can use the current logic to handle it.
   
   For example, if a request URL likes this: 
   ```
   /tenant/ns/topic/subscription/sub-name?position=latest
   ```
   We can create a subscription from the latest position
   
   if a request URL likes this:
   ```
   /tenant/ns/topic/subscription/sub-name?position=latest
   
   body: {ledgerId: 1, entryId: 2, batchIndex: 1}
   ```
   We can use current logic to handle it.


----------------------------------------------------------------
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:
users@infra.apache.org