You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@wink.apache.org by "Tsadok, Shay" <sh...@hp.com> on 2011/04/11 20:13:28 UTC

Does Wink support batch operations?

Hi,

I wanted to check if Wink support aggregation of multiple REST calls into single request using MIME-Multipart or Feeds?

Thanks,
Shay

RE: Does Wink support batch operations?

Posted by "Tsadok, Shay" <sh...@hp.com>.
Thanks for the info!

-----Original Message-----
From: Bryant Luk [mailto:bryant.luk@gmail.com] 
Sent: Wednesday, April 13, 2011 5:23 PM
To: wink-user@incubator.apache.org
Subject: Re: Does Wink support batch operations?

Yes, you would need to take care of the dispatching. I think you would
have to invent some protocol to do exactly what you want. For
instance, if you wanted to GET multiple resources, you could pass in a
JSON data structure full of the URLs you wanted to batch together in
one response.

BTW, having "batch operations" like this seem to go against some of
the REST principles and general HTTP if you're relying on things like
caching for instance. Just my 2 cents.

On Tue, Apr 12, 2011 at 3:01 PM, Tsadok, Shay <sh...@hp.com> wrote:
> Thanks for the info.
> Does it means that I will need to take care for the dispatching? If yes - how should I do it without sending a new HTTP request per part?
>
> Thanks,
> Shay
>
> -----Original Message-----
> From: Bryant Luk [mailto:bryant.luk@gmail.com]
> Sent: Tuesday, April 12, 2011 7:07 PM
> To: wink-user@incubator.apache.org
> Cc: Tsadok, Shay
> Subject: Re: Does Wink support batch operations?
>
> So there are MIME Multipart packages (
> org.apache.wink.common.model.multipart and
> org.apache.wink.common.internal.providers.multipart ) which allow you
> to response with multipart requests/responses. You can try that out. I
> was thinking you wanted to do something else originally.
>
> On Tue, Apr 12, 2011 at 10:48 AM, Tsadok, Shay <sh...@hp.com> wrote:
>> We need it for performance...
>>
>> Sent from my iPhone
>>
>> On 12 באפר 2011, at 18:32, "Bryant Luk" <br...@gmail.com>> wrote:
>>
>> It isn't directly supported. Are you trying to get better performance
>> or something else?
>>
>> On Mon, Apr 11, 2011 at 1:13 PM, Tsadok, Shay <sh...@hp.com>> wrote:
>> Hi,
>>
>>
>>
>> I wanted to check if Wink support aggregation of multiple REST calls into
>> single request using MIME-Multipart or Feeds?
>>
>>
>>
>> Thanks,
>>
>> Shay
>>
>

Re: Does Wink support batch operations?

Posted by Bryant Luk <br...@gmail.com>.
Yes, you would need to take care of the dispatching. I think you would
have to invent some protocol to do exactly what you want. For
instance, if you wanted to GET multiple resources, you could pass in a
JSON data structure full of the URLs you wanted to batch together in
one response.

BTW, having "batch operations" like this seem to go against some of
the REST principles and general HTTP if you're relying on things like
caching for instance. Just my 2 cents.

On Tue, Apr 12, 2011 at 3:01 PM, Tsadok, Shay <sh...@hp.com> wrote:
> Thanks for the info.
> Does it means that I will need to take care for the dispatching? If yes - how should I do it without sending a new HTTP request per part?
>
> Thanks,
> Shay
>
> -----Original Message-----
> From: Bryant Luk [mailto:bryant.luk@gmail.com]
> Sent: Tuesday, April 12, 2011 7:07 PM
> To: wink-user@incubator.apache.org
> Cc: Tsadok, Shay
> Subject: Re: Does Wink support batch operations?
>
> So there are MIME Multipart packages (
> org.apache.wink.common.model.multipart and
> org.apache.wink.common.internal.providers.multipart ) which allow you
> to response with multipart requests/responses. You can try that out. I
> was thinking you wanted to do something else originally.
>
> On Tue, Apr 12, 2011 at 10:48 AM, Tsadok, Shay <sh...@hp.com> wrote:
>> We need it for performance...
>>
>> Sent from my iPhone
>>
>> On 12 באפר 2011, at 18:32, "Bryant Luk" <br...@gmail.com>> wrote:
>>
>> It isn't directly supported. Are you trying to get better performance
>> or something else?
>>
>> On Mon, Apr 11, 2011 at 1:13 PM, Tsadok, Shay <sh...@hp.com>> wrote:
>> Hi,
>>
>>
>>
>> I wanted to check if Wink support aggregation of multiple REST calls into
>> single request using MIME-Multipart or Feeds?
>>
>>
>>
>> Thanks,
>>
>> Shay
>>
>

