Tutorial

18. Deploy

Shopfront has run on one machine, in Development, from dotnet run. In this chapter it runs as it would deployed: a hub and two workers in containers, one Postgres, and RabbitMQ between them. Four things change before it can: the shop's schema is migrated rather than created, the processes tell each other about runs, each says whether it is healthy, and the hub runs in Production, which turns off everything that was there for Development.

This chapter starts from the end of chapter 17.

In this chapter

  1. The shape
  2. Migrate the shop's schema
  3. The hub
  4. The worker
  5. The tests migrate too
  6. Containers
  7. Run it as deployed
  8. The storefront
  9. The console
  10. Before it takes real orders

SDK Reference

Deployment topologies | Move a domain data context to EF migrations | UseRabbitMq | AddTraxHealthCheck | Health and liveness | Startup refusals | UseTraxApiDashboard


Next: 18.1 The shape