Open draganemilian opened 1 year ago
eagerly waiting for this...
Any news?
Isn't this a non-issue if you simply use different names for the consumers you implement? Providing the same configuration for N instances of consumers, each with different names, would accomplish the same goal:
SqsModule.registerAsync({
imports: [ConfigModule],
useFactory: (configService: ConfigService, logger: Logger) => {
const region = configService.get('AWS.DEFAULT_REGION');
const queueUrl = configService.get('AWS.JOBS_QUEUE_URL');
return {
consumers: [
{
name: 'JobsInbound',
region,
queueUrl,
},
{
name: 'JobsInboundAlt',
region,
queueUrl,
},
],
};
},
inject: [ConfigService],
}),
You can then decorate different classes as consumers for JobsInbound
and JobsInboundAlt
, and they'll both connect and consume from the same queue.
merge soon