apache / apache/iotdb

[Feature request] Expose complete MQTT publish context to PayloadFormatter

Ouverte
#18,625 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Java
Étoiles
6.4k
Forks
1.2k
Merge moyen
1 j 23 h
PR mergées (30 j)
115

Description

### Search before asking

- [x] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.

### Motivation

Currently, the MQTT `PayloadFormatter` interface receives only the topic and payload.

For custom MQTT ingestion scenarios, it would be helpful if `PayloadFormatter` could also access additional MQTT publish metadata, such as:

- client ID
- username
- QoS
- topic
- payload

In particular, access to `clientId` is useful when the MQTT connection identity needs to be preserved as part of the stored data.

It would therefore be helpful if the formatter API could expose the complete MQTT publish context rather than only `topic` and `payload`.

Backward compatibility with existing custom `PayloadFormatter` implementations would also be appreciated.

Thank you for considering this enhancement.

### Solution

_No response_

### Alternatives

_No response_

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Locate the MQTT PayloadFormatter interface and its existing implementations, then trace how MQTT publish topic and payload reach the formatter. Determine how the complete publish context and backward compatibility should be represented; done means custom formatters can access the requested metadata without breaking existing implementations.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
java
Domaine
backend-api-design, databases
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
Active
Clarté
À clarifier
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.