BewareMyPower commented on issue #8175:
URL: https://github.com/apache/pulsar/issues/8175#issuecomment-736310196


   The WebSocket already supports effectively-once because the client side only 
needs to set producer name and timeout, i.e. `sendTimeoutMillis` and 
`producerName`. See 
http://pulsar.apache.org/docs/en/client-libraries-websocket/#producer-endpoint 
for details.
   
   The effectively-once means message deduplication from producer side, see 
http://pulsar.apache.org/docs/en/cookbooks-deduplication/#pulsar-clients
   
   And the equivalent Python code through WebSocket is:
   
   ```python
   import websocket
   
   url = 
'ws://localhost:8080/ws/v2/producer/persistent/public/default/topic-1?producerName=producer-1&sendTimeoutMillis=0'
   ws = websocket.create_connection(url)
   ```
   
   It should be supported a long time ago but the client feature matrix in wiki 
was wrong.


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