You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/09/23 14:15:24 UTC

[GitHub] [pulsar-client-node] alanhoff opened a new issue #124: Allow BigInt/Buffer to be used as initialSequenceId and/or sequenceId

alanhoff opened a new issue #124:
URL: https://github.com/apache/pulsar-client-node/issues/124


   Hello there,
   
   Right now the producer's sequence ID is limited to 4 bytes here:
   
   - https://github.com/apache/pulsar-client-node/blob/master/src/ProducerConfig.cc#L76
   - https://github.com/apache/pulsar-client-node/blob/master/src/Message.cc#L174
   
   However we could allow 8 bytes integers if we allow producer/message to receive a [BigInt](https://nodejs.org/api/n-api.html#n_api_napi_get_value_bigint_int64) and/or a [8 bytes buffer](https://nodejs.org/api/buffer.html#buffer_buf_writebigint64le_value_offset).
   
   I'm trying to match a dataset that uses 8 bytes integers for keys as my sequence ID, that's why I found this limitation :-)


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