Re: jabberd2 questions?

"Jack Moffitt" <[email protected]>
Newsgroups gmane.network.jabber.admin
Message-ID <[email protected]>
>> blocking database calls.  Also, j2 only uses a single database
>> connection instead of a connection pool.
>
> 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.  This is how Twisted
Python works for example.

jack.
_______________________________________________
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.