--On 10. Januar 2008 20:46:42 +0200 George Gozadinos <[EMAIL PROTECTED]> wrote:
Hi, I'm developing a kss-based live chat product to be released as open source. While the basic functionality is working, I have the following problem. I would like to avoid storing messages sent by users to the chat room object, as this easily leads to ZODB conflicts. But I need a thread-safe way to store this messages. There are alternatives such as using sql or some external xmlrpc server but is there a way to actually store them in memory AND have them available to all threads?
If you talk of ZODB: use BTrees. They provide ZODB optimized and have support for conflict resolution. In addition the ZODB provides a hook to perform your *own* application level conflict resolution if necessary. You are of course free to hook into a RDBMS...there is not much to talk about (covered in various Zope documentations).
-aj
pgpgWgBKdKOKd.pgp
Description: PGP signature
_______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
