Blog
Mert Özen's blog posts on software development, backend, frontend, and DevOps.
Orchestration with the AppHost: Resources, WithReference, WaitFor, Parameters and Persistent Containers
In the AppHost every part is a resource: a project, a container or an executable; WithReference passes connection strings and connection properties as environment variables, WaitFor waits for health and WaitForCompletion for a job to exit with code 0. The post adds SQL Server, Redis and a migration worker to Bookstore and shows, with real output, the trap of a throwing worker exiting with code 0 and starting the API, secret parameters and persistent containers.
What Is Aspire and What Isn't It? AppHost, the App Model and How It Differs from Docker Compose and Kubernetes
Aspire is a local orchestration and observability layer that describes the parts of a multi-service app and their connections in code in an AppHost, runs them with one command and collects their telemetry in a dashboard; it isn't a production orchestrator or a service mesh. The post adds an AppHost to Bookstore with aspire init and shows the DCP proxy, the environment variables Aspire provides and why there are no traces without ServiceDefaults, with real output.