Profile Service

NestJS:8017Support

The Profile Service handles user profile data, preferences, and metadata. It separates profile management from the Identity Service's authentication concerns.

Key Features

  • Profile CRUD — Create, read, update user profiles
  • Preferences — Per-user application preferences
  • Avatar Management — Profile picture upload and retrieval
  • Redis Caching — Aggressive caching for frequently accessed data

Caching Strategy

DataTTL
User profiles5 minutes
User preferences10 minutes
Avatar URLs1 hour

API Endpoints

GET
/api/profile

Get current user's profile

PUT
/api/profile

Update current user's profile

GET
/api/profile/:id

Get user profile by ID

POST
/api/profile/avatar

Upload profile avatar

GET
/api/profile/preferences

Get user preferences

PUT
/api/profile/preferences

Update user preferences

Configuration

NameTypeDefaultDescription
PORTnumber8017Service listening port
DB_HOSTstringlocalhostMSSQL server host
REDIS_HOSTstringlocalhostRedis host for caching
REDIS_PORTnumber6379Redis port

Dependencies

  • Identity Service — User identity resolution