19.10 Before it takes real orders
-
HTTPS in front of the hub, terminated at the ingress or the load balancer.
-
Secrets from a secret store, not a file in the repository.
-
Fakes. The payment provider, the courier, the supplier and the warehouse are fakes, registered in
AddShopfront. Each is an interface, so a real one replaces it there, and nothing else changes. -
A second hub needs persisted-operation changes broadcast between hubs: replace
SingleNode()withUseRabbitMqInvalidation(rabbitMq, o => o.SigningKey = broadcastKey). Only one hub runs the schedule at a time; the others serve. -
One command.
trax deploywrites this chapter's compose stack from what the hub and the worker report they need: Deploy a Trax app. Its AWS target refuses Shopfront for now, because the hub and the worker broadcast through RabbitMQ and an AWS stack does not provide it yet.
What we have
Shopfront, deployed: a hub that serves the storefront and the console, workers that run the jobs, and the two sharing one Postgres and one RabbitMQ. That is the end of the book.
That is the end of the book. Back to the contents.