what are the nodejs datatype equivalent of container datatypes in thrift?

2013-04-05 Thread jeevan kk
what are the nodejs datatype equivalent of the following thrift datatypes. List, Set, Map -- *Regards Jeevan KK*

Thrift C++ binary data type

2013-04-05 Thread Bryan Pham
Hi, I'm having some issues sending binary data type from C++ server to Java client. I believe it has to do with in C++ writeBinary takes in std::string which will truncate on null char. Going from Java byte[] - C++ however works just fine. Does anybody has any insight on how to make binary

Question about Multithreaded Thrift Servers

2013-04-05 Thread Napolitano, Diane
Hello, I have a Thrift server (just NameOfServer here) written in Java which is initialized with the following inside of an inner class called ServerThread: TThreadPoolServer.Args args = new TThreadPoolServer.Args(serverTransport); args.maxWorkerThreads(10); args.processor(processor); TServer

Re: Question about Multithreaded Thrift Servers

2013-04-05 Thread Ben Craig
The threaded server uses one thread per connection. It does not get a request, and have an available thread process the request. This means that if you send 20 requests, and the 10th request takes a long time to process, the last ten requests will be stalled. From: Napolitano, Diane

RE: Question about Multithreaded Thrift Servers

2013-04-05 Thread Napolitano, Diane
Really? So if threads 0 thru 9 are running, and 0-8 finish, the remaining requests in the queue (is there even a queue?) won't make use of 0-8? It's fine if they sit there waiting for 9 to finish, but in this case, even after 9 finishes, additional requests aren't being executed. If 10

RE: Question about Multithreaded Thrift Servers

2013-04-05 Thread Ben Craig
You only mention requests, so I'm not sure if these are all going over the same connection or not. One other thing that gets strange is that naming across the different languages isn't consistent. I am most comfortable with the C++ implementation, and so that's the behavior that I described.

RE: Question about Multithreaded Thrift Servers

2013-04-05 Thread Napolitano, Diane
Hmm, interesting. These requests are actually clients, several thousands of them actually :) , calling methods on the server. We have a cluster setup here, and I have one cluster job that is the server, and several thousand cluster jobs that are each one client, or one request to the server.