dapr / components-contrib

Community driven, reusable components for distributed apps
Apache License 2.0
544 stars 473 forks source link

MQTT pubsub to offer metadata for retained messages #2317

Open artursouza opened 1 year ago

artursouza commented 1 year ago

Describe the feature

Today, MQTT pubsub offers the retain attribute in the component as a global setting - meaning that every message published with that component will have its value set to true. On the other hand, applications might require only some messages to be set as retained (since only one retained message is allowed per topic). This feature request is to allow retain attribute to be overwritten per message metadata on publish call as well.

Release Note

RELEASE NOTE: Support retain per message metadata in MQTT publish

SpikeWong commented 1 year ago

/assign