Hello All,
Hope you are doing well.
In this article, we are going to learn about how to set up a microservice using NestJs and Kafka.
Why did I ...
For further actions, you may consider blocking this person and/or reporting abuse
This is weird example. Why the producer service, has @client decorator?
I am not sure why do you call this weird. Producer is the service which generates the message so that is why it has a client decorator.
I was more thinking, if is possible to annotate the services in a way, what is what, server-service, client-service. There is ServerKafka class, but I can't find way how to use it. There is nothing like @client decorator, to be replaced, like @server.
Why would you need a decorator for Server. Here the consumer is a microservice server listening on kafka queues. A single service class cannot become a server isnt it?
When it's appropriate to use ServerKafka class?
Can you point me to the documentation where you found this.
docs.nestjs.com/microservices/kafk...
But I can't find nothing related to where ServerKafka class, made sense to use it.
I dont think server kafka is a class here. Its just the name tht they use to distinguish between client and server
Thank you! not found any repo demo full communication from producer to consumer until this.
Excellent write up, quick concise and to the point! Thanks for taking the time!
I'd like only produce a message. In this case, need i use some decorator (EventPattern or MessagePattern) to consume a message of a topic? Because in your example, whitouth a subscriber, do not work.
感谢你的分享帮助到我!! Thank you for sharing and helping me.
how do i create kafka topic partition when send data to kafka topic
Wonderful, you give me the first tuto that worked finally! Thanks a lot