From cera at vuzit.com Mon Jul 13 10:36:46 2009 From: cera at vuzit.com (Chris Cera) Date: Mon, 13 Jul 2009 10:36:46 -0400 Subject: [s3-dev] AWS requests generated by Bucket.objects() Message-ID: <20090713143646.GF7980@insomnio> Hi everyone, I have two questions, if I execute the following command: Bucket.objects('mybucket', :prefix => 'secure/') 1) Does this count against the "PUT, COPY, POST, or LIST requests" or the "GET and all other requests" ? 2) If I have 100 keys with the given prefix, does it count as 1 request, or 100 for each returned? Any help is sincerely appreciated. Best, -Chris From cera at vuzit.com Tue Jul 14 22:56:41 2009 From: cera at vuzit.com (Chris Cera) Date: Tue, 14 Jul 2009 22:56:41 -0400 Subject: [s3-dev] AWS requests generated by Bucket.objects() In-Reply-To: <20090713143646.GF7980@insomnio> References: <20090713143646.GF7980@insomnio> Message-ID: <20090715025641.GH70644@insomnio> I posted to the AWS forum, and received an answer: http://developer.amazonwebservices.com/connect/thread.jspa?threadID=34108 * Chris Cera [090713 10:36]: > Hi everyone, > > I have two questions, if I execute the following command: > Bucket.objects('mybucket', :prefix => 'secure/') > > 1) Does this count against the "PUT, COPY, POST, or LIST > requests" or the "GET and all other requests" ? > > 2) If I have 100 keys with the given prefix, does it count as > 1 request, or 100 for each returned? > > Any help is sincerely appreciated. Best, -Chris From klochner at gmail.com Wed Jul 22 20:00:58 2009 From: klochner at gmail.com (kevin lochner) Date: Wed, 22 Jul 2009 20:00:58 -0400 Subject: [s3-dev] Exception Frenzy Message-ID: <9B3CCD6F-6A20-44F2-A600-C7C27E491F9F@gmail.com> Not to grab a rubygem and immediately start complaining, but . . . what's the deal with raising (unique) exceptions on just about all api calls? For example: Bucket.find(...) --> AWS::S3::NoSuchBucket S3Object.find() --> AWS::S3::NoSuchKey The resulting code is a lot cleaner if I don't have to check for exceptions every time I make an api call. IMHO it would look more like idiomatic ruby if the find calls returned nil on error. Is there a reason for the exception-based paradigm? - kevin