ie8 fix
madison

Opening the kimono on Salesforce.com's green crystals

By | April 9, 2009, 10:10am PDT

Summary: Salesforce.com’s chief technology guru Parker Harris, speaking at Cloudforce London this week, mapped out the secret sauce that makes the company’s multi-tenancy so special. Why suddenly expose details of something it has always previously kept schtum about?

Last year, a discussion at OnDemand Europe (which this year I’m helping to organize, see disclosure and video) prompted a couple of posts here on the importance and degrees of multi-tenancy. Those postings in turn prompted fellow-Enterprise Irregulars blogger Bob Warfield to liken multi-tenancy to the green crystals apocryphally used in soap marketing:

“… multi-tenancy is much more of a marketing event than a technology event. Whoa! That sort of thing will get me excommunicated from the SaaS Church of Benioff. Well, I’m sorry, but it’s true. Multi-tenancy is all about what we used to call ‘green crystals marketing’ at Borland … When you’re having a hard time differentiating, you find something unique and make it your green crystals. They provide a reason to believe why your offering is better even if they aren’t the whole reason or even most of the reason.”

Whoa indeed, Bob, I thought at the time, that’s a bit extreme. But Bob’s words started ringing in my ears the moment Salesforce.com co-founder and chief technology guru Parker Harris stepped up on stage at Cloudforce London this week to pronounce Salesforce.com the leading force in cloud because, quote, “We chose the right algorithm for multi-tenancy.” [By the way, I should also mention Salesforce.com is a recent client. See disclosure.]

Harris went on to map out the secret sauce that makes the company’s multi-tenancy so special — and I know many readers will want to know what it is, so I’ll get to that in a moment, bear with me — but the first question in my mind was, why does Salesforce.com decide that now all of a sudden it wants to start opening up the kimono and exposing details of something it’s always previously kept schtum about? (’Green crystals! Green crystals!’ whispered Bob’s avatar, excitedly jumping up and down on my left shoulder).

“Customers, especially from larger enterprises, have started asking us to tell them more about it,” explained EVP of marketing George Hu when I caught up with him as the keynote crowds dispersed. Fact is, I suspect we’re going to hear a lot more discussion about multi-tenancy this year. Larger enterprises are looking at cloud technologies and seeing that they can implement private clouds internally, so no wonder many of them are asking what’s so special about Salesforce.com. They’re probably wondering whether they can replicate what Salesforce.com does on their own private clouds, and sidestep the need to entrust their application infrastructure and data to a third party.

So are Salesforce.com’s green crystals just a marketing ploy, or is it really something that customers can’t easily replicate in their own private clouds, or by adopting rival cloud platforms? According to Bob Warfield, “Multi-tenancy is ultimately about cost.” Merely sharing infrastructure is powerful in itself, as TechCrunch’s Erick Schonfield noted in his write-up of a similar presentation at an analyst event in New York last month: All of Salesforce runs on only 1000 servers. But the real key, concluded Bob in his ‘green crystals’ posting, is to automate the operations surrounding that infrastructure: “Automation is the real driver of SaaS efficiency, but it isn’t sexy.”

Now I know some people look askance at Salesforce.com’s flavor of multi-tenancy. People that I respect in the industry have told me the company only took the route it did because it started out a decade ago, when virtualization was in its infancy and the only option if you wanted all your customers on the same shared application infrastructure was to build multi-tenancy on top of the database. Even Bob, whose SaaS evangelism moves the needles dangerously close to the red areas, says it doesn’t make much difference whether you give each customer their own tables within a single shared database as opposed to Salesforce.com’s method of running all its customers across just three or four massive shared database tables. In fact, he notes some specific challenges with the Salesforce.com approach, in which every single row of data has to have an extra column that identifies which tenant it belongs to:

“.. the cost of the column to identify the tenant is now being charged on every single row of every table. Very likely it isn’t a big cost, but it is there. Tables will get bigger too, as all the tenants are piled in. Presumably this can lead to scaling issues sooner.”

Well it turns out that this is exactly the challenge that Salesforce.com’s ‘green crystals’ address, so maybe they do have some value that goes beyond mere marketing spin. “We have a patented multi-tenant query optimizer built into Salesforce.com,” said Parker Harris in his presentation. “This is one of the key technologies to make it fast.” Note the careful inclusion of the word ‘patented’ to make it clear that this is a variety of green crystal that no other SaaS vendor can use. But what exactly is a ‘multi-tenant query optimizer’? I can hear you wondering (if you weren’t still interested, you wouldn’t have got this far).

I had the good fortune at the post-keynote executive lunch to be sitting next to Trae Chancellor, VP of enterprise strategy, who in his previous role as Salesforce.com’s CIO has had unique access to the inner sanctum where the green crystals are kept. He was able to help me figure out how it all works.

