CURRICULUM PREVIEWRevision 1 · Open for reviewReview the full course
CHECKPOINT8 min read

Logs, health, and deployment

Make a release observable and recoverable.

Before you begindotnet-auth

The idea

Use structured events for a booking operation, with a correlation ID, duration, and stable outcome. Keep secrets and personal data out of logs. Liveness answers whether the process is alive; readiness answers whether it can serve its required dependencies. Deployment is complete when the external route works and a recovery path exists.

Follow the flow

Make it concrete

This excerpt isolates the concept. Connect it to the booking API as you work through the exercise.

Focused example
C#
logger.LogInformation(
    "Booking operation {Operation} ended with {Outcome}",
    "create", outcome);

app.MapHealthChecks("/health/ready");

Decisions that matter

  • Do not turn raw exception messages into public error responses.
  • Separate operational metadata from sensitive request content.
  • An active systemd service proves process supervision, not the full user path.

Your turn

The process is running but its database credentials are wrong. What should readiness report, and what release evidence should you collect?

Reveal a worked answer

Readiness should fail without printing credentials. Verify the service, local health response, reverse proxy, DNS, TLS, and a representative authorized operation. Keep the previous binary and restore instructions available before shifting traffic.

Keep exploring

One more piece connected.

Mark this lesson complete when you can explain the idea.