Return-Path: Delivered-To: apmail-synapse-dev-archive@www.apache.org Received: (qmail 57977 invoked from network); 4 May 2010 16:25:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 May 2010 16:25:40 -0000 Received: (qmail 37042 invoked by uid 500); 4 May 2010 16:25:40 -0000 Delivered-To: apmail-synapse-dev-archive@synapse.apache.org Received: (qmail 36919 invoked by uid 500); 4 May 2010 16:25:40 -0000 Mailing-List: contact dev-help@synapse.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@synapse.apache.org Delivered-To: mailing list dev@synapse.apache.org Received: (qmail 36912 invoked by uid 99); 4 May 2010 16:25:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 May 2010 16:25:40 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of indika.kuma@gmail.com designates 74.125.83.170 as permitted sender) Received: from [74.125.83.170] (HELO mail-pv0-f170.google.com) (74.125.83.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 May 2010 16:25:32 +0000 Received: by pvc7 with SMTP id 7so1041037pvc.15 for ; Tue, 04 May 2010 09:25:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=/wsJpYC3XY6qhPwKKko7xbxguoiutRAXzO3vqOSoO7s=; b=qYy1m8vpF78JkRGSXs17Lhov6+pAQlvJB/J7T0HHiUihQq1M1LXcqM7iZnN/LqtHdz /KJ8PSMrD7AbXPrYNfq7TL1aaaQQ0YBBIzLZ3cizaUxFQNtqwn/OR2gF1Khu6cYNxDne nVaGFgIARsG3YsJXYqlXcvVGxH3I0wZ9BEGGw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=rEQRLg2VsChk67GG7dN2NNfn9b8nvqole261U8X6ND/BGpIVpFt7inabnhBgdNaXG8 4oiLQ4+aBkFxE/ZGe/+fOysSzoUCOOlqM+D8sH72jPg9uHwtTmgfLDnBw+GgMPJwXlE2 N9+nGsXlDDyTWpVfVSJYBo/ScHJ5HN+wI/G+4= MIME-Version: 1.0 Received: by 10.141.125.20 with SMTP id c20mr4583456rvn.238.1272990310520; Tue, 04 May 2010 09:25:10 -0700 (PDT) Received: by 10.140.144.16 with HTTP; Tue, 4 May 2010 09:25:10 -0700 (PDT) In-Reply-To: References: Date: Tue, 4 May 2010 22:25:10 +0600 Message-ID: Subject: Re: Generating Names for Anon. Endpoints From: indika kumara To: dev@synapse.apache.org Content-Type: multipart/alternative; boundary=00221540001242d78a0485c727a5 X-Virus-Checked: Checked by ClamAV on apache.org --00221540001242d78a0485c727a5 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable > > What makes you think the current approach for endpoints is 'incorrect'? I= f > it is not correct then that indeed is a problem we should get fixed > Hiranja As currently, we generate a random one (so unique), therefore the internal operation is correct as far as users do not specify a name. However, as users also specified names if we do not validate names, we cannot grantee the uniqueness. (As per my knowledge, we do not validate names for in-lined endpoints... I did not check code =85 so... I may be wrong)=85 Therefore, t= here is a possibility for incorrect operation. On the other hand, the generated name does not represent any context information such as for what this endpoint is (The =91server1.foo=92 the endpoint for the service =91foo=92 in the server 1). We cannot generate suc= h a meaningful name=85 On the other hand, in synapse even if you have generated internally a name for an endpoint, the end user does not know it. There is no tool for viewin= g names of endpoints. Then the name will become another internal thing that uses for the correct operation of endpoints and from the user perspective, he cannot easily use it for diagnosing any errors, JMS monitoring, etc. (Currently, Name is not for users but for our internal working). A named entity is used by a user to separate a particular entity from others entities in both configurations and runtime data. In synapse, Statistics (JMX) is one =85 JMS monitoring is another, error log analyzing is another one=85 However, the clustering is not. It is an internal operation. For su= ch an internal operation, generating a name or id is perfectly OK as it is not for users. Name is for users =85. Internally generated ID is for interna= l operations. That is why I would like, at least for any operations that require an endpoint name, to warn (at latest) users if there is no name has been specified. Making the name mandatory will be too good as it brings more advantages for users than disadvantages. A user will only recognize the importance of a context aware meaningful name, when things go wrong and he need to identify the error based on the information in the logs. =85If it was a very random issue and cannot be eas= ily reproduced, what kind of feeling will he feel? =85 I believe, after that da= y, we will put names carefully =96 not just a unique name but meaningful =85 Thanks Indika --00221540001242d78a0485c727a5 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
What makes you think the current = approach for endpoints is 'incorrect'? If it is not correct then th= at indeed is a problem we should get fixed

Hiranja

As currently, we ge= nerate a random one (so unique), therefore the internal operation is correc= t as far as users do not specify a name. However, as users also specified n= ames if we do not validate names, we cannot grantee the uniqueness. (As per= my knowledge, we do not validate names for in-lined endpoints... I did not= check code =85 so... I may be wrong)=85 Therefore, there is a possibility = for incorrect operation.=A0

On the other hand, the generated name does not represent any context in= formation such as for what=A0 this endpoint is (The =91server1.foo=92 the e= ndpoint for the service =91foo=92 in the server 1). We cannot generate such= a meaningful name=85=A0

On the other hand, in synapse even if you have generated internally a n= ame for an endpoint, the end user does not know it. There is no tool for vi= ewing names of endpoints. Then the name will become another internal thing = that uses for the correct operation of endpoints and from the user perspect= ive, he cannot easily use it for diagnosing any errors, JMS monitoring, etc= . (Currently, Name is not for users but for our internal working).=A0 A nam= ed entity is used by a user to separate a particular entity from others ent= ities in both configurations and runtime data.=A0 In synapse, Statistics (J= MX) is one =85 JMS monitoring is another, error log analyzing is another on= e=85 However, the clustering is not. It is an internal operation.=A0 For su= ch an internal operation, generating a name or id is perfectly OK as it is = not for users.=A0=A0=A0 Name is for users =85. Internally generated ID is f= or internal operations.

That is why I would like, at least for any operations that require an e= ndpoint name, to warn (at latest) users if there is no name has been specif= ied.

Making the name mandatory will be too good as it brings more a= dvantages for users than disadvantages.

A user will only recognize the importance of a context aware meaningful= name, when things go wrong and he need to identify the error based on the = information in the logs. =85If it was a very random issue and cannot be eas= ily reproduced, what kind of feeling will he feel? =85 I believe, after tha= t day, we will put names carefully =96 not just a unique name but meaningfu= l =85

Thanks
Indika
=A0

--00221540001242d78a0485c727a5--