Raising your pH Levels for the Cloud

In a blog post last weekI discussed how the CAP theorem prevented enterprise databases from taking advantage of the elasticity benefits of the Cloud. The problem: because the Cloud is inherently partition tolerant and available, it can’t guarantee immediate data consistency.

The reason the CAP theorem is a problem for enterprise databases, of course, is that they do guarantee immediate consistency. In fact, consistency is the “C” in ACID: atomic, consistent, isolated, and durable. ACID is the gold standard for transactionality in highly available enterprise databases, what you get from two-phase commits. As a result, such databases are inherently partition intolerant.

If you can’t have ACID in the Cloud, then what can you have? You can have BASE: Basic Availability, Soft State, and Eventual Consistency. We’ve moved from ACID to BASE, thus raising our pH, get it? (Groan goes here).

The CAP theorem post explained two of these characteristics. Basic availability means that individual nodes can fail and the overall application will keep working. Eventual consistency means that data may be inconsistent for a short amount of time. But what about soft state?

Soft state means that state information may grow stale, and thus applications must refresh it periodically, or assume it has expired. A great example of soft state are instant messaging (IM) buddy lists. If you look at your IM client, you’ll see smiley faces or some other indicator that a buddy is available. But if their phone crashes or otherwise suddenly drops out of communication, it is unable to send a “no longer available” message to you. As a result, it appears to you that your buddy is available even though they aren’t. Fortunately, your IM client knows this situation can happen, so it will eventually time out buddy status information after a fixed amount of time without an update.

If you’re uncomfortable dropping ACID in favor of BASE (I know, another groaner), then remember that BASE behavior has been around for years, long before we started talking about the Cloud. In fact, any horizontally scalable application can at best comply with BASE­–including any Web-based application in existence.

I’ll be talking about dropping ACID at the NoSQL Conference in San Jose next week and again at CloudConnect in Chicago September 12th. Hope to see you at one of those shows!

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

The Latest

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS