You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by Timothy Ward <ti...@apache.org> on 2016/08/01 08:07:39 UTC

Re: Aries RSA - support for long running calls

Are we also happy to work this into an OSGi RFP/RFC?

Regards,

Tim

> On 26 Jul 2016, at 16:52, Christian Schneider <ch...@die-schneider.net> wrote:
> 
> In that case I am fine with requiring Java 8 for the build and for fastbin at runtime.
> 
> Christian
> 
> On 26.07.2016 17:42, Johannes Utzig wrote:
>> That would work just fine as long as the build job is compiled with a JDK 8
>> (target can remain with 1.7 for the other modules of course).
>> 
>> 2016-07-26 17:16 GMT+02:00 Christian Schneider <ch...@die-schneider.net>:
>> 
>>> I was not aware that CompleteableFuture is a java 8 only feature.
>>> Would it maybe work to just require java 8 in the fastbin transport. As
>>> the transport is new I would not be much concerned
>>> about the compatibility.
>>> 
>>> Christian
>>> 
>>> On 26.07.2016 14:27, Johannes Utzig wrote:
>>> 
>>>> Makes sense. However, that means that I probably won't be able to create a
>>>> pull request since it wouldn't be able to support CompletableFuture and
>>>> the
>>>> internal implementation heavily relies on CompletableFuture
>>>> unfortunately...
>>>> Any idea what timeframe the next major version has?
>>>> 
>>>> 
>>> --
>>> Christian Schneider
>>> http://www.liquid-reality.de
>>> 
>>> Open Source Architect
>>> http://www.talend.com
>>> 
>>> 
> 
> 
> -- 
> Christian Schneider
> http://www.liquid-reality.de
> 
> Open Source Architect
> http://www.talend.com
> 


Re: Aries RSA - support for long running calls

Posted by Christian Schneider <ch...@die-schneider.net>.
On 01.08.2016 12:05, Johannes Utzig wrote:
> 2016-08-01 10:50 GMT+02:00 Christian Schneider <ch...@die-schneider.net>:
>
>
>> Do you think we can even define and implement this in a transport agnostic
>> way or do we need to support async per transport?
>>
>> Christian
>>
>>
> I don't see how this could be done with the current architecture as the
> whole invocation and communication part is the sole responsibility of the
> distribution provider.
> To support async calls the distribution provider needs to detect the
> arguments/return values and replace Future/Promise and so on with custom
> instances. All the RSA currently sees on the client side is a proxy object
> and then it's already too late.
> On the server side, the RSA doesn't even see that a remote invocation took
> place so it cannot participate in the request.
> We might be able to make it easier for new transports with abstract base
> classes or so, but with the current interface I don't think it can be done
> transparantly for the transport.
>
>    Johannes
>
I think you are right. I am also not sure if handling async on the rsa 
side is really what we need. Whenver possible I think it is better to 
handle the asynchronicy on the transport level so
we ideally do not block any threads.

Christian


-- 
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com


Re: Aries RSA - support for long running calls

Posted by Johannes Utzig <ju...@gmail.com>.
2016-08-01 10:50 GMT+02:00 Christian Schneider <ch...@die-schneider.net>:


> Do you think we can even define and implement this in a transport agnostic
> way or do we need to support async per transport?
>
> Christian
>
>
I don't see how this could be done with the current architecture as the
whole invocation and communication part is the sole responsibility of the
distribution provider.
To support async calls the distribution provider needs to detect the
arguments/return values and replace Future/Promise and so on with custom
instances. All the RSA currently sees on the client side is a proxy object
and then it's already too late.
On the server side, the RSA doesn't even see that a remote invocation took
place so it cannot participate in the request.
We might be able to make it easier for new transports with abstract base
classes or so, but with the current interface I don't think it can be done
transparantly for the transport.

  Johannes

Re: Aries RSA - support for long running calls

Posted by Christian Schneider <ch...@die-schneider.net>.
I think it would be great to have a RFP for Remote Service Admin with 
async support.

Do you think we can even define and implement this in a transport 
agnostic way or do we need to support async per transport?

Christian

On 01.08.2016 10:07, Timothy Ward wrote:
> Are we also happy to work this into an OSGi RFP/RFC?
>
> Regards,
>
> Tim

-- 
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com