Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 98695 invoked from network); 30 Nov 2008 00:26:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Nov 2008 00:26:18 -0000 Received: (qmail 26741 invoked by uid 500); 30 Nov 2008 00:26:29 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 26714 invoked by uid 500); 30 Nov 2008 00:26:29 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 26703 invoked by uid 99); 30 Nov 2008 00:26:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Nov 2008 16:26:28 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of antony.blakey@gmail.com designates 209.85.198.249 as permitted sender) Received: from [209.85.198.249] (HELO rv-out-0708.google.com) (209.85.198.249) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Nov 2008 00:25:00 +0000 Received: by rv-out-0708.google.com with SMTP id k29so2275304rvb.0 for ; Sat, 29 Nov 2008 16:25:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=mRWe5HVlGVuxy2VHJo1k/YVYCMgoNz91FanhTjQiZmE=; b=LthGDsbr+gRP8AEhKSKLwwANVFoWBjj5fKc6j0PE5/GLa0ZdXPEhSbeG7/20tmKD6L b6vOo+8YbducuqGF/uiVofCEg/tV+etJxIbav3PNb8KSxxZmSCyuhL1FEqyFAntGBwUZ S/2Ta5t+7GLed8WZzjpYp0lhBuvth6A+Wxw0o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=OFY7MYF4Mlm5NHBT/dHSPW0iDdkyeT7ik7UpKbBs1zdS226F5/CNmQV4J88FAYiIqU Ye9XocbtHECIr6JHqVUVg329suW1vEs0W34tPo4GhTAiWB0iEjhNSWU+ozBNyv+ujQjv /+EQ8S1lrKh08D4SeUA/aZXhZbp3t/kv9IcdM= Received: by 10.141.106.14 with SMTP id i14mr4450102rvm.143.1228004737739; Sat, 29 Nov 2008 16:25:37 -0800 (PST) Received: from ?192.168.0.16? (ppp121-45-41-103.lns10.adl2.internode.on.net [121.45.41.103]) by mx.google.com with ESMTPS id f21sm4186748rvb.5.2008.11.29.16.25.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 29 Nov 2008 16:25:37 -0800 (PST) Message-Id: <79E428CF-BD16-43AB-B6E4-2ED2EA2107C4@gmail.com> From: Antony Blakey To: couchdb-user@incubator.apache.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Write/Read/Notification synchronization Date: Sun, 30 Nov 2008 10:55:33 +1030 X-Mailer: Apple Mail (2.929.2) X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'm building a caching system for computed joins. I have an external cache process that listens for notifications and uses the notification to clear a cache. The external cache process responds to queries and repopulates the cache on receipt of a query. I'm wondering what the intended synchronization is between the notification and subsequent queries. My concern is that I might get a notification, clear the cache, and simultaneously get a query which repopulates the cache, but the cache doesn't see the committed data that triggered the update, and hence repopulates with obsolete data. Is there any serialization guarantee for the notification/read cycle i.e. once I receive a notification will all subsequent reads see the updated data? What if I do the read in the notification process? I'm hoping that notifications are all post-write, and synchronized with the query response machinery. I can check the source, but I want to know what the architects' intention is, and whether there is any intended guarantee. Antony Blakey -------------------------- CTO, Linkuistics Pty Ltd Ph: 0438 840 787 I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours. --Stephen F Roberts