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

Message versioning guidance

Here are a few tips for message versioning:

  • If the change cannot be implemented by extending the original message type, then it is not a new version of the message; it is a new message type
  • If you are unsure, prefer to create a new message type rather than version an existing message
  • Versioned messages should not be used with request/response as the message types are part of the request/response contract and Request<V1,Response> is not the same as Request<V2,Response>, even if V2 extends V1 (that is, public class V2 : V1 {})
  • Versioned messages should not be used with send/receive as this is targeted sending and therefore there is a declared dependency between the sender and the receiver
主站蜘蛛池模板: 江川县| 万年县| 绥阳县| 冕宁县| 广德县| 永德县| 嘉义市| 炎陵县| 阿拉善左旗| 鲜城| 平和县| 武隆县| 商南县| 甘德县| 高安市| 南川市| 中卫市| 珲春市| 博罗县| 百色市| 报价| 高清| 会宁县| 万宁市| 微山县| 鹤岗市| 深水埗区| 辽中县| 汉阴县| 会理县| 织金县| 福清市| 新平| 潼关县| 汉源县| 安国市| 嘉禾县| 延寿县| 峨眉山市| 泰宁县| 吴川市|