Skip to content

Is AWS IOT SDK V2 Is thread safe #599

Discussion options

You must be logged in to vote

Yes it is thread-safe. Beyond that, a dedicated thread per publish might be overkill, but it's your choice. Note that your implementation can easily accidentally publish the same message many times since the future timeout has no affect on the mqtt client's attempt to deliver the message. The returned future is just a one-way signal from the client to the user.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SudipShresthaOr
Comment options

Answer selected by jmklix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants