Do you sit on the table?

You have been playing an elusive game with many of us. Sometimes you run out when the salary raise is just expected, sometimes you run away when the boss is assigning an important project and…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Do you really need CosmosDB?

Azure has a much cheaper choice they’re trying to hide from you.

Table storage is the unsung hero of Azure’s storage & databasing offerings. Due to Azure pushing its new one-size-fits-all CosmosDB product, table storage is being pushed as a ‘basic’ and inferior version of it. But the truth is, most people don’t care that much about global redundancy. The majority of people are quite happy with the majorly stable nature of regional data centres, and thus are happy to sacrifice GRS for lower operational costs.

For these people, Azure Table Storage should feel like an obvious choice. The speed statistics are insane; if your server functions in the same region as your storage account, the latency for scanning 100,000,000+ records is single digit. Furthermore it only costs $0.90 for 1,000,000 transactions and 5GB a month.

Table Storage is a fantastic database for applications that only require simple query operations (which, when unconstrained by typical SQL schemas, is a surprisingly large share of them). However in my eyes there is one thing that CosmosDB has over Table Storage; CosmosDB is a document database, and Table Storage is a key value database.

That is to say, CosmosDB supports the full spec for JSON objects including nested models and lists.

Table Storage on the other hand stores entities as a collection of key value pairs — supporting only primitive types, no nested models or lists.

Though at first glance this can seem like a rather major con, with a bit of intelligent thought this becomes an easy-to-solve problem. You simply serialise the models! Just create a wrapper around your get & setting of table entries with JSON decoding & encoding.

So think twice before you hit that deploy button for your servers new CosmosDB database. Chances are, all you really need is table storage. With such blistering performance & insanely cheap prices it’s hard to justify choosing anything else unless you actually need a Graph & SQL API. Again, for the same prices as a 10GB CosmosDB account, you get 400% more transactions (50,000,000) & 450% more storage! (450GB ). FYI, that’s $42 a month. Insanity.

Your boss will love you for it ; )

Add a comment

Related posts:

The entrepreneurial mindset

Building a business from scratch is no easy feat. Sure, an aspiring entrepreneur can have the perfect idea that no one else in the world has thought of. But just an idea isn’t going to pay the bills…

Filtre kahve testlerim

Normalde ben turk kahvesi severim, filtre kahveci degilim. Fakat bu filtre kahve de bazi zamanlar insana haz cok iyi gelebiliyor. Yine fakat bu kahve biraz nazli bence. Kisiden kisiye zevkler ve…

Get INTUNE with Wee2Hard

Feeling great man. To start, I want to know what growing up on the Westside of Atlanta was like for you? Sh*t, it wasn’t sweet. Only the strong survive. Coming up, I lost a couple of the bros on the…