RUDN Platform: Online Examination & Proctoring System
Online exam and proctoring system for RUDN University. .NET 6 microservices behind an Ocelot gateway, a Vue 3 student app, a Vuetify admin panel, and SignalR for watching exams live. Runs on Yandex Cloud.
Full Stack Developer · 2022 - 2024 · Education / EdTech
Tech: C#, .NET 6, ASP.NET Core, Ocelot Gateway, EF Core 6, PostgreSQL, Redis, SignalR, JWT, Vue 3, Vuex, Vuetify, ECharts, Ardalis.Specification, Docker, Yandex Cloud, xUnit
The problem
RUDN University needed to run secured exams online. Candidates had to be authenticated and watched during the exam, answers had to be timed and saved without loss, uploads stored safely, and staff needed to manage all of it. The code also had to stay maintainable for a team working under strict quality rules.
The approach
The platform (internally called ACT) is split into ASP.NET Core services for Auth, UserExam, Recording, FileService and Admin. They share a library layer for models, EF Core data access and common extensions. A shared appsettings file and JWT auth tie them together, Redis handles caching, and PostgreSQL is the system of record.
The architecture
Five .NET 6 services sit behind an Ocelot API gateway and share one library: EF Core 6 on PostgreSQL, a Redis cache and the specification pattern. Two Vue 3 apps, one for students and one for admins, call the gateway over REST, and the student app keeps a SignalR connection open for live monitoring. Deployed on Yandex Cloud.
Outcomes
- Exam platform in production at RUDN University: authoring, scheduling, delivery, live proctoring, analytics, admin
- Five services behind one Ocelot gateway, sharing a typed library layer
- Live exam monitoring over SignalR
- Backend builds with nullable on, warnings as errors and all .NET analyzers enabled
- Dockerized services on PostgreSQL and Redis, deployed to Yandex Cloud
What it is
RUDN Platform is an online exam and proctoring system for RUDN University. It covers the whole exam cycle: login, writing and scheduling exams, timed delivery, live proctoring, file handling, analytics and admin. The backend is a set of .NET 6 microservices behind an Ocelot API gateway. There are two Vue 3 front-ends, and everything is deployed to Yandex Cloud.
Internally the system is called ACT (the exam system, "сАмАнА АЗМУН"). This write-up covers the backend services, the gateway, both web apps and the real-time layer.
What an online university exam needs
This is a harder problem than a normal CRUD app:
- Identity and integrity. Candidates have to be authenticated reliably and watched in real time during the exam, to deter and catch cheating.
- Authoring. Staff build question banks, schedule exams and review results with analytics.
- Delivery. Exams are served, timed and submitted without losing answers, including under concurrent load.
- Files. Candidate uploads and generated files need one safe, central place to live.
- Maintainability. Several services, one team, and strict compiler and analyzer rules.
How the services fit together
Every request comes in through one Ocelot gateway. Behind it, each ASP.NET Core service owns one concern, and all of them share a common library layer. The two Vue 3 apps and a SignalR hub make up the rest.
flowchart TB
subgraph Clients
STU[Student Exam App<br/>Vue 3 + Vuex + SignalR]
ADM[Admin Panel<br/>Vue 3 + Vuetify + ECharts]
end
GW[Ocelot API Gateway]
subgraph Services[.NET 6 microservices]
AUTH[Auth :7021]
EXAM[UserExam :7022]
FILE[FileService :7024]
REC[Recording / Proctoring]
ADMS[Admin]
end
HUB[SignalR Hub<br/>real-time monitoring]
subgraph Library[Shared Library]
DATA[EF Core 6 + Specification]
end
PG[(PostgreSQL)]
RD[(Redis)]
STU -->|/api/auth /api/userexam /api/files| GW
ADM -->|REST| GW
GW --> AUTH
GW --> EXAM
GW --> FILE
GW --> ADMS
STU <-->|live| HUB
REC --> HUB
Services --> Library
DATA --> PG
AUTH --> RD
Gateway routing
Ocelot sends each request to the right service. The front-ends only ever talk to one origin, and the services stay internal.
| Upstream route | Downstream service |
|---|---|
/api/auth/* | Auth service |
/api/userexam/* | Exam delivery service |
/api/files/* | File service |
/main/* | Main host |
Taking an exam with live proctoring
While an exam is running, the student app holds a SignalR connection. That lets the platform watch the session live and lets the recording/proctoring service react as things happen.
sequenceDiagram
participant S as Student (Vue app)
participant GW as Ocelot Gateway
participant A as Auth
participant E as UserExam
participant H as SignalR Hub
participant R as Recording
S->>GW: Login -> /api/auth
GW->>A: Authenticate
A-->>S: JWT
S->>GW: Start exam -> /api/userexam
GW->>E: Load exam (validate JWT)
E-->>S: Questions + timer
S->>H: Open real-time connection
H->>R: Stream session / proctoring events
S->>GW: Submit answers -> /api/userexam
GW->>E: Persist submission
The two front-ends
Student exam app (ACTVue): Vue 3 with Vuex and Vue Router, a SignalR client for live monitoring, file uploads for exam artifacts, and SweetAlert2 for prompts during the exam.
Admin panel (ACT-ADMIN): Vue 3 on Vuetify. ECharts dashboards for results, a TinyMCE editor for writing questions, a PDF viewer, time pickers for scheduling, and jwt-decode plus Vuelidate for auth and form validation.
flowchart LR
ADM[Admin Panel] --> Q[Author questions<br/>TinyMCE]
ADM --> SCH[Schedule exams<br/>time pickers]
ADM --> AN[Results analytics<br/>ECharts]
Q --> GW[Ocelot Gateway]
SCH --> GW
AN --> GW
Shared library and data access
Common code lives in a Library layer instead of being copied into each service. Data access is EF Core 6 on PostgreSQL (Npgsql), with the Ardalis Specification pattern so queries are reusable and easy to test. A generic data service covers common CRUD, and each service has its own DbContext.
flowchart LR
SVC[Service] --> SPEC[Specification]
SPEC --> REPO[Generic Data Service]
REPO --> CTX[Per-service DbContext]
CTX --> DB[(PostgreSQL)]
Build rules
The backend builds with strict settings, defined once in Directory.Build.props:
NullableandImplicitUsingsenabled in every project.TreatWarningsAsErrorswith the full .NET analyzers atAnalysisMode=AllEnabledByDefault, and code style enforced in the build.- An xUnit test project (
ACT.Services.Test) for the service layer. - Linux Docker support for the deployable services, and a shared appsettings file for common config. Deployed on Yandex Cloud.
Result
- A production exam platform for a university, covering authoring, scheduling, delivery, live proctoring, analytics and admin.
- A gateway plus microservices, built on a shared, strongly typed library.
- Live exam monitoring through SignalR, and a Vuetify admin panel for staff.
- Code quality enforced by the compiler (nullable, warnings as errors, analyzers on by default), containerized and deployed to the cloud.