-1

I have 3 microservices communicating using kafka.

  1. gateway
  2. auth
  3. verification

gateway has 2 modules (controllers) auth and verification to communicate with respective microservice. Both modules are producing messages for auth microservice on different topics, same groupId.

The issue is lets say

If I hit signup API first (gateway/auth) everything works fine. Now when I hit verify API (gateway/verification) I get an error "client consumer did not subscribe to the response of (TOPIC NAME)"

If I hit verify API first (gateway/verification) everything works fine. Now when I hit signup API (gateway/auth) I get an error "client consumer did not subscribe to the response of (TOPIC NAME)"

So in short which ever API I hit first works fine but the other stops working. The issue is fixed if I change groupId in any one of gatweway the modules. I don't want to change the groupId since both are communication with same consumer and consumer can only have a single groupId.

Any insights are appreciated.

structure for gateway is as follow

gateway auth module

gateway verification module

kafka module

what I want to achieve is to communicate with auth microservice on a single groupId

0 Answers0