Hi Cassio, I would say the best way to do this would be to use either AMPQ or 0MQ. If using 0MQ, you'd be using a ZMQ_DEALER and ZMQ_ROUTER setup. This would mean that you can pass many messages along and receive many messages in a stream.
However, the downside of this, is that you'll need each "request" to have an ID associated with it, such that you know who to send it to, much like many RPC protocols. You could possibly even use Thrift, but I don't know too much about that, so can't speak much on that. Async HTTP requests would likely be excess on data, but would mean that you wouldn't need to create your own "http server" interface. – Micheil On 25/04/2012, at 2:15 PM, Cassio Melo wrote: > I'm beginning with websockets and I'm confused with the number > libraries and configuration options. I just want to setup a project > where a node.js server calls a method in python/django and when the > last has finished, it transfers the result back to the node.js > server. > > I'm not sure which is the best way of doing that (supposing the method > to be executed in django takes some time to finish). I see two > possibilities: > > - node.js send async http requests to django server > - node.js communicates with django using AMQP > > Can you give your view about it? > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
