loopbackio / loopbackio/loopback4-example-kafka
Bad Consumer implementation in KafkaConsumer Controller
Personne n'a encore pris cette issue.
- Langage dominant
- TypeScript
- Étoiles
- 11
- Forks
- 4
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description

If you activate the 'consumer.on message' event, this never ends, you will hear the messages until eternity.
Although there is a consumer, the closure of something happens with the life cycle and the consumer's problems a little more after sending the response.
Maybe I should wait for the consumer.close callback to issue the answer.
Therefore, if the controller issues his response and after this, the listener adds a new message to the response, we will get this error.
By definition, the consumer of Kafka behaves like a service or a demon and must start as a process at the beginning of the application.
Could you explain the best practice to do this? In loopback 3 we would use 'boot' directory to add a file with this responsibility.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Start by examining the KafkaConsumer Controller and the consumer.on message lifecycle described in the issue. Compare the requested startup responsibility with the LoopBack 3 boot directory approach. Done means documenting the recommended way to run the Kafka consumer as an application-started service and avoid sending responses after the controller lifecycle ends.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- kafka, typescript
- Domaine
- backend, distributed-systems
- Type d'issue
- Documentation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 20/100