To use or not to use Netty
Ngoc Dao
ngocdaothanh at gmail.com
Thu Sep 1 03:13:31 EDT 2011
As far as I know, Netty does not provide something like
Response finalResponse = response1 + response2 + response 3;
You should look at Camel?
http://camel.apache.org/
Ngoc
On Thu, Sep 1, 2011 at 2:23 PM, Shardul Bhatt <shardul.bhatt at gmail.com> wrote:
> Hi All,
>
> I came across Netty when I was trying to look for solutions to one of my
> project requirements. I have gone through the Netty documentation but am not
> sure if Netty is the framework which fulfills my requirements.
>
> Please find below the details of the problem I am trying to solve and
> advise.
>
> 1. *The web based application I am working on would send
> requests(asynchronously) to multiple 'service providers' looking for data
> based on the search query.*
>
> 2. The providers would return results in various formats from XML to HTML
> with varied time lapses. This means it is always possible that I would not
> have all the data to display in a single go.
>
> 3. As I start receiving data/search results, I would need to parse the
> responses(XML/HTML) and translate data in the format suitable for display.
>
> 4. I intend to use a Java implementation of 'Memcached' for storing all data
> before it is displayed to the user.
>
> I intend to explore and evaluate various options and wanted to know if Netty
> is a framework which can help take care of 'sending async requests' to
> various servers. I could always use multithreading in Java, but using a
> framework would always be a preferred choice.
>
> It would be something like
>
> /try{
>
> Response response1 = send(Request1);
> Response response2 = send(Request2);
> Response response3 = send(Request3);
>
> Response finalResponse = response1 + response2 + response 3;
> displayResults(finalResponse);
>
> }catch(...){
> .......
> }/
>
> I want the requests to be sent asynchronously. Is this something that Netty
> can accomplish? Please advise.
>
> Thanks and Regards,
> Shardul.
>
> --
> View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/To-use-or-not-to-use-Netty-tp6749001p6749001.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>
More information about the netty-users
mailing list