On Sat, Jun 16, 2012 at 9:08 AM, Tim Dickinson <price.ti...@gmail.com> wrote:
> I think callback style is better then just returning values for the host and
> port. If hostname is stored in a database then you might run into problems.

This is by design. It's not very good "load-balancing" if you have to
do another network round trip to know where to send a message.

You are probably only balancing to tens, or maybe hundreds of servers.
that is well within the bounds of nodejs in-memory data. If you have
the data at hand, then you can respond immediately.

If your servers are stored in a database like couch, then you might
listen on the couchdb changes feed to keep an up to date in memory
store. I wish more databases had apis like the couchdb changes feed.

-- 
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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to