Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 239D8200D11 for ; Mon, 2 Oct 2017 22:53:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 21F271609EF; Mon, 2 Oct 2017 20:53:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 68A441609C0 for ; Mon, 2 Oct 2017 22:53:00 +0200 (CEST) Received: (qmail 71507 invoked by uid 500); 2 Oct 2017 20:52:59 -0000 Mailing-List: contact dev-help@geode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.apache.org Delivered-To: mailing list dev@geode.apache.org Received: (qmail 71493 invoked by uid 99); 2 Oct 2017 20:52:59 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Oct 2017 20:52:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D536DDA677 for ; Mon, 2 Oct 2017 20:52:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.48 X-Spam-Level: ** X-Spam-Status: No, score=2.48 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=pivotal-io.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id ftA-QZGUh3Hl for ; Mon, 2 Oct 2017 20:52:56 +0000 (UTC) Received: from mail-it0-f52.google.com (mail-it0-f52.google.com [209.85.214.52]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 0550160DDA for ; Mon, 2 Oct 2017 20:52:56 +0000 (UTC) Received: by mail-it0-f52.google.com with SMTP id m123so9131949ita.3 for ; Mon, 02 Oct 2017 13:52:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pivotal-io.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=F+LOIP1sZwYeLCqrqLuJjlfGcsdG8sSpdf+R9DI5vCs=; b=rDGvyb6WyM0mWKG9r8nF+kgi9skYHgeMlbraoKY/7rZY9e0DHtG/R9wzlYB9LHQZB9 jU5CArs/+48fX2ud9WgxMNsJCBb2MM0U0QKMo1gfvdHolwctmNnSptwuZDW4rEsTYRsY oc2y9vhlleK4bG/cPhoBA/9tVhMySyk5/DMk9EAaX/cHIIrZUBpQQnqfUs+hCTwwzgq3 ZeDj20bFPF94feDSmfczepVjhWgzDc7JjBoUmMqkLgxpm+gDJ3fkgyNCeXTUieaq1zHR T5IUs02S4rqv4d1FMustKQm2dE+6jx6Qeb1/emYtywYrO00USGQYv1JfpexvVbYvbo6Y feMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=F+LOIP1sZwYeLCqrqLuJjlfGcsdG8sSpdf+R9DI5vCs=; b=gaqmvVOPtqeJFR5jsA/fJYI/evK6Woplp48kxw83w1TL0pc5NIuQZMggfoPb9iIxUC NQeX7CSb4cBofG9aPKmecDa8ID2UXzX3ZgZ/7tIYMli4DrH/v54aI0mwVAH3A/1gC+8J YWN1K0LM9FuQI5oBzekMVQZslt8xO8nKRJT/T79t7s3v/wWWhDR+/j1f6rsQcAPOKFSL taodnDVBTJ8sdYQVBm5boLYEw8syOAS+xeHs1/oz8BgLUKmBOzokIzF03h6SYtY3v04b f+++ZV6saHRUj/d1sL26Iy9qeOVSkkpvggDw+dO9FuQRJMuzPkmoyqcgPNe7jjrzhHXn p+6w== X-Gm-Message-State: AMCzsaVS4eY8ZEc4KtXkdEGEoL3CoGswryZfBVSDoXqsjQki2dhengoe 5J1cNKBSvpFQuFHnMBdt9XtWBn/v5pwqUaC3dTjEVA== X-Google-Smtp-Source: AOwi7QDVZGTSZgIoLYboaY3hf6C9PUvskMRWEli21uMy4s307ghPcxrNZEqRNA7wNFhuzPNYLc4/Y0h6dDRWq8oLWck= X-Received: by 10.36.178.94 with SMTP id h30mr10628578iti.44.1506977575970; Mon, 02 Oct 2017 13:52:55 -0700 (PDT) MIME-Version: 1.0 References: <47C527DD-034F-436D-A8F2-2E90DD46FDA1@pivotal.io> In-Reply-To: <47C527DD-034F-436D-A8F2-2E90DD46FDA1@pivotal.io> From: Jacob Barrett Date: Mon, 02 Oct 2017 20:52:45 +0000 Message-ID: Subject: Re: New client/server protocol - seeking feedback To: dev@geode.apache.org Content-Type: multipart/alternative; boundary="f403045d99e219f1d2055a968f0b" archived-at: Mon, 02 Oct 2017 20:53:01 -0000 --f403045d99e219f1d2055a968f0b Content-Type: text/plain; charset="UTF-8" On Mon, Oct 2, 2017 at 12:37 PM Michael William Dodge wrote: > From my days using Win32 APIs, I think fixing Foo() with FooEx() is an > anti-pattern. But that's not to say that "version 37 fixes the parameters > to Foo() and in no other way changes anything" is any better. I see the > version as useful for determining the structure of the protocol, not the > specifics of a message per se. > I was hoping someone would catch the Win32 reference there and exactly why I said ignore the names. The point is that two messages that different in content are in fact two distinct messages with very very very minor exceptions. One of the disadvantages of using versions is that it can lead to spaghetti > code such as cascading if statements to handle different versions of any > given message. I worry that having the client and server negotiate which > messages they are going to use would also be a significant addition of > complexity. > Look at our current code... If version 65, do this, if 72, do this, if 80 do that... It is a mess. -Jake --f403045d99e219f1d2055a968f0b--