lhotari commented on issue #14104:
URL: https://github.com/apache/pulsar/issues/14104#issuecomment-1029792263


   This was discussed in the Pulsar community meeting. Some notes from the 
discussion:
   - PR #12818 changes should be reverted so that API could be kept backwards 
compatible.
   - It’s possible to have the current v2 API for creating persistent topics to 
handle multiple different payload types
   The challenge seems to be that in the old method, the number of partitions 
was passed in the payload as a single integer without having a JSON object at 
all. This makes it harder to extend the existing API, but doesn’t make it 
impossible.
   - One possible solution is based on request’s “Content Type”
   `Content-Type: application/vnd.some-custom-identifier+json` on request, 
`@Consumes("application/vnd.some-custom-identifier+json")` on method that 
handles the new payload type. It also needs an annotation that the newer 
payload uses the custom mime type.
   


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