Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-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 3DDFB184C5 for ; Tue, 19 Jan 2016 08:35:23 +0000 (UTC) Received: (qmail 50681 invoked by uid 500); 19 Jan 2016 08:35:20 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 50640 invoked by uid 500); 19 Jan 2016 08:35:20 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 50623 invoked by uid 99); 19 Jan 2016 08:35:20 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2016 08:35:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id DD191C0044 for ; Tue, 19 Jan 2016 08:35:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.9 X-Spam-Level: ** X-Spam-Status: No, score=2.9 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id D8btP2yuZf71 for ; Tue, 19 Jan 2016 08:35:07 +0000 (UTC) Received: from mail-yk0-f180.google.com (mail-yk0-f180.google.com [209.85.160.180]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 6BFDD2054B for ; Tue, 19 Jan 2016 08:35:07 +0000 (UTC) Received: by mail-yk0-f180.google.com with SMTP id v14so546400428ykd.3 for ; Tue, 19 Jan 2016 00:35:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=gtgFA+f2BZ/uyfvqgWjk6AS09qBy4CTGQ8ZWM2GYIDI=; b=g3eGkETW1KeWi2yjXI2TJLGOttYWl6GrTRfrKY+vKrvBISiNcyhJKjCvcOwSasl4wK LDBL6J+oqKt77KP0CmAZNzK+XMFXr9SeroHObe5XxDST58D0uq7nwaB3TM1fEJbr7b1r +KUasdOQu4EiYZHeLCrmNy3gBGNmmrnuJLuKGvnOIy8tzNkkG+v6Tv7CjZ+hSu21Zuev qs1VRfb50f/kP9qmnHX2tCA1TKFRZGhx1ihO6YHL6HlJRsLpaAgWt7dW8jsEE5RJOEiY H4z6O5uDSWDJ6/r+KONlP/sc563fkI5rVRf23WAAACyxKh7MbUKErvY3kcEuxw9PNZgb aWCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=gtgFA+f2BZ/uyfvqgWjk6AS09qBy4CTGQ8ZWM2GYIDI=; b=m1LuvuGm+XCIfUcNDomB1W+bR5vhahuL6T5cruAb1L5E90GrVKDORVCsc1ocQ+hv+p QYbsyTRpVQuG6Qi5mYYC8584zxSbrL966BIJ0E8DoJZxHPZ+MnukYCHbMGThDpJFT970 vjOe6EIy/GFo0kYi6cG+Bzs2wKk7RVTKrcjyVmeUHRpYPkTbgyL19LiNs0ICcCWhivpz dOduXLHzq2IiZJXALKDeaMWjGX4uBh0cRP/GRNIhFOTxawp6aBjG+HDzGVVWqJ7PI2EE wboHF6ojiBvpVClVBlYOIfzR/DPxitgXrs6T321CgcnLP4IiTWguWwiZGrYkF6uz79a8 50xA== X-Gm-Message-State: AG10YOTjm0BKLTNbWSLcg7rEw9FGPH1Er4jFE2zskmvJFj1oys+S+s0kS2LkWHZ+ILKvVycGWOJNE2FW7WTOaA== X-Received: by 10.13.203.216 with SMTP id n207mr8367416ywd.204.1453192506688; Tue, 19 Jan 2016 00:35:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.83.214 with HTTP; Tue, 19 Jan 2016 00:34:47 -0800 (PST) In-Reply-To: References: From: DuyHai Doan Date: Tue, 19 Jan 2016 09:34:47 +0100 Message-ID: Subject: Re: Using cassandra a BLOB store / web cache. To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a114e68f026cc630529abbf21 --001a114e68f026cc630529abbf21 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable There is also an excellent tutorial video done by Patrick McFadin and Aaron Morton on the subject of data model for storing images into Cassandra: http://youtu.be/gk-B75xgFUg I guess it can be adapted to store binary objects other than images On Tue, Jan 19, 2016 at 6:37 AM, Jack Krupansky wrote: > Chunk the blobs and store them in a separate table from the metadata. > > Here's an old attempt at a chunked object store, for reference: > https://github.com/Netflix/astyanax/wiki/Chunked-Object-Store > > Picking an appropriate chunk size may be key (or not). Somewhere between > 8K and 512K, I would guess, but it probably doesn't matter a lot and coul= d > be tuned and even configured dynamically. > With a smaller chunk size you have the option of reading lots of small > chunks with separate requests or as a slice. > > It seems like there has been a fair amount of negative sentiment about > using Cassandra as a blob/object store, but I personally do think it is > workable to at least some extent. > > A lot of my background is with Solr for search, including a little with > DSE Search. > > > -- Jack Krupansky > > On Mon, Jan 18, 2016 at 9:52 PM, Kevin Burton wrote: > >> Internally we have the need for a blob store for web content. It's >> MOSTLY key, ,value based but we'd like to have lookups by coarse grained >> tags. >> >> This needs to store normal web content like HTML , CSS, JPEG, SVG, etc. >> >> Highly doubt that anything over 5MB would need to be stored. >> >> We also need the ability to store older versions of the same URL for >> features like "time travel" where we can see what the web looks like ove= r >> time. >> >> I initially wrote this for Elasticsearch (and it works well for that) bu= t >> it looks like binaries snuck into the set of requirements. >> >> I could Base64 encode/decode them in ES I guess but that seems ugly. >> >> I was thinking of porting this over to CS but I'm not up to date on the >> current state of blobs in C*... >> >> Any advice? >> >> -- >> >> We=E2=80=99re hiring if you know of any awesome Java Devops or Linux Ope= rations >> Engineers! >> >> Founder/CEO Spinn3r.com >> Location: *San Francisco, CA* >> blog: http://burtonator.wordpress.com >> =E2=80=A6 or check out my Google+ profile >> >> >> > --001a114e68f026cc630529abbf21 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
There is also an excellent tutorial video done by Patrick = McFadin and Aaron Morton on the subject of data model for storing images in= to Cassandra:=C2=A0http://youtu.be/= gk-B75xgFUg

I guess it can be adapted to store binar= y objects other than images

On Tue, Jan 19, 2016 at 6:37 AM, Jack Krupansky <jack.krupansky@gmail.com> wrote:
Chunk the blobs and store them in a separate tab= le from the metadata.

Here's an old attempt at a chu= nked object store, for reference:

Picking an appropriate chunk size may be key (or not). Somewhere betw= een 8K and 512K, I would guess, but it probably doesn't matter a lot an= d could be tuned and even configured dynamically.
With a smaller = chunk size you have the option of reading lots of small chunks with separat= e requests or as a slice.

It seems like there has = been a fair amount of negative sentiment about using Cassandra as a blob/ob= ject store, but I personally do think it is workable to at least some exten= t.

A lot of my background is with Solr for search,= including a little with DSE Search.


-- Jack Krupansky

On Mon, Jan 18, 2016 at 9:52 PM, Kevin Burto= n <burton@spinn3r.com> wrote:
Internally we have the need for a blob store for web = content.=C2=A0 It's MOSTLY key, ,value based but we'd like to have = lookups by coarse grained tags.

This needs to store norm= al web content like HTML , CSS, JPEG, SVG, etc.

Hi= ghly doubt that anything over 5MB would need to be stored.

We also need the ability to store older versions of the same URL f= or features like "time travel" where we can see what the web look= s like over time.

I initially wrote this for Elast= icsearch (and it works well for that) but it looks like binaries snuck into= the set of requirements. =C2=A0

I could Base64 en= code/decode them in ES I guess but that seems ugly. =C2=A0

I was thinking of porting this over to CS but I'm not up to da= te on the current state of blobs in C*...

Any advi= ce?=C2=A0

--

We=E2=80=99re hiring if you know of any awesome Java Devop= s or Linux Operations Engineers!

Founde= r/CEO=C2=A0Spinn3r.com=
Location:=C2=A0San Francisco, CA
<= div>=E2=80=A6 or check out my Google+ profile



--001a114e68f026cc630529abbf21--