Re: jabberd2 questions?

Christof Meerwald <[email protected]>
Newsgroups gmane.network.jabber.admin
Message-ID <[email protected]>
On Sat, 30 Aug 2008 10:40:19 -0600, Jack Moffitt wrote:
>> I don't see how a connection pool could improve anything here. As the
>> session manager is single-threaded, there is no way it can use more than one
>> connection at a time. So, to be able to use more than one connection, you
>> would first have to make it multi-threaded.
> A connection pool of course implies the connections are in threads.
> None of the rest of the server needs to be threaded at all.  There
> would just be a non-blocking API design to submit a query and then
> some callback would return with the answer later.

And, of course, you would have to rework all the server code (that uses the
database) to use a non-blocking API instead of a blocking API - which might
even be more work to do than making it threaded. The middle way might be to
use some cooperative threading package - but still you won't be able to rely
on lots of assumptions in the code you have taken for granted in the past.


> This is how Twisted Python works for example.

Yes, but that has been designed that way from the start.


Christof

-- 

http://cmeerw.org                              sip:cmeerw at cmeerw.org
mailto:cmeerw at cmeerw.org                   xmpp:cmeerw at cmeerw.org
_______________________________________________
JAdmin mailing list
FAQ: http://www.jabber.org/discussion-lists/jadmin-faq
Forum: http://www.jabberforum.org/forumdisplay.php?f=19
Info: http://mail.jabber.org/mailman/listinfo/jadmin
Unsubscribe: [email protected]
_______________________________________________
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.