Tutorials
Tutorials walk you through building a real thing. Every tutorial here:
- starts from
cephalon newand ends with a running, observable, deployable app. - shows the full diff at each step — not just the happy-path snippet.
- explains the why behind each decision, not only the how.
- ends with a checklist of what to do next when the lesson is over.
If you’re new to CephalonEngine, start with Build your first app. Everything else assumes you’ve gone through it.
Tutorial library
Section titled “Tutorial library”Build your first app
8-part series: scaffold a modular monolith, add a domain module with REST endpoints, plug in EF Core, wire observability, write tests, deploy.
Start the series MicroservicesBuild a microservice suite
Split a domain across multiple hosts with eventing, shared identity, and per-service observability. Includes Kubernetes deploy.
Build the suite SaaSMulti-tenant SaaS
Tenant resolution, ambient context, durable membership/invitation governance, declared domain ownership, approval/remediation workflows.
Build the SaaS TransportsgRPC service
Stand up a gRPC service with unary + streaming, shared types, and observability that links the trace across the wire.
Build the service TransportsGraphQL API
Federate a GraphQL schema across modules, with auth and field-level resolvers driven by capabilities.
Build the API EventingEvent-driven pipeline
Wolverine adapter, outbox, scheduled delivery, DLQ replay, process managers, and CDC capture.
Build the pipeline DataCQRS + read-model projections
Split writes (Postgres) from reads (ClickHouse). Wolverine events bridge them via transactional outbox + idempotent inbox. Covers lightweight CQRS + pointers to full event-sourcing.
Build CQRS ObservabilityFull observability stack
OTLP collector + Grafana + Tempo + Loki, with per-backend dependency-health dashboards and SLO templates.
Build the stack QualityTesting strategy
Composition smoke tests, behavior specifications, integration tests against real Postgres + Redis containers, contract tests for transports.
Adopt the strategy OpsCI/CD pipeline
GitHub Actions reference pipeline: build, test, benchmark, container publish, manifest sign, deploy.
Set up CI/CD EdgeEdge-native delivery
Cephalon.Edge with Traefik or Kubernetes Gateway. Hot-path routing, edge-side caching, and signed module delivery.
Deploy at the edge RetrievalRetrieval-augmented service
Cephalon.Retrieval with Qdrant + Postgres pgvector. Index, query, and trace the retrieval pipeline.
Build the service AgenticsAgentic workload
Cephalon.Agentics runtime services: task graph, tool registry, scheduled agents, agent-to-event handoff.
Build the agentTutorial conventions
Section titled “Tutorial conventions”| Convention | Meaning |
|---|---|
| Step header | Each step is independently runnable. You can stop after any step and have a working app. |
| Full diff | We show the file before and after the change, not just the new lines. |
| ”Why this works” | Architectural explanation of the change, so you can recreate it without the tutorial in front of you. |
| ”Pitfalls” | Mistakes we made the first time so you don’t repeat them. |
| ”What to do next” | Pointers to the related Guide / Reference page once you finish. |
Companion repositories
Section titled “Companion repositories”Every tutorial has a matching tagged commit in github.com/Cephalon-Labs/CephalonEngine-Examples. If you get lost, check out the tag for the step you’re on and diff against your local copy.
Suggested learning path
Section titled “Suggested learning path” first-app ──┬── microservice-suite ──── multi-tenant-saas │ ├── grpc-service ─────┐ ├── graphql-api ──────┤ ├── event-driven ─────┼── cqrs ── observability-stack ── ci-cd-pipeline │ │ ├── retrieval-rag │ └── agentic-workload ─┘Pick the leaf that matches your delivery pressure first — everyone benefits from observability and testing strategy regardless of the shape.