Architecture¶
The ZITon portal is the central information system for Poland's ZIT associations. It provides ZIT area profiles, documents, an indicator catalogue with comparison, and an AI assistant. The portal uses an API, and Keycloak handles sign-in.
The portal runs without servers to maintain¶
We do not run application servers of our own. Amazon CloudFront delivers the portal files, AWS Lambda functions handle requests on demand, and Aurora PostgreSQL Serverless v2 adjusts database capacity to load. There is no server to patch, restart or scale by hand, and cost follows actual traffic.
Keycloak on AWS Lambda. The sign-in service is a Keycloak application server, and AWS Lambda is not an environment designed for such servers. We were the first on the market to run Keycloak on AWS Lambda in production: the Keycloak image works with the Lambda Web Adapter extension, and SnapStart reduces a new environment's start from tens of seconds to about one second. The solution has been running in production since October 18, 2026.
| Element | How it handles more traffic |
|---|---|
| Portal | CloudFront serves files from edge locations; there is no application server to scale. |
| API and sign-in | Each request is handled by a separate Lambda function; AWS starts more parallel instances as traffic grows. |
| Database | Aurora Serverless v2 raises compute capacity with load, within a range of 0.5 to 16 ACUs. |
| Document processing | A Fargate task exists for the duration of one document; we keep no permanent server pool. |
| Supporting data | DynamoDB runs on demand, with no manual throughput allocation. |
Sign-in is ready after a quiet period¶
Sign-in responds quickly even when nobody has used the portal for a while. Every 2 minutes we prepare 50 ready environments of the sign-in service, and SnapStart restores Keycloak's saved state. Without this, the first sign-in after a quiet period could exceed the API Gateway response timeout.
| Setting | Value |
|---|---|
| Preparation frequency | every 2 minutes |
| Ready environments | 50 |
| Single request time | about 17 ms (measured on November 28, 2026) |
| Cost | about USD 0.65 per month at the November 28, 2026 measurement |
This is best-effort readiness, not a guarantee: AWS can recycle an environment between runs. Only Provisioned Concurrency guarantees a fixed number of ready environments, and we do not combine it with SnapStart because the cost is many times higher.
Monitoring and backups¶
| Mechanism | How it works |
|---|---|
| Availability monitoring | Every 5 minutes we check the portal homepage and the sign-in endpoint. Results go to CloudWatch, and on the first day of each month a report for the previous month is produced. An email alarm reports degradation. |
| Backups | Every day at 01:00 we back up the database, two DynamoDB tables and four S3 buckets. Each copy is transferred to the second region and kept for 35 days in both locations. |
Other flows¶
- WK Bridge: sign-in through Węzeł Krajowy.
- RAG and vector index: from a PDF document to an assistant answer.
System components¶
| Function | How it works |
|---|---|
| Portal | CloudFront delivers the Angular interface over HTTPS. |
| Sign-in | Keycloak handles sign-in and stores sessions in PostgreSQL. |
| Documents | The system extracts PDF text, validates metadata and adds documents that pass validation to the search index. |
| Data protection | Databases and storage encrypt data at rest. AWS Backup manages the schedule and retention for resources covered by the plan. |
| Monitoring | Automated availability checks feed the monthly reports. Alarms send email notifications for monitored events. |
Technical details¶
See the database and encryption inventory, data restore procedures and availability reports.