About the project
An ASP.NET Core 10 API for the cross-platform dating app TOTA. More than 60 REST endpoints and a SignalR hub for real-time features.
Chats run on SignalR: instant delivery, typing indicators, read receipts, voice messages and reactions. A chat season system: a background worker switches the visual theme of conversations (spring/summer/autumn/winter) based on message activity.
An AI conversation coach: multi-turn dialogue based on chat context, conversation starter generation and zodiac compatibility analysis through Cloudflare Workers AI (Llama 3.1/3.3).
Selfie verification through CompreFace compares the selfie with profile photos. Trust Score is a numeric trust rating; AI message moderation logs a ToxicityScore.
Automatic chat archiving, a priority boost system, and cross-provider account linking (Google/Yandex/TG/VK/MAX/OK). Full compliance with 152-FZ.
Architecture
- One ASP.NET Core 10 solution in three layers: Domain (entities, enums, limits), Infrastructure (EF Core on PostgreSQL, migrations) and API (controllers, services, hubs).
- The API is grouped by feature: Auth, Chat, Discovery, Profile, Rooms, Meetings, Presence, Admin and Storage. Sixteen controllers expose around 160 HTTP endpoints.
- Real time: one SignalR hub (ChatHub) handles text, voice and image messages, read receipts and typing. Groups are rejoined after a reconnect.
- Background work runs as five BackgroundService workers: season transitions, chat auto-archiving, scheduled notifications and meeting-intent detection, plus a background task queue.
- AI goes through Cloudflare Workers AI (Llama): the chat coach, profile text help, conversation starters and zodiac compatibility.
- Verification and moderation: CompreFace checks selfies, a photo moderation service reviews profile photos, and messages are scored for toxicity.
- Notifications go through one router to Firebase push, Telegram, MAX and email (Resend or SMTP).
- Photos and chat media sit behind storage interfaces: S3 when it is configured, local uploads otherwise. Sentry and Serilog cover observability.