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

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
主站蜘蛛池模板: 德州市| 泰和县| 泗阳县| 于都县| 安宁市| 汉川市| 军事| 册亨县| 涿州市| 肇源县| 奉新县| 高要市| 临夏县| 塔河县| 仪陇县| 阿克苏市| 珲春市| 辉南县| 信宜市| 东方市| 武平县| 太和县| 金寨县| 扎赉特旗| 鄂州市| 会东县| 汝城县| 贵溪市| 津南区| 夏河县| 宁乡县| 白城市| 深泽县| 安多县| 荆门市| 花莲市| 梓潼县| 宁德市| 平凉市| 临海市| 家居|