RE: Does Wink support batch operations?

Posted by "Tsadok, Shay" <sh...@hp.com>.
Thanks for the info.
Does it means that I will need to take care for the dispatching? If yes - how should I do it without sending a new HTTP request per part?

Thanks,
Shay

-----Original Message-----
From: Bryant Luk [mailto:bryant.luk@gmail.com] 
Sent: Tuesday, April 12, 2011 7:07 PM
To: wink-user@incubator.apache.org
Cc: Tsadok, Shay
Subject: Re: Does Wink support batch operations?

So there are MIME Multipart packages (
org.apache.wink.common.model.multipart and
org.apache.wink.common.internal.providers.multipart ) which allow you
to response with multipart requests/responses. You can try that out. I
was thinking you wanted to do something else originally.

On Tue, Apr 12, 2011 at 10:48 AM, Tsadok, Shay <sh...@hp.com> wrote:
> We need it for performance...
>
> Sent from my iPhone
>
> On 12 באפר 2011, at 18:32, "Bryant Luk" <br...@gmail.com>> wrote:
>
> It isn't directly supported. Are you trying to get better performance
> or something else?
>
> On Mon, Apr 11, 2011 at 1:13 PM, Tsadok, Shay <sh...@hp.com>> wrote:
> Hi,
>
>
>
> I wanted to check if Wink support aggregation of multiple REST calls into
> single request using MIME-Multipart or Feeds?
>
>
>
> Thanks,
>
> Shay
>

Re: Does Wink support batch operations?

Posted by Bryant Luk <br...@gmail.com>.
So there are MIME Multipart packages (
org.apache.wink.common.model.multipart and
org.apache.wink.common.internal.providers.multipart ) which allow you
to response with multipart requests/responses. You can try that out. I
was thinking you wanted to do something else originally.

On Tue, Apr 12, 2011 at 10:48 AM, Tsadok, Shay <sh...@hp.com> wrote:
> We need it for performance...
>
> Sent from my iPhone
>
> On 12 באפר 2011, at 18:32, "Bryant Luk" <br...@gmail.com>> wrote:
>
> It isn't directly supported. Are you trying to get better performance
> or something else?
>
> On Mon, Apr 11, 2011 at 1:13 PM, Tsadok, Shay <sh...@hp.com>> wrote:
> Hi,
>
>
>
> I wanted to check if Wink support aggregation of multiple REST calls into
> single request using MIME-Multipart or Feeds?
>
>
>
> Thanks,
>
> Shay
>

Re: Does Wink support batch operations?

Posted by "Tsadok, Shay" <sh...@hp.com>.
We need it for performance...

Sent from my iPhone

On 12 באפר 2011, at 18:32, "Bryant Luk" <br...@gmail.com>> wrote:

It isn't directly supported. Are you trying to get better performance
or something else?

On Mon, Apr 11, 2011 at 1:13 PM, Tsadok, Shay <sh...@hp.com>> wrote:
Hi,



I wanted to check if Wink support aggregation of multiple REST calls into
single request using MIME-Multipart or Feeds?



Thanks,

Shay

Re: Does Wink support batch operations?

Posted by Bryant Luk <br...@gmail.com>.
It isn't directly supported. Are you trying to get better performance
or something else?

On Mon, Apr 11, 2011 at 1:13 PM, Tsadok, Shay <sh...@hp.com> wrote:
> Hi,
>
>
>
> I wanted to check if Wink support aggregation of multiple REST calls into
> single request using MIME-Multipart or Feeds?
>
>
>
> Thanks,
>
> Shay