Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6B41C2EEC for ; Tue, 3 May 2011 23:29:42 +0000 (UTC) Received: (qmail 60079 invoked by uid 500); 3 May 2011 23:29:42 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 60057 invoked by uid 500); 3 May 2011 23:29:42 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 60049 invoked by uid 99); 3 May 2011 23:29:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 23:29:42 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ted.dunning@gmail.com designates 209.85.220.170 as permitted sender) Received: from [209.85.220.170] (HELO mail-vx0-f170.google.com) (209.85.220.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 23:29:35 +0000 Received: by vxb40 with SMTP id 40so746932vxb.15 for ; Tue, 03 May 2011 16:29:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=91sgDDIGTPlUWekhjDanJo1w9xEqIKWoD/9gevCUeFw=; b=jX8Ru5bU46KR2qm1pMO/9g3ie5eQR3VI3lVUrdqWvNiKXF8wcvSxTNtJW+3JCSanvl +4uGKBgJAxrOs+P9fdboh300JMbLBZj9ETwZBPrVJjmmoUKOoQmZzER9ChcPUaS1Vmkz TuX5Uju9v4boZFW7UfIT4MrkL5/hrnTKyTeIM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=N5yYIGpNbB9PmPZUujoIk03k31yfwvjLQwWsdphSjD8qRSpU0FOIt8A7orX6xKIOXn sbAnss1yP2itvGs7tAbdx0P72rgsSTeXTaXyoW1hG2Y5/mhts+gSCQQlFtjxKvNz+Q4Z UkFVCwxUlo4jMfSw7L11HSrhoS/JUrk9nzvwk= Received: by 10.52.176.10 with SMTP id ce10mr537213vdc.280.1304465354267; Tue, 03 May 2011 16:29:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.116.42 with HTTP; Tue, 3 May 2011 16:28:54 -0700 (PDT) In-Reply-To: References: From: Ted Dunning Date: Tue, 3 May 2011 16:28:54 -0700 Message-ID: Subject: Re: Zookeeper and PHP To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=bcaec51a8184101bb904a2678253 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec51a8184101bb904a2678253 Content-Type: text/plain; charset=UTF-8 The gateway was designed to be stateless so that a simple load balancer would give HA properties. Of course, you lose ephemerals and notifications with this approach but those don't make a lot of sense with PHP anyway. On Tue, May 3, 2011 at 4:22 PM, Antoine Boulanger wrote: > Thanks for sharing your experience. I suppose the gateway service was > itself > highly available ? > Or did you use TSocketPool in PHP ? My concern is indeed not to lose zk HA > feature in the process > > On Tue, May 3, 2011 at 4:10 PM, Ted Dunning wrote: > > > I have used the thrift option in the past. At the time I did that, we > > build > > a gateway service in Java that talked in turn to ZK. That was a slight > > pain > > because of the additional service. The result was very portable, > however, > > because the PHP side was pure PHP and the java code was inherently pretty > > portable. > > > > The only problems we had were when ZK filled up due to not paying > > attention. > > > > On Tue, May 3, 2011 at 4:04 PM, Antoine Boulanger > wrote: > > > > > Hi, > > > > > > I am looking into using Zookeeper inside a php environment. My usecase > is > > > configuration management right now. > > > > > > I thought about 3 different approaches: > > > - using a C-based php module (there exists a couple on GitHub) > > > - using the REST interface provided in /contrib > > > - using Thrift (by bundling a Thrift server with the ZK Client) > > > > > > I am currently more in favor of using Thrift, because I do not know > about > > > the stability of the other approaches. > > > Would be somebody be able to recommend something ? Do you know about > > > projects / companies using zookeeper with php ? > > > > > > Thanks > > > Antoine > > > > > > --bcaec51a8184101bb904a2678253--