Ktor
Ktor is the Kotlin HTTP framework used by every Arda backend service
(operations, accounts-component, and other future components). It
runs the public HTTP API, the internal RPC surface, and the metrics /
health endpoints.
- Version:
3.1.1. - Engine: Netty in production; Jetty in tests.
- Repositories:
operations/,accounts-component/,common-module/.
Conventions in this codebase
Section titled “Conventions in this codebase”- One Ktor application module per service. Modules compose plugins rather than configure the application globally.
- Content negotiation: kotlinx-serialization JSON. Custom
serializers live in
common-module. - Status pages: errors are mapped from the
AppErrorsealed hierarchy — see Exception Handling. - Authentication: JWT validation via Cognito JWKS. Realms and scopes are documented in Realms, Scopes, Permissions.
- Routing: typed routes; URL conventions in API Design.
- Testing:
testApplication { ... }for end-to-end route tests;ContainerizedPostgrestest fixture for database-backed tests (seeunit-tests-infraskill).
Authoritative references
Section titled “Authoritative references”- Ktor documentation — official.
- Server plugins reference — the plugin contract used throughout these services.
See also
Section titled “See also”- The
kotlin-codingskill — language conventions that apply to all Ktor handlers (Result handling, AppError, formatting). operations/CLAUDE.md— repo-specific conventions for the largest Ktor service.
Copyright: © Arda Systems 2025-2026, All rights reserved