Suchitha Koneru (sukoneru) wrote:
> Thanks Tatu for the suggestion. If I have a list of 50,000 or for example 1000 items, Would Jersey process this list in the form of batches ? Is Batch processing or Handling of large data sets built into Jersey Framework? I am trying to see if there are any annotations in Jersey which I can use in this scenario.
>
>
This is not up to Jersey (or even JAX-RS) ... it is up to how you design
your API. In this sort of situation, I would probably design the server
to accept either a single transaction or a collection of transactions,
and process whatever it received. But its up to the client to maintain
the state information of how far it has gotten through its potentially
larger set of transactions yet to submit. In a proper REST API, the
interactions with the server are stateless, so this information isn't
the business of the server.
Craig
> Thanks,
> Suchitha.
>
> -----Original Message-----
> From: Tatu Saloranta [mailto:tsaloranta_at_gmail.com]
> Sent: Wednesday, July 15, 2009 10:11 PM
> To: users_at_jersey.dev.java.net
> Subject: Re: [Jersey] Application scaling support in Jersey
>
> On Wed, Jul 15, 2009 at 4:09 PM, Suchitha Koneru (sukoneru)<sukoneru_at_cisco.com> wrote:
>
>> Hello Jersey Users,
>> I am new to Jersey and would like to know
>> if jersey caters for application scaling. For example if we try to
>> POST 50,000 items, can we do it in the form of batches ? In case of
>> web services based on SOAP we have ws-enumeration for handling this
>> scenario. I would like to know, if we have something similar in
>> Jersey
>>
>
> Just define your resource (that you are POSTing) to contain List/array of items?
>
> -+ Tatu +-
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>