Documentation
¶
Overview ¶
Command app is the shop example's workload: one binary, two roles chosen by ROLE.
api POST /orders?item=x stores an order in Postgres and queues it on RabbitMQ;
GET /orders lists the latest, cached in Redis for 5s
worker takes orders off the queue, "ships" them (marks them done in Postgres); one in
twenty fails and goes to orders.failed
RabbitMQ is reached through its management API to keep the example on the standard library plus pgx and go-redis; a real service would speak AMQP.
Click to show internal directories.
Click to hide internal directories.