Membase java tutorial for beginners

71 views
Skip to first unread message

Sujee Maniyam

unread,
Dec 1, 2010, 4:31:13 PM12/1/10
to membase
http://sujee.net/tech/articles/membase-tutorial-1/

any feedback appreciated.

thanks
Sujee

Matt Ingenthron

unread,
Dec 1, 2010, 4:38:02 PM12/1/10
to mem...@googlegroups.com, Sujee Maniyam
Hi Sujee,

On 12/1/10 1:31 PM, Sujee Maniyam wrote:
> http://sujee.net/tech/articles/membase-tutorial-1/
>
> any feedback appreciated.

Very nice!

Note, there is a pre-release of a new spymemcached client that can
configure itself directly from Membase. I've posted it here:
http://wiki.membase.org/display/membase/prerelease+spymemcached+vBucket

It would be useful for the multiple bucket case and should even decrease
latency. Your code shouldn't even need to change too much.

- Matt

--
Matt Ingenthron
Software Engineer - Membase, Inc.

Sujee Maniyam

unread,
Dec 1, 2010, 6:09:57 PM12/1/10
to membase
> Note, there is a pre-release of a new spymemcached client that can
> configure itself directly from Membase.  I've posted it here:http://wiki.membase.org/display/membase/prerelease+spymemcached+vBucket
>
> It would be useful for the multiple bucket case and should even decrease
> latency.  Your code shouldn't even need to change too much.

Hi Matt,
just so I understand this correctly:

in your example : http://wiki.membase.org/display/membase/prerelease+spymemcached+vBucket
when you say
mc = new MemcachedClient(baseURIs, "default", "Administrator",
"password", true);
you are binding to the default bucket. And the client can figure out
the port number, right? So we can bind to buckets by name?

Does this only work in SASL mode?

Also regarding
mc.shutdown(3, TimeUnit.SECONDS);
is there a way to tell the client to write all the cached writes to
Membase and exit?

thanks
Sujee

Reply all
Reply to author
Forward
0 new messages