Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qEAfy-0007Z0-Ux for pgsql-general@arkaria.postgresql.org; Tue, 27 Jun 2023 15:32:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qEAfx-0001c3-Hs for pgsql-general@arkaria.postgresql.org; Tue, 27 Jun 2023 15:32:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qEAfw-0001bu-6z for pgsql-general@lists.postgresql.org; Tue, 27 Jun 2023 15:32:17 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qEAfs-000l01-R1 for pgsql-general@lists.postgresql.org; Tue, 27 Jun 2023 15:32:14 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 95E1132008FD; Tue, 27 Jun 2023 11:32:10 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 27 Jun 2023 11:32:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1687879930; x=1687966330; bh=GozVzPIZXJEGRLoWfBPBvWe1pCmikAfKvOF THP7smvQ=; b=kak71dszJaWqJiPfNwIfufqZzcP0d2oF7AACwmxDFsG9NyODZfl jRRegVyGuLHoUJQRwl/JSdhNayGJ+kxuZaNYSdZ36pJ7Xp4pX5jbw33NucYxLCvV j1I6TWqMj75HVSsIZiWIGnAM0ojUkrHm8Dv4NBZZq8l9e/3GvZvYPdQlHjySAvfW +FzWJeTc8xiWUtkQ1JFWAErjuq9KwscNRukMBuW1YqfOuV371crKWVn/2LAfNJ0x eRElTS11+tsPhN2VYQUyNcJJgtOTBVIOnvJ1aUGf2XUaWv/Q/iKmo5byFvgmkrd4 ZkFMm0WuyWDB+zcrXpUs8d6n4D3V1DiwOkA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1687879930; x=1687966330; bh=GozVzPIZXJEGRLoWfBPBvWe1pCmikAfKvOF THP7smvQ=; b=pQc+dco2b5gcfY2vbfeJxYGeBeZD6wljEuHvaCj2EzitQ+Y35Pu VXbYvwgjSvFxXmNG1vC+TuJfMyOyRCet9n28HxqPwjDmI0H1SFXdHuK310GP9pwG 50boxpCNTeoIh3+yGqoU7eYCX0KPbYcCJF5lxRMtfUYSnegfHJh2huRGcoDAdWoE jXz7ZBZeleELoLx4XfcWHiVWtqruHJYOHlNq30dmtrN+Hk03cTGn/Go5p49JZ3kM ftmZCoNT85uaEy+TQHX2ENxBMgCY3bkXhXm/rV0jZeZEa7dj6P8tPW7s1Lp7yXh7 HCJnzuKwgtNj4ZWKGt7XtwswXf1H+JIZ9jw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrtddtgdegjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeehudfgtefhtedtheeiveetueektdejvdfhveekgfdu feegveetuddvuedvgeeggeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 27 Jun 2023 11:32:09 -0400 (EDT) Message-ID: <00402ef0-2638-8d1f-0acb-a9b2d8bc2605@aklaver.com> Date: Tue, 27 Jun 2023 08:32:08 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: Large scale reliable software system To: Merlin Moncure , B M Cc: pgsql-general@lists.postgresql.org References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 6/27/23 07:58, Merlin Moncure wrote: > > > On Mon, Jun 26, 2023 at 6:49 PM B M > wrote: > > Dear all, > > After greeting, > > I taught PostgreSQL myself and developed a small scale > experimentalsoftware system using PostgreSQL in the back-end. > > I would like to know your advices to develop a large scale reliable > software system using PostgreSQL in the back-end, through which i > can share the storage with the different system users where they > login to the system through the web application front-end with > different passwords and usernames , save the privacy of each user > data, improve overall system security and performance, achieve fast > response, make backups and save the stored data from loss. The > system will be hosted on a cloud. > > Thank you in advance. > > > * your sql is code, and treat it as such, check it into git etc > * robust deployment strategy is essential to scaling team > * write a lot of tests > * become intimate with pg_stat_statements > * keep your transactions as short as possible while preserving safety > * avoid developers who advocate for keeping business logic out of the > database religiously (controversial) > * try to avoid assumptions that only one technical stack interacts with > your database > * do not waste time making ERDs use a tool that generates them (i like > schemaspy) > * test your DR strategy before disaster strikes > * think about security model up front +1 > > merlin > -- Adrian Klaver adrian.klaver@aklaver.com