- Add Redis 7 for pub/sub (lobby + chat real-time), rate limiting, caching - Replace SSE DB polling with Redis pub/sub (lobby: instant approval, chat: instant delivery) - Add PgBouncer (transaction mode, 500 client → 25 pool connections) - Chat SSE stream via Redis pub/sub instead of 3s polling - Optimistic UI in ChatPanel (messages appear before server confirms) - Redis-based rate limiter (works across multiple app replicas) - Prisma query optimization (select only needed fields) - Chat message cache in Redis (10s TTL) - Docker Compose: add redis, pgbouncer services with healthchecks - Production: resource limits, 2 app replicas behind Traefik - Update CLAUDE.md, README.md, .env.example, setup.sh Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
58 lines
515 B
Plaintext
58 lines
515 B
Plaintext
# Dependencies
|
|
node_modules/
|
|
|
|
# Next.js
|
|
.next/
|
|
out/
|
|
|
|
# Build
|
|
dist/
|
|
build/Release
|
|
|
|
# Environment
|
|
.env
|
|
.env.local
|
|
.env.*.local
|
|
|
|
# IDE
|
|
.vscode/*
|
|
!.vscode/settings.json
|
|
!.vscode/launch.json
|
|
!.vscode/extensions.json
|
|
.idea/
|
|
*.iws
|
|
*.iml
|
|
*.ipr
|
|
.history/
|
|
*.vsix
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Logs
|
|
*.log
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
|
|
# TypeScript
|
|
*.tsbuildinfo
|
|
|
|
# Python
|
|
__pycache__/
|
|
*.pyc
|
|
*.pyo
|
|
ai-agent/.env
|
|
|
|
# Docker
|
|
docker-compose.override.yml
|
|
|
|
# Misc
|
|
*.tgz
|
|
.cache
|
|
.eslintcache
|
|
coverage/
|
|
*.lcov
|
|
.claude/
|