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

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.

主站蜘蛛池模板: 霍林郭勒市| 宿松县| 应城市| 炉霍县| 车致| 庆城县| 卫辉市| 乐亭县| 桃源县| 游戏| 本溪市| 汉川市| 太谷县| 遂川县| 郴州市| 广西| 开鲁县| 安徽省| 钟祥市| 新丰县| 乐昌市| 荣成市| 黎川县| 鄂尔多斯市| 邯郸县| 玛多县| 温泉县| 永新县| 德惠市| 乐至县| 漳浦县| 泰兴市| 探索| 阳东县| 慈利县| 成安县| 威远县| 松溪县| 旬阳县| 韶山市| 林西县|