Course
Server-Side Swift with Vapor
A practitioner's path through Vapor services — routing, structured concurrency, Fluent data access, production deployment, and API contracts shared safely with iOS clients.
Reviews
Enrolled members can rate this course.
No reviews yet.
Vapor Request Handling and Concurrency
Build the correct mental model for routes, middleware, validation, and Swift concurrency before scaling the service.
- 01Vapor Routing and the Request LifecycleRead Vapor routes as a pipeline of grouping, decoding, authorization, side effects, and response encoding rather than as controller annotations.24mOpen
- 02Async/Await, Event Loops, and Concurrency Without Self-Inflicted DamageUse Swift structured concurrency correctly in Vapor, avoid blocking server threads, and design cancellation and shared state deliberately.27mOpen
- 03Middleware, Validation, and Authentication BoundariesCompose middleware in the right order, validate transport input at the edge, and keep identity, tenancy, and authorization server-derived.25mOpen
Fluent Data Layer and API Contracts
Model persistence explicitly, query without hidden N+1 costs, and keep transport objects separate from database truth.
- 01Fluent Models and Migrations That Survive ProductionConfigure Fluent deliberately, model database truth with explicit migrations, and treat schema evolution as an operational process rather than generated noise.26mOpen
- 02Fluent Queries, Relationships, and TransactionsQuery with tenant boundaries, load relationships without N+1 surprises, enforce uniqueness at the database, and use transactions only around real invariants.27mOpen
- 03DTOs, Content Encoding, and Error Contracts Clients Can Depend OnKeep transport representations separate from Fluent models, control JSON encoding details, shape errors consistently, and make PATCH semantics explicit.23mOpen
Production Deployment and Client Sharing
Operate Vapor behind real infrastructure, ship safely with containers, and share Swift types with iOS without coupling clients to storage.
- 01Configuration, Secrets, and Observability in Vapor ServicesFail fast on missing configuration, keep secrets out of the repository, structure logs around request context, and expose health without leaking internals.22mOpen
- 02Deploying Vapor with Docker, Reverse Proxies, and Zero-Drama ReleasesBuild reproducible Vapor images, place them behind a TLS reverse proxy, run migrations deliberately, and verify rollback before production needs it.28mOpen
- 03Sharing Models Between iOS and Server Without Tight CouplingShare transport DTOs through a small Swift package, version compatibility deliberately, and keep Fluent persistence models out of client contracts.26mOpen