NATS Protocol
约 1 分钟阅读
标签:协议
- Client Protocol链接docs.nats.io/reference/reference-protocols/nats-protocolClient Protocol · Service API ADR-32 · https://docs.nats.io/nats-concepts/core-nats/reqreply · Reply subjects are called "inbox".笔记:NATS Protocol
Request-Reply
- Service API ADR-32GitHub 文件nats-io/nats-architecture-and-design/adr/ADR-32.md
- docs.nats.io/nats-concepts/core-nats/reqreply
- Reply subjects are called "inbox".
- drain before exiting - 应用退出前会处理所有消息
- 没有消费者返回 no_responders
FAQ
RPC vs Request-Reply
- Request-Reply
- 只是一种消息传递 pattern
- 对请求内容无定义
- RPC
- 是一种 Request-Reply
- 对请求内容有定义
- 有 服务、方法、参数、返回值 等概念
- 需要考虑跨语言 序列化
关联信息
反向链接、本文链接的其他页面和外部资料。
反向链接
- NATS Design笔记 · Protocol
ADR-32 Service · Protocol · Auth · https://github.com/nats-io/nats-architecture-and-design · https://docs.nats.io/running-a-nats-service/configuration/sysaccounts
参考资料
GitHub2 条
- nats-io/nats-architecture-and-design/adr/ADR-32.mdgithub.com/nats-io/nats-architecture-and-design/blob/main/adr/ADR-32.md
- nats-rpc/nrpcgithub.com/nats-rpc/nrpc
其他外链2 条
- docs.nats.io/nats-concepts/core-nats/reqreplydocs.nats.io/nats-concepts/core-nats/reqreply
- docs.nats.io/reference/reference-protocols/nats-protocoldocs.nats.io/reference/reference-protocols/nats-protocol