Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 05BA9BE0A for ; Thu, 12 Jan 2012 04:49:18 +0000 (UTC) Received: (qmail 30845 invoked by uid 500); 12 Jan 2012 04:49:16 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 30298 invoked by uid 500); 12 Jan 2012 04:49:00 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 30290 invoked by uid 99); 12 Jan 2012 04:48:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2012 04:48:52 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.210.178] (HELO mail-iy0-f178.google.com) (209.85.210.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2012 04:48:43 +0000 Received: by iabz7 with SMTP id z7so2566340iab.23 for ; Wed, 11 Jan 2012 20:48:23 -0800 (PST) Received: by 10.50.85.199 with SMTP id j7mr9811106igz.25.1326343703271; Wed, 11 Jan 2012 20:48:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.138.202 with HTTP; Wed, 11 Jan 2012 20:48:02 -0800 (PST) X-Originating-IP: [68.4.109.196] From: Mark Hahn Date: Wed, 11 Jan 2012 20:48:02 -0800 Message-ID: Subject: couch attachments versus amazon S3 To: couchdb-user@apache.org Content-Type: multipart/alternative; boundary=e89a8f235589489a3f04b64d75de --e89a8f235589489a3f04b64d75de Content-Type: text/plain; charset=ISO-8859-1 I've been storing a lot of images as couch attachments. I now have to support videos that are too large for couch attachments. So I pretty much have to consider using S3 since I'm on AWS anyway and S3 scales automatically compared to my OS file system. Since I have to use S3 for videos, why not use it for images? Has anyone else compared these alternatives? These are the consequences to switching to S3 that I can think of ... 1) Smaller load on couchdb for replicating, compaction, disk usage etc 2) S3 would give less load on cpu and nginx for serving files to client 3) Performance for file access? Would S3 be slower? 4) Option to use CDN in the future? 5) S3 has finer-grained access control than attachments. I can't let the client directly access couch on my server because couch has no read-access controls. 6) Do small files have a disadvantage in S3? I see they charge for IO transfers, whatever that means. After typing this in I'm starting to think that if a file is needed across servers, no matter how small, it should be in S3 instead of an attachment. --e89a8f235589489a3f04b64d75de--