It all revolves around special high-speed index tables that are automatically created based on the data that’s being stored and how users are interacting with it. Salesforce.com’s system is constantly analyzing the queries users are doing and it automatically creates a new index table wherever it sees a query pattern that would work faster if it were indexed. These are not indexes of the whole database, but smaller subsets that group data based on data types or specific categories of data. For every query that runs, the pre-query optimizer then checks out how much data would need to be filtered (by looking at how many rows of data the user has access rights to) and evaluates whether it can use any of the shared indexes to short-cut the operation. It then follows the fastest path to the answer.

This automated query optimization (note that it’s performed in software by algorithms, not manually by database administrators) is Salesforce.com’s answer to the scaling issues Bob Warfield alluded to in his discussion of multi-tenant databases. Is it a big enough differentiator to evade Bob’s ‘green crystals marketing’ jibe? I’m not enough of a database expert to tell you. What I can say is that computing at this level of sophistication is all about finding the right abstraction. Or as David Wheeler, inventor of the subroutine many decades ago, is quoted as saying, “Any problem in computer science can be solved with another layer of indirection. But that usually will create another problem.” Salesforce.com will argue that its method of abstraction at the database layer causes fewer problems than other methods that rely on some form of virtualization — and clearly it believes that its ‘multi-tenant query optimizer’ makes the worst of those problems go away. Others will say that’s just green crystals marketing. In the end — irrespective of who’s right and who’s wrong according to pure computer science — customers will vote with their spending and the market will decide who wins the argument.

Kick off your day with ZDNet's daily e-mail newsletter. It's the freshest tech news and opinion, served hot. Get it.

Topics

Since 1998, Phil Wainewright has been a thought leader in cloud computing as a blogger, analyst and consultant.

Disclosure

Phil Wainewright

Phil Wainewright's work as an independent consultant brings him into direct or indirect business relationships with several of the companies that he writes about, or their competitors. Phil is committed to maintaining the independent and opinionated stance that his writings are well known for and does not enter into contracts that would limit his freedom of expression in any way. However it is important in the interests of full disclosure to inform readers of those relationships so they can form their own judgement.

Read the complete list of Phil's relationships.

Biography

Phil Wainewright

Since 1998, Phil Wainewright has been a thought leader in cloud computing as a blogger, analyst and consultant. He founded pioneering website ASPnews.com, and later Loosely Coupled, which covered enterprise adoption of web services and SOA. As CEO of strategic consulting group Procullux Ventures, he has developed an evaluation framework to help ISVs and enterprises select cloud platforms, and advises US and European vendors on messaging, positioning and go-to-market. His newest role as an industry advocate is vice-president of EuroCloud.

15
Comments

Join the conversation!

Just In

RE: Opening the kimono on Salesforce.com's green crystals
JACOBSONR 14th Oct
Good day to confirm this comment I would appreciate T h e b e s t o f Z D N e t d e l i v e r e d your website very nice to everyone Yes, Oracle is the only one with shared-disk architecture, but that is there advantage. It means you can add or remove nodes and the database lives on. In a shared nothing architecture, if you lose a node, you lose the system. I'm sure Oracle appreciates EMC highlighting their advantage.I also desire to signal in your RSS feeds. Thank you as soon as once again and maintain up the great operate Awesome post! Thank you very much || thanks for nice content this is really benefit to me.
0 Votes
+ -
Great Article
BobWarfield 10th Apr 2009
Great article Phil, but it's just another layer of green crystals, LOL.

The real cost to deliver the service is people, not hardware. Hardware savings through patented query optimizers or any other means is great, but saving incremental ops people through automation is still a much bigger opportunity.

More on my blog:

http://smoothspan.wordpress.com/2009/04/10/can-corporate-it-operate-as-efficiently-as-salesforcecom/

Cheers,

BW
0 Votes
+ -
For those of you that are interested, I was hired by Salesforce.com to write a 12 page technical white paper that explains the internals of their multi-tenant architecture. I have a link to the paper in my blog: see http://dbaas.wordpress.com.

Steve Bobrowski
Nicely balanced article, thanks Phil.
Multi-tenancey, and it's other-side-of-the-coin sibling "dedicated instances" or "dedicated xxxx" are not capabilities of a service that customers should necessarily need to care about most of the time. They are architectural considerations that certainly impact a SaaS provider's ability to deliver certain service capabilities to a customer. But to must customers they are (or should be) "under the hood" details.

What SaaS providers (and customers) should be focusing on is their ability to fully meet the customer's business requirements.

Insofar as a certain architectural detail may commonly be correlated with certain risks (i.e. inabilities to meet a business requirement), i think that's where customers start focusing on architectural details.. I.e. "multi-tenant isn't safe because you can't isolate data", etc.

0 Votes
+ -
A genuine multi-tenant application must have the following characteristics: isolation, security, customizability, recovery, availability, scalability, performance, and provisioning. For most application designers, this is the "multi-tenancy iceberg."

The discussion here relates to data space sharing and isolation, and how Salesforce.com solved a performance issue caused by their choice for managing multi-tenant data--shared database/shared schema--rather than one of the other two approaches: separate databases and shared database/separate schemas.

Is this "multi-tenant query optimizer" just "green crystals marketing"? I fully agree with Phil: customers will vote with their spending. But their vote will be driven not only by this particular point, but, above all, by the ability of the provider to completely deal with the multi-tenancy iceberg and make customers believe that they are the software's sole user.

Bernard Manouvrier
Chief Architect
Axway
0 Votes
+ -
Multi-Tenant FUD
york_joel Updated - 20th Apr 2009
Hi Phil,

Great post. But I think your final point is by far the most salient one, i.e., customer's will decide based on benefits and costs savings. Green crystals are only relevant to the extent that you can tie the technology to a real benefit (like getting things cleaner), and with respect to multi-tenancy the specific technical approach is absolutely irrelevant as long as the vendor realizes strong economies of scale and cost reduction.

I suspect that Salesforce is pushing it's particular approach to ride the cloud bandwagon and position against Amazon and other cloud "platforms." With Amazon removing any cost advantage one player might have over another from running on a single hardware/OS infrastructure,Salesforce.com is left with emphasizing the idea of running on a single database/application infrastructure. But, the reality is that both software and hardware are increasingly cheap and a SaaS vendor's true advantage comes from standardization, mass customization and scale across the entire value chain ...not just a specific architectural point. Calling out multi-tenancy as a differentiators seems like misguided techno-babble...show me the money!

By Joel York
at Chaotic Flow
Having built SaaS business from ground up and after having sold many SaaS deals myself in last two years, I can testify that customers don't care about technology (i.e. multi-tenancy or anything else for that matter) much. But they do care about quality of service, cost, security, features, performance, ease of use, time to value, SLAs and the list goes on.. They want the best and how its delivered is somewhat irrelevant from end customer?s perspective.

Having said this, I also know that multi-tenancy does bring a lot to table. Technolgy is an enabler and brings a wow factor.. But SaaS has matured and hence there is no wow factor any more to cash on..It?s back to basic again, IMHO..
I also desire to signal in your RSS feeds. Thank you as soon as once again and maintain up the great operate! nccma cooler
I used to be more than happy to seek out this internet-site.I wanted to thanks in your time for this glorious read!! I positively enjoying each little bit of it and I have you bookmarked to check out new stuff you weblog post. this thread is amazing i like your work and i appreciate you that you have share a useful stuff thanks for sharing the i shop abatwa
I used to be more than happy to seek out this internet-site.I wanted to thanks in your time for this glorious read!! I positively enjoying each little bit of it and I have you bookmarked to check out new stuff you weblog post.Bookmarking now thanks please consider a follow up post. power sa shop
I think the representation of this article is actually superb one. This is my first visit to your site. Thanks a lot and keep sharing the information. Keep updating the information for all of us. Thanks ZDNet Government was launched as the brand's first industry vertical, with a mission to cater to IT professionals in the public secto I agree with your post. However, do you have any sources I can cite for my paper wheel car com bury
Well welcome, hopefully you can become a vital member of the community and really help to push far ahead of google. Which Im sure the development team would love. This will of course earn you alot points too and get you on the leaders board. z d n e t t h a n k Im not sure i come to an agreement with you on every level, howevor it absolutely was a good posting, many thanks for taking the time to put up your ideas.
Thanks nice info z d n e t I really liked your current article write more..let me add you to its favorite The articles you have on zdnet s i t e are always so enjoyable to read. Good work and I bookmarked it.
Fantastic news about the new release.I positively enjoying each little bit of it and I have you b o o k m a r k e d to check out new stuff you weblog post.Im not sure i come to an agreement with you on every level, howevor it absolutely was a good posting, many thanks for taking the time to put up your ideas
Good day to confirm this comment I would appreciate T h e b e s t o f Z D N e t d e l i v e r e d your website very nice to everyone Yes, Oracle is the only one with shared-disk architecture, but that is there advantage. It means you can add or remove nodes and the database lives on. In a shared nothing architecture, if you lose a node, you lose the system. I'm sure Oracle appreciates EMC highlighting their advantage.I also desire to signal in your RSS feeds. Thank you as soon as once again and maintain up the great operate Awesome post! Thank you very much || thanks for nice content this is really benefit to me.

Join the conversation!

Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]
ie8 fix
Click Here
ie8 fix

The best of ZDNet, delivered

ZDNet Newsletters

Get the best of ZDNet delivered straight to your inbox

Facebook Activity

White Papers, Webcasts, & Resources
ie8 fix
ie8 fix