我想构建一个小型 p2p 聊天应用程序。但是,在这个阶段我不知道我应该选择 FMS 开发服务器还是 Cirrus。FMS 和 Cirrus 的主要区别是什么?FMS 是否有 NetStream 和 NetGroup 类而 Cirrus 没有,反之亦然?
1 回答
The difference between both:
Cirrus - Adobe rendezvous service that does all the dirty job of connecting your P2P app users with each other. Now, after Cirrus connects the users, they can communicate using Adobe P2P RTMFP protocol which is based on UDP and therefore is fast but not 100% reliable. Perfect choice for games and applications that require low latency connection between peers. (Note: AFAIK Cirrus license does not allow to use it for commercial apps but you can use free alternative, like Cumulus, which, by the way, is an open source project).
FMS is based on different approach. Not like RTMFP where all users connect directly to each other, FMS is a centralized server, meaning all traffic first goes through the server before reaching target users. In addition, it is based on higher level TCP protocol (100% connection reliability). Therefore it is slower and produces higher latency compared to RTMFP. FMS can be used as a fallback when Cirrus or similar rendezvous service fails to connect two users using RTMFP.