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

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
主站蜘蛛池模板: 子洲县| 南昌市| 罗平县| 海盐县| 亚东县| 漳浦县| 米泉市| 哈巴河县| 石楼县| 托里县| 灯塔市| 南宁市| 高雄市| 双城市| 平泉县| 东台市| 湘乡市| 普陀区| 武邑县| 贵定县| 竹溪县| 德安县| 抚松县| 房产| 黔东| 扎赉特旗| 岗巴县| 屯留县| 申扎县| 正阳县| 灵山县| 慈溪市| 安多县| 明光市| 平武县| 南开区| 嵊泗县| 搜索| 塔城市| 舟山市| 广元市|