English 中文(简体)
• 空气化模式与代谢和代言共同?
原标题:Serialization format common to node.js and ActionScript?

我的一些朋友正在设计一场游戏,我正在通过执行游戏辅助服务器帮助他们摆脱。 该游戏是用闪电书写的,我计划在 no子里开发服务器,因为(a) 它是用于学习节点的冷却项目,(b) 快,这对游戏很重要。

服务器结构基于服务器与客户之间发送的信息(如《手工艺》服务器程序)。 我迄今为止的电文格式是星(包装类型)、2个 by(电传长度)和许多 by(电文数据,是关键价值乳制品的绘图)。 问题在于: 我不想制定自己的序列化格式(因为尽管我可能这样做,但与使用现有解决办法相比,执行这种格式将是一种痛苦)。

不幸的是,我有问题找到信息数据序列化格式的良好候选人。

  • ActionScript s own remoting format might work, but I don t like it much.
  • JSON has support in node.js (obviously) and in ActionScript, but it s also textual and I would prefer binary for enhanced speed.
  • MessagePack looked like a good candidate, but I can t find an ActionScript implementation. (There s one called as3-msgpack on Google Code, but I get weird errors and can t access it.)
  • BSON has an ActionScript implementation, but no node.js support besides their MongoDB library (and I m planning on using Redis).

因此,任何人都能够提供我可能错过的任何其他序列化格式? 或者,我是否应该遵守其中一项(或自行推出)?

问题回答

为什么吉大港定居地保有权支持装饰的内容? 仅使用JSON,并在发送内容时使用。 由于传播的相对性降低,所花的窒息时间超过了回收时间。

gzip with Actionscript 。 关于Node.js,我认为,gzip-compress相当受欢迎。

实际上,如果我身着你的鞋子,我将采用两种方法,并用两个时间。 利用JSON,因为这样做是常见和容易的。 但是,然后执行《农业、林业和农村发展计划》,对其进行比较。 如果你想要大规模扩大,那么你可能会发现,农业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业和林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业、林业 此外,电离层只是这种ice。 j 世界观。

AMQP on Actionscript;和 部分在Node.js 上类似。

如果你想要,你就可以在客户方贾瓦古斯塔语中创造你的全景,并利用JSON作为数据交换格式,然后由AS打电话给客户,与Java Vincent进行沟通,从而找到一个电子服务器旁的解决办法。

值得注意的是,闪电器已经建造,以支持压缩gzip压缩数据。 或许值得压缩一些日本目标,如地方化扼制表、游戏组合数据等,这些物体可增长成几百千兆克,但只装上一只游戏负荷。





相关问题
Choosing the right subclass to instantiate programmatically

Ok, the context is some serialization / deserialization code that will parse a byte stream into an object representation that s easier to work with (and vice-versa). Here s a simplified example ...

WCF Problem Sending Object To Client

Background Converting from using .Net Remoting to WCF. Most of the methods on the WCF server are working fine, but ran into one that isn t working today. This is the service contract: [...

WCF DataMember Serializing questions

Ok, so I was part way through the long winded process of creating DTOs for sending my model over the wire and I don t feel like I m going down the right route. My issue is that most of the entities ...

deserialize the XML Document --- Need Help

I am using the below code snippet now to deserialize the XML document ... [WebMethod] public XmlDocument OrderDocument(XmlDocument xmlDoc) { XmlSerializer serializer = new XmlSerializer(typeof(...

How do I serialize a child class?

how do I include the serialized data from a child class where both impliment iserializeable? Class A Implements ISerializable dim _B as new B Class B Implements ISerializable ...

WCF: Serialize complex objects with read-only members

Looking for some guidance on a WCF service I’m prototyping. I have a WCF service hosted in IIS that will pass data to my clients. I have a separate shared assembly that contains all my business ...

Long/multiple SQL queries vs Serialization

I m trying to improve the performance of my web app where a page does a long query to pull data from different tables on a database. It pulls invoice data with multiple item lines, invoice status, and ...

热门标签