Return-Path: X-Original-To: apmail-cxf-dev-archive@www.apache.org Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C0E2A17D85 for ; Tue, 24 Feb 2015 13:01:00 +0000 (UTC) Received: (qmail 69057 invoked by uid 500); 24 Feb 2015 13:01:00 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 68988 invoked by uid 500); 24 Feb 2015 13:01:00 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 68976 invoked by uid 99); 24 Feb 2015 13:01:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2015 13:01:00 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sberyozkin@gmail.com designates 209.85.215.46 as permitted sender) Received: from [209.85.215.46] (HELO mail-la0-f46.google.com) (209.85.215.46) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2015 13:00:35 +0000 Received: by lams18 with SMTP id s18so25458451lam.11 for ; Tue, 24 Feb 2015 05:00:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Fwx+H6TnwRDYE4iOqngL77uk0O/ijul2Y4xM7R2EnbA=; b=A+aXfoF1GyJwSKXa2jWqrAbzOBR3yD8X3dA5V81TT3FA/sXWHaXouKWXvYqQYweBdq mHJWVndHnkakZRhPP1z0hmPeZxoq/aSACVoFsSCPImpwanqXRO63Q+AoduJmXooCHmzD COL8aK/FTY+eg51bKxQW6+3kLD8gfwuMvP1HL3ZnJTz6L6u2kYPtA84sa3OtupQQBJjG +0WCoRh7eme+BYwwmswI0XaUPOj5nwpZAv3XSL/cop9BuPTgMWRKjBuvRzyloKYMX/QV 0/mw/yIqkHzsgHvnRv1zSyOAvyJe1x3uGPBULi3G04muiZ72O2FTDnnn96qXJfQvE+2E TlXw== X-Received: by 10.112.109.103 with SMTP id hr7mr9876369lbb.27.1424782833797; Tue, 24 Feb 2015 05:00:33 -0800 (PST) Received: from [10.36.226.2] ([80.169.137.63]) by mx.google.com with ESMTPSA id la5sm498518lac.0.2015.02.24.05.00.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Feb 2015 05:00:33 -0800 (PST) Message-ID: <54EC75F0.6060503@gmail.com> Date: Tue, 24 Feb 2015 13:00:32 +0000 From: Sergey Beryozkin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Andrey Redko CC: Daniel Kulp Subject: Re: Fwd: Hystrix feature? References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Andriy, David Karlsen is def not proposing to start supporting reactive client API, it is more about about some advanced fault-tolerance support - we should actually reply to him I guess. Thanks for sharing a link though. We will have to implement it as part of JAX-RS 2.1 work, and we'd need to have a Java 8 trunk opened for it. It does appear Jersey is already full steam into a Java 8 based 2.1 development (note: no spec api proposals have been made - but I expect them coming soon enough once they have finished experimenting). Dan, IMHO it would be right to have a Java 8 trunk opened in the last quarter of the year to give CXF a better chance of catching up sooner than later with Jersey. I'm not trying to extend the dev discussion here though - more or less what I said there :-) Cheers, Sergey On 24/02/15 12:30, Andrey Redko wrote: > Hi Sergey, > > What do you think about looking into this feature? I do have some > knowledge about Hystrix and it > has gained some traction in the community. I am not sure though what > exactly this guy has > in mind BUT if you don't mind, I can work with him to outline his design > / intentions and make sure > it would make sense for the CXF project (I can reply to him and work > with him directly). > > What do you think? > > PS: FYI, Jersey has started to integrate Netflix projects > (http://blog.dejavu.sk/2015/01/07/reactive-jersey-client-part-1-motivation/), > into their JAX-RS implementation, I think Hystrix will come soon as well. > > Best Regards, > Andriy Redko > > ---------- Forwarded message ---------- > From: *David Karlsen* > > Date: Mon, Feb 23, 2015 at 4:03 AM > Subject: Hystrix feature? > To: dev@cxf.apache.org > > > Hi. > > I'm wondering about creating an Interceptor for outgoing requests > (isRequestor()==true) to wrap these (synchronously) in a Hystrix [1] > executable [2]. > > Instead of having this as an inhouse custom component, I wonder about > creating a branch of cxf and adding a features/hystrix component (like for > the clustering support). Is this a component you would accept and be > willing to merge into master? I'm asking upfront so I don't end in a > dead-end with it and have to port it back to an inhouse-component. > I thought I'd use the serviceQname as commandGroup (namespace) and key > (localname). I also thought I'd add a protected method resolveTenant > (returning null for default) so that multitenant solutions are well > supported (e.g. the same service may be ok for one tenant and failing for > another, so be able to differenciate config). > > [1] https://github.com/Netflix/Hystrix > [2] > https://netflix.github.io/Hystrix/javadoc/com/netflix/hystrix/HystrixCommand.html > > > WDYT? > > -- > -- > David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen >