Pretty much. The sharding key can be used to allow the client library to manage the sharding for you, instead of the application (much like memcached clients do). It can also be used to just shove the sharding key in, and then a proxy or router can do that hashing for you. Most scalable applications need something like this, and it made sense to build it into the protocol for consistency rather than have every app define their own method.
-Eric On Thu, Jun 18, 2009 at 10:13:44AM -0700, Michael Shadle wrote: > If I understood it yesterday, I think he wants to take a memcached approach. > > Then Eric (or someone else) mentioned an even more intelligent > mechanism, using a memcached approach with try/fail responses in case > the data had moved "it's not here. go there" > > (This is coming from loose spitballing discussions, and my limited > understanding :)) > > On Thu, Jun 18, 2009 at 6:09 AM, Joe Daly<[email protected]> wrote: > > I see in http://drizzle.org/wiki/New_Protocol mention of a sharding key > > but Im slightly confused by how it would be used. > > > > 2-byte Sharding Key length. > > X-byte Sharding Key (length is value of client ID length). The client ID > > is > > there for the client and routers/proxies to use. The server > > treats this as opaque data, and will only preserve it to send > > in responses. This can be used as a sharding key, to keep > > state information in a proxy, or any other use. > > > > Who is the client/proxy that does the routing. I assume at this point > > that still has to be developed to test any type of sharding? > > > > thanks > > --Joe Daly > > -- > > This message was sent from Launchpad by the user > > Joe Daly (https://launchpad.net/~skinny.moey) > > using the "Contact this team" link on the Drizzle Discuss team page. > > For more information see > > https://help.launchpad.net/YourAccount/ContactingPeople > > > > _______________________________________________ > > Mailing list: https://launchpad.net/~drizzle-discuss > > Post to : [email protected] > > Unsubscribe : https://launchpad.net/~drizzle-discuss > > More help : https://help.launchpad.net/ListHelp > > > > _______________________________________________ > Mailing list: https://launchpad.net/~drizzle-discuss > Post to : [email protected] > Unsubscribe : https://launchpad.net/~drizzle-discuss > More help : https://help.launchpad.net/ListHelp _______________________________________________ Mailing list: https://launchpad.net/~drizzle-discuss Post to : [email protected] Unsubscribe : https://launchpad.net/~drizzle-discuss More help : https://help.launchpad.net/ListHelp

