feat: implement Redis-backed Socket.io adapter and user presence service for cross-instance communication

This commit is contained in:
pradeepkumar
2026-04-02 19:30:08 +05:30
parent 360969ae2c
commit 539fdf70e3
10 changed files with 211 additions and 20 deletions

View File

@@ -6,6 +6,7 @@ import { ScheduleModule } from '@nestjs/schedule';
import { EventEmitterModule } from '@nestjs/event-emitter';
import { configuration } from './config';
import { RedisModule } from './common/redis/redis.module';
import { PrismaModule } from './prisma';
import { AuthModule, JwtAuthGuard, RolesGuard } from './auth';
import { UsersModule } from './users';
@@ -35,6 +36,9 @@ import { AppService } from './app.service';
envFilePath: ['.env.local', '.env'],
}),
// Redis (global)
RedisModule,
// Rate Limiting
ThrottlerModule.forRoot([
{