thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fuyou <fuyou...@gmail.com>
Subject Re: Need Guidance
Date Fri, 31 Aug 2012 01:46:27 GMT
@Moreno
*             *how to use  one-thread-per-use in Thrift Server.would you
give some document about it ?
 Thanks.
*     *

2012/8/25 Juan Moreno <jwellington.moreno@gmail.com>

> I am going to take a quick stab at this.
>
> Firstly the server: since you are serving a vast amount of users, I would
> advice the use of the one-thread-per-user model. This would require that
> your server be able to handle lots of threads.
>
> From the thrift definition file, take advantage of using async methods
> wherever possible. This allows non-blocking service calls.
>
> Since C++ and Java are fully featured languages, I suggest that you use the
> TBinary protocol, for it is more efficient than the JSON ones.
>
> If network traffic is a concern, you may also get around with compressing
> the Output Streams too. You may have to implement a Custom Client to
> de-compress it though. Just a suggestion.
>
>
> Hope that helps.
> On Aug 25, 2012 1:15 AM, "Tarun Goyal" <join2tarun@gmail.com> wrote:
>
> > Hi All,
> >
> > I am planning to use thrift as a communication protocol between java
> client
> > and cpp server.
> > Please guide me what transport,threading and protocol will be best suited
> > for my requirement.
> >
> > I need huge data transfer and also no of users are unlimited so please
> help
> > me.
> >
> >
> > Thanks,
> > Tarun
> > +918095634804
> >
>



-- 
   =============================================

  fuyou001
Best Regards

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message