You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fastify-kafkajs: support multiple different topics from different brokers.聽#1088
Is it possible to add different brokers with fastyfy-kafkajs. When I try to add different brokers, it gives me the error "Not authorised to access the topic". I have read this #600, but I want to connect to 2 different brokers as we have 2 topics from different brokers
Activity
ajitpal commentedon Apr 17, 2025
Please try below approaches if they help you
Create Separate Plugins for Each Broker:
fastify-kafkafor each broker.Example Implementation:
Notes:
Kafkainstance is encapsulated within its respective plugin, ensuring isolation between brokers.Error Handling:
Feel free to adapt this solution to specific requirements. Let me know if this resolves your problem @RehanProgrammer !