I have 3 microservices communicating using kafka.
- gateway
- auth
- 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
what I want to achieve is to communicate with auth microservice on a single groupId