Websocket Application Messaging Protocol
来源:互联网 发布:知乎 单人沙发推荐 编辑:程序博客网 时间:2024/06/11 18:40
(写得有点粗糙,待补充)
官网:wamp.ws
specification地址:https://github.com/tavendo/WAMP/blob/master/spec (篇幅小,建议有兴趣的通读)
1. 基础档案
引入:
WAMP协议是一种建立在Websocket之上可以进行publish&subscribe和rpc的通信协议。它实现了类似ZeroMQ中的pub&sub通信模式,同时将这种模式用于传统的rpc通信,较好地解耦了通信端点之间的直接联系。
基础概念:
broker:pub&sub通信模式中的中间件。
dealer:rpc中caller&callee通信的中间件。
router:router其实就是broker和dealer的结合体。
realm:realm为router中的一个活动空间,client之间通信以realm为活动区间。
client:通信实体,消息发布者/订阅者,接口调用者/实现者。
peer:client或者router。
role:peer所扮演的角色。
topic:pub&sub主题,使用uri格式表达。
procedure:rpc的接口地址,同样使用uri格式来表达。
通信模型:
(specification的这幅图说明了一切)
总结:
WAMP引入的router可以使得后端接口无缝更新,另外realm使得后端接口只暴露功能子集给前端。pub&sub也可以很方便地进行消息多播。
0 0
- Websocket Application Messaging Protocol
- Real Time Messaging Protocol
- Real Time Messaging Protocol
- RTMP: Real Time Messaging Protocol
- Real Time Messaging Protocol 学习
- MAPI - Messaging Application Programming Interface
- Native Client - Application - Messaging System
- The WebSocket protocol
- Extensible Messaging and Presence Protocol (XMPP): Core
- XMPP ----Extensible Messaging and Present Protocol
- Extensible Messaging and Presence Protocol (XMPP) 简介
- SPRING FRAMEWORK 4.0 M2: WEBSOCKET MESSAGING ARCHITECTURES
- SPRING FRAMEWORK 4.0 M2: WEBSOCKET MESSAGING ARCHITECTURES
- CoAP-Constrained Application Protocol
- Real Time Messaging Protocol Chunk Stream(RTMP数据块流)
- 实时消息传输协议 RTMP(Real Time Messaging Protocol)
- Extensible Messaging and Presence Protocol (XMPP) 的实现
- iOS Extensible Messaging and Presence Protocol (XMPP) 简介(1)
- 【为避免485冲突,主机占用后要立刻释放】STM32再学习——实现完美的RS485
- 用MediaRecorder实现简单的录像功能
- MySQL Cluster数据分布和分区
- android判断GPS是否开启
- BEM命名方式,书写更优质的HTML
- Websocket Application Messaging Protocol
- 基于java的贪吃蛇设计与实现
- [LeetCode 203] Remove Linked List Elements
- 复数
- 配色调色盘
- 关于xib下tableview空出一部分的问题
- NBUT 1218 You are my brother
- Android Edittext 开发常见问题总结(焦点、输入、键盘弹出等)
- Android开发设置软键盘收索键