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:
[email protected]


Reply via email to