service_event_consumer_v1
Starter scaffold for the svc_event_consumer_v1 service archetype.
Purpose
Minimal event-consumer service archetype scaffold using an AMQP-first message lane plus Postgres state.
Included surfaces
arch/service/index.x07service.jsonarch/manifest.x07arch.jsonsrc/main.x07.jsonsrc/example.x07.jsontests/tests.json
This example is intentionally minimal.
It exists to seed x07 init and later service tooling.
Validate the copied scaffold with:
x07 service validate --manifest arch/service/index.x07service.json
Reference pattern:
- keep the bus logical with bindings such as
msg.orders - describe the consumer attachment in
runtime.event - keep idempotency and retry handling in the service shell, not in provider-specific queue clients
- use
db.primaryorobj.documentsas additional logical bindings when the consumer needs state or durable payload storage
Migration note:
- if the service still embeds broker queue names or cloud subscription ids, move them into binding materialization and keep only
msg.*refs in the service manifest
Related guides: