数据同步和消息传递引擎 deepstream

码农软件 · 软件分类 · 服务器端JavaScript · 2019-04-13 13:42:42

软件介绍

deepstream.io 宣布发布 deepstream 2.0,一个百万级数据同步和消息传递的引擎。服务器和客户端基于 WebSockets 协议通讯。提供多种语言的客户端开发包,包括可直接在浏览器使用的 JavaScript 包。

deepstream 的使用场景:

  • 协作应用,例如 Google Docs 或者 Trello 之类

  • 快速贸易、拍卖平台

  • 消息传递和社交交互平台

  • 金融报表和风险控制

  • 赌场或者是多玩家的手机游戏

  • 实习的统计分析和监控系统

  • 物联网数据采集和控制系统

  • 股票和库存控制

  • 过程管理系统

其声称基准测试比 Socket.IO 快出1000倍!https://deepstream.io/blog/deepstream-2.0-more-than-1000-times-faster-than-socket.io/

示例代码:

// get the record
var driver = client.record.getRecord( 'driver/14' );

// subscribe to any changes within position
driver.subscribe( 'position', function( position ){
  updateMarker( position.x, position.y );
});

Android 代码:

// implements android.location.LocationListener
public void onLocationChanged(Location location) {
  // get the record
  Record record = client.record.getRecord( "driver/14" );
  // any kind of data path works
  record.set( "position.x", location.getLongitude() );
  //as well as any kind of serializable datatype
  record.set( "position.y", location.getLatitude() );
}


本文地址:https://www.codercto.com/soft/d/3491.html

Just My Type

Just My Type

Simon Garfield / Profile Books / 2010-10-21 / GBP 14.99

What's your type? Suddenly everyone's obsessed with fonts. Whether you're enraged by Ikea's Verdanagate, want to know what the Beach Boys have in common with easy Jet or why it's okay to like Comic Sa......一起来看看 《Just My Type》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

URL 编码/解码
URL 编码/解码

URL 编码/解码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器