From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3193813877A for ; Sat, 9 Aug 2014 19:49:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E93B1E0A62; Sat, 9 Aug 2014 19:49:44 +0000 (UTC) Received: from mail-qa0-f51.google.com (mail-qa0-f51.google.com [209.85.216.51]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EA8BBE09D1 for ; Sat, 9 Aug 2014 19:49:43 +0000 (UTC) Received: by mail-qa0-f51.google.com with SMTP id k15so6548711qaq.38 for ; Sat, 09 Aug 2014 12:49:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=/Yi5Hv8jCPwdjx0/ctnLJK+4NZwEPQRMu0oY6SS1o00=; b=L/MMCrDa0cn+fh53zAaIxNjAlDVjgHO0PLUuxsj9I6FnRl396GzcrVxefVxtAVp6xQ B8793Xc2X/g3AA1yG5Ja3pDRfXYEcjMAm947JW1PY2kdjJHqKCIOcguUvuA9/Ey8UNrl 3tIyuj4fTIMefTFK/gj7hEaSkWal/77iLn8cQKfPg2Uy3SytsQCFLgCpiBIf6TrLkLro sfCa+VTixKbev+/D2LWbu0ZZzOxZBCpYhH8c2M/W4tBO+yj+TzE+xbMA8suqMFY3wbo/ B472e5Ra2g8CJJD5Jbq0guYgl/DOJxIB9dvr/pNLLZUTyQJT1/+bbvrK8rSItbKm2oAB PCWg== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.224.137.6 with SMTP id u6mr48598045qat.91.1407613783164; Sat, 09 Aug 2014 12:49:43 -0700 (PDT) Received: by 10.140.44.34 with HTTP; Sat, 9 Aug 2014 12:49:43 -0700 (PDT) In-Reply-To: <53e66536.240d700a.104a.477d@mx.google.com> References: <53e649e6.c8a1980a.2941.4762@mx.google.com> <53e66536.240d700a.104a.477d@mx.google.com> Date: Sun, 10 Aug 2014 07:49:43 +1200 Message-ID: Subject: Re: [gentoo-dev] A constructive reommendation on stablity improvemt From: Kent Fredric To: gentoo-dev@lists.gentoo.org Content-Type: multipart/alternative; boundary=001a11c2a3ec86cd540500379f2a X-Archives-Salt: 8c9f4078-84b1-4ee3-926a-05d9425ed260 X-Archives-Hash: 6d88a216490f86734188eeda509dcf81 --001a11c2a3ec86cd540500379f2a Content-Type: text/plain; charset=UTF-8 On 10 August 2014 06:15, Igor wrote: > Communication protocol is already there - it's HTTP, method POST > HTTP protocol is already with Python - CURL, WGET > A reliable server ready to accept data from portage is all so there - > it's Apache web server. For the sake of this discussion, those protocols serve only as a channel. You have to send some kind of data structure over that channel indicating data about state. This requires the data to have a defined format, and potentially a versioning scheme for that format. And not just a defined format, like JSON for instance, but a defined structure of JSON representation with keys and values being clearly stipulated. You can't just send arbitrary freeform JSON to a random server and hope it pulls sense out of fat air. -- Kent *KENTNL* - https://metacpan.org/author/KENTNL --001a11c2a3ec86cd540500379f2a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On 10 August 2014 06:15, Igor <lanthruster@gmail.com> wr= ote:
Communicat= ion protocol is already there - it's HTTP, method POST
HTTP protocol is already with Python - CURL, WGET
A reliable server ready to accept data from portage is all so there -=C2=A0=
it's Apache web server.=C2=A0


For the sake of this discussion, those protocols s= erve only as a channel.

You have to= send some kind of data structure over that channel indicating data about s= tate.

This requires the data to have a defin= ed format, and potentially a versioning scheme for that format.

And not just a defined format, like JSON for i= nstance, but a defined structure of JSON representation with keys and value= s being clearly stipulated.

You can't just send arbitrary free= form JSON to a random server and hope it pulls sense out of fat air.
--
Kent

<= /div>

--001a11c2a3ec86cd540500379f2a--