X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7E310D7C58 for ; Sat, 27 Aug 2005 10:27:48 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 32636-05 for ; Sat, 27 Aug 2005 13:27:47 +0000 (GMT) Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by svr1.postgresql.org (Postfix) with ESMTP id 75FA0D7B7E for ; Sat, 27 Aug 2005 10:27:43 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id ED70F31F51; Sat, 27 Aug 2005 15:40:36 +0200 (MET DST) From: William Yu X-Newsgroups: pgsql.general Subject: Re: Postgresql replication Date: Sat, 27 Aug 2005 06:27:43 -0700 Organization: Hub.Org Networking Services Lines: 20 Message-ID: References: <60fyszpby5.fsf@dba2.int.libertyrms.com> <20050824173106.76233.qmail@web53210.mail.yahoo.com> <430E5116.5000108@travelamericas.com> <430F50D3.9090709@travelamericas.com> <430FC13E.2000302@travelamericas.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en In-Reply-To: <430FC13E.2000302@travelamericas.com> To: pgsql-general@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.025 required=5 tests=[AWL=0.025] X-Spam-Level: X-Archive-Number: 200508/1395 X-Sequence-Number: 82803 Chris Travers wrote: > 1) Efficiency of network throughput > 2) Tolerance to attempts at repeat transactions before replication > (emptying an account multiple times) > 3) Availability of a transaction. We ended up having to give up #1. It's possible to have our transactions routed to multiple servers before it becomes a final transaction. User1 might request a payment on ServerA. User2 then marks the payment as approved on ServerB. ServerC is authoritative and checks the bank/budget balances before posting as final. After each of these steps requires replication of the latest changes to all other servers. (In theory, the first 2 steps only require replication to the authoritative server but we do so anyways so all servers can act as backups for each other -- pending transactions still need to be restored in case of total DB failure.) There's definitely a delay in terms of getting from point A to point Z; duplicate servers. But there's guaranteed financial integrity, users can connect to any server the load balancer picks and no server requires any other server/connection to be up for individual user tranactions to occur.