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
| Data | TTL |
|---|---|
| User profiles | 5 minutes |
| User preferences | 10 minutes |
| Avatar URLs | 1 hour |
API Endpoints
GET
/api/profileGet current user's profile
PUT
/api/profileUpdate current user's profile
GET
/api/profile/:idGet user profile by ID
POST
/api/profile/avatarUpload profile avatar
GET
/api/profile/preferencesGet user preferences
PUT
/api/profile/preferencesUpdate user preferences
Configuration
| Name | Type | Default | Description |
|---|---|---|---|
| PORT | number | 8017 | Service listening port |
| DB_HOST | string | localhost | MSSQL server host |
| REDIS_HOST | string | localhost | Redis host for caching |
| REDIS_PORT | number | 6379 | Redis port |
Dependencies
- Identity Service — User identity resolution