Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
Instruction file imported from structure-projects/structure-admin (.cursor/rules/common-messaging.mdc). Copyright stays with the author.
消息队列规范
完整规范详见 wiki/_common/messaging.md
硬约束(MUST)
✅ MUST 消费端幂等(用 Redis SETNX 去重)
✅ MUST 配置死信队列(DLQ)+ 告警
✅ MUST 跨服务消息经生态消息桥(具体类名见栈级规则,如 structure-boot 用 DataScopeStreamBridge)
✅ MUST 用生态事件管理器发布事件(具体类名见栈级规则)
✅ MUST 事件实现生态事件接口(具体接口见栈级规则)
禁止(MUST NOT)
❌ 在 Consumer 里写业务逻辑(应 dispatch 给 handler)
❌ 跳过幂等设计
❌ 不配 DLQ
关联
Wiki:wiki/_common/messaging.md
技能:coding / debug-issue
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
yaml
targets:
- https://api.opensmartroute.ai/api/v1/registry/structure-projects-structure-admin-common-messaging-rule/manifest # or paste the manifest below
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.