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

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
主站蜘蛛池模板: 寿宁县| 温宿县| 普兰店市| 甘孜县| 乌海市| 江门市| 大邑县| 聂荣县| 收藏| 无为县| 五华县| 崇州市| 弥勒县| 山丹县| 任丘市| 政和县| 来安县| 舞钢市| 秭归县| 临沧市| 盈江县| 牡丹江市| 临海市| 芦溪县| 扬中市| 高碑店市| 新和县| 贵溪市| 阿拉善左旗| 博野县| 金塔县| 丹巴县| 宁津县| 上饶县| 高清| 塔河县| 馆陶县| 祁阳县| 庐江县| 墨竹工卡县| 肥西县|