android matrix 简书,Matrix Synapse 学习

本文介绍Matrix这一开放且分散式的实时通信标准。Matrix通过room进行事件交互,并使用homeserver作为账户连接的服务器。Synapse是用Python实现的Matrix标准示例,而Riot则是官方推荐的跨平台客户端。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

最近准备研究Matrix(英 /ˈmeɪtrɪks/)这个通信标准,首先搜集一波相关资料

二、官网FAQ重点总结:

1、matrix是一种开放的、分散式实时通信标准

2、matrix标准中,所有事件都发生在“room”这个逻辑位置中,每一个账号连接的后台服务器叫做“homeserve”

3、synapse是用python语言写的,matrix标准的一个实现。由matrix团队人员编写。是“homeserve”的一个实例。

4、riot是官方推荐的客户端,提供web、ios、android版本

5、为什么选用HTTP(长轮询)的方式来实现

HTTP may not be the most efficient transport, but it is ubiquitous, very well understood and has numerous implementations on almost every platform and language. It also has a simple upgrade path to HTTP/2, which is relatively bandwidth and round-trip efficient.

For these reasons it has been chosen as the mandatory baseline of the exchange, but it is still entirely possible to use other protocols for communication between clients and server (see for example this websocket transport spec proposal), and it's also possible in the future that negotiation of more efficient protocols will be added for the federation between servers, with HTTP+JSON remaining as the compatibility baseline.

牺牲了实时性,但是具备了广泛性和基础性。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值