官术网_书友最值得收藏!

Object type standardization

Whether you are using custom binary serialization, JSON, or JSON-RPC you need to think about how your user is going to handle the object at the other side of the transaction. Many of the serialization packages Protocol Buffers such as protocol buffers and Thrift that use stubs to generate client code will happily deal with serialization of simple types such as Dates into native types that enable your consumer to easily use and manipulate these objects. However, if you are using JSON or JSON-RPC there is no concept of a Date as a native type therefore it can be useful to fall back to ISO standards which the user of the client can easily deserialize. The Microsoft API design guidelines provide some good advice on how to handle Dates and Durations.

主站蜘蛛池模板: 集贤县| 准格尔旗| 丹寨县| 广河县| 三门县| 永福县| 务川| 兴山县| 客服| 利辛县| 丰都县| 宁乡县| 温泉县| 博客| 厦门市| 黔江区| 双柏县| 修文县| 双峰县| 马龙县| 登封市| 七台河市| 寻乌县| 正阳县| 定远县| 凌源市| 阳春市| 茂名市| 南雄市| 双鸭山市| 北票市| 同心县| 宁阳县| 青浦区| 洛隆县| 胶州市| 彰化市| 湖州市| 壤塘县| 榆树市| 洛川县|