-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add kafka messages consumer to Framework #2624
base: dev
Are you sure you want to change the base?
Conversation
3b68353
to
a3f2190
Compare
a3f2190
to
85a78af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Licence please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
async _handleEvent(message) { | ||
for (const listener of this._listeners) { | ||
try { | ||
await listener(message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think in case of having lots of listeners, to use .catch()
and remove the await so that listeners will not await in sequence
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, fixed
I DON'T have JIRA ticket
Added a class to listen to ECS kafka messages and automatically parse them using protobuf