<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by Squarespace Site Server v5.11.81 (http://www.squarespace.com/) on Sun, 05 Feb 2012 08:50:52 GMT--><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rss="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:cc="http://web.resource.org/cc/"><rss:channel rdf:about="http://www.productionscale.com/home/"><rss:title>ProductionScale RSS Feed</rss:title><rss:link>http://www.productionscale.com/home/</rss:link><rss:description>Scalable Systems Architecture</rss:description><dc:language>en-US</dc:language><dc:date>2012-02-05T08:50:52Z</dc:date><admin:generatorAgent rdf:resource="http://www.squarespace.com/">Squarespace Site Server v5.11.81 (http://www.squarespace.com/)</admin:generatorAgent><rss:items><rdf:Seq><rdf:li rdf:resource="http://www.productionscale.com/home/2012/1/31/people-process-technology.html"/><rdf:li rdf:resource="http://www.productionscale.com/home/2011/12/21/how-not-to-sell-nosql-database.html"/><rdf:li rdf:resource="http://www.productionscale.com/home/2011/11/20/building-an-application-upon-riak-part-1.html"/><rdf:li rdf:resource="http://www.productionscale.com/home/2011/10/6/the-saas-aggregation-benefit-mirage.html"/><rdf:li rdf:resource="http://www.productionscale.com/home/2011/9/9/brick-and-mortal-retail-doomed-doomed-i-say.html"/><rdf:li rdf:resource="http://www.productionscale.com/home/2011/9/4/stop-staring-at-my-polyglot.html"/><rdf:li rdf:resource="http://www.productionscale.com/home/2011/8/7/can-new-clouds-teach-old-apps-new-tricks.html"/><rdf:li rdf:resource="http://www.productionscale.com/home/2011/8/7/the-nist-definition-of-cloud-computingdraft.html"/><rdf:li rdf:resource="http://www.productionscale.com/home/2011/8/6/cloud-operating-systems-do-they-exist-yet.html"/><rdf:li rdf:resource="http://www.productionscale.com/home/2011/8/2/welcome-vgbuilder-to-the-world.html"/><rdf:li rdf:resource="http://www.productionscale.com/home/2011/7/30/productionscale-communication-problem-discovery.html"/><rdf:li rdf:resource="http://www.productionscale.com/home/2011/7/9/scale-planning-and-the-akf-scale-cube.html"/><rdf:li rdf:resource="http://www.productionscale.com/home/2011/4/22/on-clouds-and-spofs-or-the-great-aws-outage-of-april-2011.html"/><rdf:li rdf:resource="http://www.productionscale.com/home/2011/4/17/cloud-native-applications.html"/><rdf:li rdf:resource="http://www.productionscale.com/home/2011/2/18/the-five-pillars-of-monitoring-pillar-one.html"/></rdf:Seq></rss:items></rss:channel><rss:item rdf:about="http://www.productionscale.com/home/2012/1/31/people-process-technology.html"><rss:title>People, Process &amp; Technology</rss:title><rss:link>http://www.productionscale.com/home/2012/1/31/people-process-technology.html</rss:link><dc:creator>Kent Langley</dc:creator><dc:date>2012-02-01T03:15:02Z</dc:date><dc:subject></dc:subject><content:encoded><![CDATA[<div><strong id="internal-source-marker_0.6417790111154318"><span>I am often asked how I do things and why. &nbsp;In most cases it really does come down to thinking about three things and making sure they are properly tended to at all times. &nbsp;Those three things are people, process and technology in that order.</span><br /><br /><span>With the right people you can do anything you can set your mind to doing within the realms of possibility. &nbsp;With the right process you will be far more effective than the next team and your operations will be able to scale. &nbsp;With the right technology you will be enough out on the edge to get ahead but rock solid and scalable so that you will not crumble under brittleness or technical debt (also related to process mind you).</span><br /><br /><span>I haven&rsquo;t been blogging much lately because I&rsquo;m really quite wrapped up in my work for my clients as well as just trying to spend more time with my family. &nbsp;I am trying to find ways to get back into the blogging grove more than once a month though. &nbsp;I&rsquo;ve been building Social CRM and Business Analytics solutions for some clients on two interesting technology stacks. One stack is a Riak, Redis, RabbitMQ, Jetty, Scala/Java, Akka, Nginx core stack on AWS. &nbsp;The other is MongoDB, RabbitMQ, PHP/Symfony2, Node.js, Nginx core stack on AWS. &nbsp;There are other techs involved of course. &nbsp;They both use Chef extensively for example. &nbsp;One uses CI with Jenkins as part of the process, both use automated deployment tools in Ruby (capistrano primarily). &nbsp;Both of these are slated for public release in short order so I&rsquo;ll be able to say more then. &nbsp;It&rsquo;s been truly interesting working on them in parallel and I&rsquo;m very excited to see them go live over the next weeks.</span><br /><br /><span>In both cases, it&rsquo;s the team, the process, and the technology that have made it possible to process large amounts of data, deploy tremendous amounts of code fast, and create products that have excellent potential to make a difference to their users and scale well over time.</span><br /><br /><span>So, if you ask me to build you something you&rsquo;ll be hearing me ask if you are willing to make the commitment to the people, processes, and technologies that will make it a reality fast. &nbsp;When it all comes together it is great fun!</span><br /><br /><span>I hope to get some time to write more about the actual details of this trinity in the near future. &nbsp;Be patient, I have to pay the bills you know!</span></strong></div>]]></content:encoded></rss:item><rss:item rdf:about="http://www.productionscale.com/home/2011/12/21/how-not-to-sell-nosql-database.html"><rss:title>How NOT to Sell NoSQL Database</rss:title><rss:link>http://www.productionscale.com/home/2011/12/21/how-not-to-sell-nosql-database.html</rss:link><dc:creator>Kent Langley</dc:creator><dc:date>2011-12-21T17:01:26Z</dc:date><dc:subject></dc:subject><content:encoded><![CDATA[<p class="p1">This is the description of my first experience with a newer NoSQL database that we'll just call NoSQL Database #9999 I was told about and asked what I thought about it overall. &nbsp;I hadn't heard of it before but I wanted to see what the deal was since I work with several others. &nbsp;I'm always up to see if something is actually the new hotness.</p>
<p class="p1">I found marketecture diagrams everywhere. &nbsp;The development cycle is closed and opaque development for server and client. &nbsp;There is a 30 day "free trial" signup wall to maybe get to the download screen. &nbsp;I'm not sure since I didn't fill it out and I really don't feel like spending my time navigating a sales channel for filling it out. The License agreement was really fun. &nbsp;The short version is that it is a non-exclusive licensing model and no ability to use/test in production to see if it really works. &nbsp;The choice parts basically say that I can't use the software in production and that says that if&nbsp;<span>it doesn't work that's not our problem and we never said it would. &nbsp;There is actually a warranty clause that says they don't warranty anything at all it's is just "as-is" without warranty! &nbsp;I am not feeling the love at this point. &nbsp;Then, I wanted to see the pricing. &nbsp;I couldn't of course. &nbsp;The m</span>inimum contract term beyond 1st 30 days is 12mos with, you guessed it, unspecified pricing information unless I contact sales directly.</p>
<p class="p1">So, now I know why I've never heard of this software and nothing meaningful has been written about that is not PR or Marketing driven. &nbsp;There is really no way that I would even consider adopting this software at this point. &nbsp;It's most likely that it is not real. &nbsp;</p>
<p class="p1">So, NoSQL database #9999 there are many other equally usable solutions that are far more transparent in the way they do business and foster community around their products. &nbsp;This isn't about paying money. &nbsp;This is about trust. &nbsp;So, sorry NoSQL #9999, but I'll not be entering your sales cycle in this fashion or evaluating your product at this time. &nbsp;Moving along now... &nbsp;</p>
<p class="p1">Happy Wednesday Everyone!</p>]]></content:encoded></rss:item><rss:item rdf:about="http://www.productionscale.com/home/2011/11/20/building-an-application-upon-riak-part-1.html"><rss:title>Building an Application upon Riak - Part 1</rss:title><rss:link>http://www.productionscale.com/home/2011/11/20/building-an-application-upon-riak-part-1.html</rss:link><dc:creator>Kent Langley</dc:creator><dc:date>2011-11-21T01:13:16Z</dc:date><dc:subject>Interesting Things business cloud cloud computing cloud native application distributed distributed nosql riak</dc:subject><content:encoded><![CDATA[<div><span id="internal-source-marker_0.3751625563018024">For the past few months some of my colleagues and I have been developing an application with Riak as the primary persistent data store. &nbsp;This has been a very interesting journey from beginning to now. &nbsp;I wanted to take a few minute and write a quick "off the top of my head" post about some of the things we learned along the way. &nbsp;In writing this I realized that our&nbsp;</span><span>journey breaks down into a handful of categories:</span><br /> 
<ul>
<li><span>Making the Decision</span></li>
<li><span>Learning</span></li>
<li><span>Operating</span></li>
<li><span>Scaling</span></li>
<li><span>Mistakes</span></li>
</ul>
</div>
<div><span>We made the decision to use Riak around January of 2011 for our application. &nbsp;We looked at HBase, Cassandra, Riak, MySQL, Postgres, MongoDB, Oracle, and a few others. &nbsp;There were a lot of things we didn&rsquo;t know about our application back then. &nbsp;This is a very important point.</span><br /><br /><span>In any event, I&rsquo;ll not bore you with all the details but we chose Riak. &nbsp;We originally chose it because we felt it would be easy to manage as our data volume grew as well as because published benchmarks looked very promising, we wanted something based on the dynamo model, adjustable CAP properties per &ldquo;bucket&rdquo;, speed, our &ldquo;schema&rdquo;, data volume capacity plan, data model, and a few other things.</span></div>
<div><span><br /></span></div>
<div></div>
<div></div>
<div><strong>Some of the Stack Details</strong></div>
<div><br /><span>The primary programming language for our project is Scala. &nbsp;There is no reasonable scala client at the moment that is kept up to date for Riak so we use the Java client.</span><br /><br /><span>We are running our application (a rather interesting business analytics platform if I do say so myself) on AWS using Ubuntu images.</span><br /><br /><span>We do all of our configuration management, cloud instance management, monitoring harnesses, maintenance, EC2 instance management, and much more with Opscode Chef. &nbsp;But, that&rsquo;s a whole other story.</span><br /><br /><span>We are currently running Riak 1.0.1 and will get to 1.0.2 soon. &nbsp;We started on 0.12.0 I think it was... maybe 0.13.0. &nbsp;I&rsquo;ll have to go back and check.</span><br /><br /><strong><span>On to some of the learning (and mistakes)</span><br /></strong><br /><span><strong>Up and Running</strong></span><span> - Getting started with Riak is very easy, very affordable, and covered well in the documentation. &nbsp;Honestly, it couldn't be much easier. &nbsp;But then... things get a bit more interesting.</span><br /><br /><span><strong>REST ye not</strong></span><span><strong> </strong>- Riak allows you to use a REST API over HTTP to interact with the data store. &nbsp;This is really nice for getting started. &nbsp;It&rsquo;s really slow for actually building your applications. &nbsp;This was one of the first easy buttons we de-commissioned. &nbsp;We had to move to the protocol buffers interface for everything. &nbsp;In hind sight this makes sense but we really did originally expect to get more out of the REST interface. &nbsp;It was completely not usable in our case.</span><br /><br /><span><strong>Balancing the Load</strong> </span><span>- Riak doesn&rsquo;t do much for you when it comes to load balancing your various types of requests. &nbsp;We settled, courtesy of our crafty operations team on an on application node haproxy to shuttle requests to and from the various nodes. &nbsp;Let me warn you. &nbsp;This has worked for us but there be demons here! &nbsp;The configuration details of running HA proxy to Riak are about as clear as mud and there isn&rsquo;t much help to be found at the moment. &nbsp;This was one of those moments over time that I really wished for the client to be a bit smarter.</span><br /><br /><span>Now, when nodes start dying, getting to busy, or whatever might come up you&rsquo;ll be relying on your proxy (haproxy or otherwise) to handle this for you. &nbsp;We don&rsquo;t consider ourselves done at all on this point but we&rsquo;ll get there.</span><br /><br /><span><strong>Link Walking (err.. Ambling)</strong></span><span> - We modeled much of our early data relationships using link walking. &nbsp;The learning? &nbsp;S-L-O-W. &nbsp;Had to remove it completely. &nbsp;Play with it but don&rsquo;t plan on using this in production out of the gate. &nbsp;I think there is much potential here and we&rsquo;ll be returning to this feature for some less latency sensitive work I perhaps. &nbsp;Time will tell...</span><br /><br /><span><strong>Watchoo Lookin&rsquo; for?! Riak Search&nbsp;</strong></span><span>- When we stared search was a separate project. &nbsp;But, we knew we would have a use for search in our application. &nbsp;So, we did everything we could to plan ahead for that fact. &nbsp;But, by the time we were really getting all hot and heavy (post 1.0.0 deployment) we were finding our a few very interesting things about search. &nbsp;It's VERY slow when you have a large result set. &nbsp;It's just the nature of the way it's implemented. &nbsp;If you think your search result set will return &gt; 2000 items then think long and hard about using Riak's search functions for your primary search. This is, again, one of those things we&rsquo;ve pulled back on quite a bit. But, the most important bits of learning were to:</span></div>
<div>
<ul>
<li><span>Keep Results Sets small</span></li>
<li><span>Use Inline fields (this helped us a lot)</span></li>
<li><span>Realize that searches run on ONE physical node and one vnode and WILL block (we didn&rsquo;t really feel this until data really started growing from 100&rsquo;s of 1000&rsquo;s of &ldquo;facets&rdquo; to millions.</span></li>
</ul>
<div><span>At this point, we are doing everything that we can to minimize the use of search in our application and where we do use it we&rsquo;re limiting the result sets in various ways and using inline fields pretty successfully. &nbsp;In any event, just remember Riak Search (stand alone or bundled post 1.0.0 is NOT a high performance search engine). &nbsp;Again, this seems obvious now but we did design around a bit and had higher hopes.</span></div>
<div><span>&nbsp;</span><br /><span><strong>OMG It&rsquo;s broken what&rsquo;s wrong</strong> </span><span>- The error codes in the early version of Riak we used were useless to us and because we did not start w/ an enterprise support contract it was difficult sometimes to get help. &nbsp;Thankfully, this has improved a lot over time.</span><br /><span> </span><br /><span><strong>Mailing List / IRC dosey-do </strong></span><span><strong>-</strong> Dust off your IRC client and sub to the mailing list. &nbsp;They are great and the Basho Team takes responding there very seriously. &nbsp;We got help countless times this way. &nbsp;Thanks team Basho!</span><br /><br /><span><strong>I/O</strong> </span><span>- It&rsquo;s not easy to run Riak on AWS. &nbsp;It loves I/O. &nbsp;To be fair, they say this loud and clear so that&rsquo;s my problem. &nbsp;&nbsp;We originally tried fancy EBS setup to speed it up and make it persistent. &nbsp;In the end we ditched all that and went ephemeral. &nbsp;It was dramatically more stable for us overall.</span><br /><br /><span><strong>Search Indexes (aka Pain) </strong></span><span>- Want to re-index? &nbsp;Dump your data and reload. &nbsp;Ouch. &nbsp;Enough said. &nbsp;We are working around this in a variety of ways but I have to believe this will change.</span><br /><br /><span><strong>Basho Enterprise Support -</strong></span><span><strong> Awesome.</strong> &nbsp;These guys know their shit. &nbsp;Once you become an enterprise customer they work very hard to help you. &nbsp;For a real world production application you want Enterprise support via the licensing model. &nbsp;Thanks again Basho!</span><br /><br /><span><strong>The learning curve </strong></span><span>- It is a significant change for people to think in an eventually consistent distributed key value or distributed async application terms. &nbsp;Having Riak under the hood means you NEED to think this way. &nbsp;It requires a shifted mindset that, frankly, not a lot of people have today. &nbsp;Build this fact into your dev cycle time or prepare to spend a lot of late nights.</span><br /><br /><span><strong>Epiphany</strong></span><span><strong> </strong>- One of the developers at work recently had an epiphany (or maybe we all had a group epiphany). &nbsp;Riak is a distributed key value data store. &nbsp;It is a VERY good one. &nbsp;It&rsquo;s not a search engine. &nbsp;It&rsquo;s not a relational database. &nbsp;It&rsquo;s not a graph database. &nbsp;Etc.. etc.. &nbsp;Let me repeat. &nbsp;&nbsp;Riak is an EXCELLENT distributed key value data store. &nbsp;Use it as such. &nbsp;Since we all had this revelation and adjusted things to take advantage of the fact life has been increasingly nice day by day. &nbsp;Performance is up. &nbsp;Throughput is up. &nbsp;Things are scaling as expected.</span><br /><br /><strong>In Summary - </strong>Reading back through this I felt it came off a bit negative. &nbsp;That's not really fair though. &nbsp;We're talking about nearly a year of learning. &nbsp;<span>I love Riak overall and I would definitely use it again. &nbsp;It's not easy and you really need to make sure the context is correct (as with any database). &nbsp;I think team Basho is just getting started but are off to a very strong start indeed. &nbsp;I still believe Riak will really show it's stripes as we started to scale the application. &nbsp;We have an excellent foundation upon which to build and our application is currently humming along and growing nicely.</span><br /><br /><span>I could not have even come close to getting where we are right now with the app we are working on without a good team as well. &nbsp;You need a good devops-like team to build complex distributed web applications.</span><br /><br /><span>Lastly and this is the real summary, Riak is a very good key value data store. &nbsp;The rest it can do is neat but for now, I'd recommend using it as a KV datastore.</span></div>
<div><span><br /></span></div>
</div>
<p>I'm pretty open to the fact that even with several months of intense development and near ready product under our belt we also are only scratching the surface.</p>
<p>What I'll talk about next is the stack, the choices we've made for developing a distributed scala based app, and how those choices have played out.</p>]]></content:encoded></rss:item><rss:item rdf:about="http://www.productionscale.com/home/2011/10/6/the-saas-aggregation-benefit-mirage.html"><rss:title>The SaaS Aggregation Benefit Mirage</rss:title><rss:link>http://www.productionscale.com/home/2011/10/6/the-saas-aggregation-benefit-mirage.html</rss:link><dc:creator>Kent Langley</dc:creator><dc:date>2011-10-07T00:47:22Z</dc:date><dc:subject>business cloud computing saas</dc:subject><content:encoded><![CDATA[<p><span>In this service oriented on-demand world I&rsquo;ve been running into something again and again lately that I&rsquo;ve found interesting and a bit annoying.</span><br /><br /><span>To start, imagine I&rsquo;m going to build an application that uses two 3rd party services on-demand. &nbsp;We&rsquo;ll just call them service A and service B and say each have two features. &nbsp;For this example it does not really matter what the services do.</span><br /><br /><span>Service A</span><br /><span>&nbsp; Feature A-1</span><br /><span>&nbsp; Feature A-2</span><br /><span>Service B</span><br /><span>&nbsp; &nbsp;Feature B-1</span><br /><span>&nbsp; &nbsp;Feature B-2</span><br /><br /><span>So, I create my application and it first uses service A do something and it uses Feature A-1 and A-2. &nbsp;Then, with the output of that it uses service B to do something else using feature B-2.</span><br /><br /><span>Now, a few months down the line when things are going great I get a call from my account manager at Service A telling me I can now get all the features of service B directly from them included. &nbsp;So, what they are telling me is that my service structure now looks like this:</span><br /><br /><span>Service A</span><br /><span>&nbsp; Feature A-1</span><br /><span>&nbsp; Feature A-2</span><br /><span>&nbsp; Feature B-1</span><br /><span>&nbsp; Feature B-2</span><br /><span>Service B</span><br /><span>&nbsp; &nbsp;Feature B-1</span><br /><span>&nbsp; &nbsp;Feature B-2</span><br /><br /><span>On the surface this looks really good. &nbsp;It&rsquo;s the same thing with less hassle right? &nbsp;Maybe not.</span><br /><br /><span>This is where my annoyance surfaces. &nbsp;Dig in and dig in well. &nbsp;What I find again and again is that it&rsquo;s simply not true because of what I&rsquo;ll just call the filter effect. &nbsp;What you really are getting with this new and improved service A is more like.</span><br /><br /><span>Service A</span><br /><span>&nbsp; Feature A-1</span><br /><span>&nbsp; &nbsp;Feature A-2</span><br /><span>&nbsp; &nbsp;Feature B-1</span><br /><br /><span>Notice that Feature B-2 is missing and that probably no body mentioned it. &nbsp;Or, it&rsquo;s more like:</span><br /><br /><span>Service A</span><br /><span>&nbsp; &nbsp;Feature A-1</span><br /><span>&nbsp; &nbsp;Feature A-2</span><br /><span>&nbsp; &nbsp;Feature C-1</span><br /><span>&nbsp; &nbsp;Feature C-2</span><br /><span>&nbsp; &nbsp;Feature C-3</span><br /><span>&nbsp; &nbsp;Feature C-n-OMG</span><br /><span>Service B</span><br /><span>&nbsp; &nbsp;Feature B-1</span><br /><span>&nbsp; &nbsp;Feature B-2</span><br /><br /><span>And you don&rsquo;t care because C isn&rsquo;t B and all you need as A-1, A-2, and B-2. &nbsp;While they say it&rsquo;s equal is not and the app use feature B-2 if you&rsquo;ll recall. &nbsp;How much time did you just spend?</span><br /><br /><span>So, by the time you get through all this and figure out that the new improved Service A + B is pretty useless and all you really want is what you already have you will have wasted a lot of time. &nbsp;There are less features, more complexity, less control, and likely much worse service and support for the aggregated services since you have no direct relationship to the end point provider.</span><br /><br /><span>So, rambling aside the point is that these service provider mashup aggregaters are not what they often seem on the surface and I&rsquo;m frequently finding that the best deal is going right to the source and that any &ldquo;savings&rdquo; on the surface likely gets eaten up later in a variety of ways that are difficult to predict. &nbsp;In most cases, it&rsquo;s best to go to the source to get what you want.</span></p>]]></content:encoded></rss:item><rss:item rdf:about="http://www.productionscale.com/home/2011/9/9/brick-and-mortal-retail-doomed-doomed-i-say.html"><rss:title>Brick and Mortal Retail Doomed, Doomed I Say</rss:title><rss:link>http://www.productionscale.com/home/2011/9/9/brick-and-mortal-retail-doomed-doomed-i-say.html</rss:link><dc:creator>Kent Langley</dc:creator><dc:date>2011-09-10T05:34:24Z</dc:date><dc:subject>future</dc:subject><content:encoded><![CDATA[<p><span id="internal-source-marker_0.0595367148052901">Not my usual blog topic, but hey, it&rsquo;s Friday and I had a brutal week. &nbsp;But, I just had to relay a retail experience I had a week or so ago. &nbsp;I went into a local hardware store. &nbsp;It&rsquo;s a pretty good one but I&rsquo;ve always thought they were a bit pricey. &nbsp;But, I needed a new vanity mirror and I needed it now. &nbsp;On the display they had one I immediately liked and was willing to pay the premium. &nbsp;Once I found a salesperson I actually started w/ a question about some sconce lights I liked all so. &nbsp;He looks at me. &nbsp;Looks me up and down and says, &ldquo;your not going to like it.&rdquo; &nbsp;I said, &ldquo;hit me.&rdquo; &nbsp;He did, I didn&rsquo;t. &nbsp;Whatever. &nbsp;Bad start for sure. &nbsp;In any event, I say, I&rsquo;d like to get this mirror you have over here on the wall. &nbsp;I took him to it, I said I&rsquo;d like one of these please. &nbsp;Here are the two things he said to me:</span><br /><br /><span>1. We don&rsquo;t have those in stock.</span><br /><span>2. But, I bought one and it&rsquo;s still in the box at home. &nbsp;Want to make me an offer I might sell it.</span><br /><br /><span>Ohhhhkay... I said, alright, I think I&rsquo;ll stick to the store here. &nbsp;How long to get one.... Turns out it&rsquo;s 7-10 business days. &nbsp;Keep in mind this is a premium price. &nbsp;Apparently there are six with their nearby suppliers. &nbsp;At this point I had already snapped a picture with my phone and sent it to my wife for approval. &nbsp;She says... LOVE IT... in response. &nbsp;So, I take the product #. &nbsp;I tap it into a google search. &nbsp;I find it on Amazon.com from an affiliate for 30% less, 5-7 days delivered, and a bit of tax. &nbsp;Net savings over store of around 20%. &nbsp;I decide to just show they guy and I said the following things:</span><br /><br /><span>1. I&rsquo;d prefer to buy local. Can you sell it to me for this price and get it here in about the same time frame.</span><br /><span>2. I can just order it from here an it&rsquo;ll come to my doorstep by pushing this buy button now.</span><br /><br /><span>The response floored me. &nbsp;No. &nbsp;He mentioned the one he had at home again. &nbsp;I said okay. &nbsp;I hit the buy button and went home.</span><br /><br /><span>Here&rsquo;s the crazy part. &nbsp;This is an employee owned store!</span><br /><br /><span>I&rsquo;ve tested the I&rsquo;d like to buy this at several other stores recently. &nbsp;Most of them simply have NO stock. &nbsp;They are just display stores. You cannot buy what they have and go home w/ it.</span><br /><br /><span>Astounding. &nbsp;Physical retail has absolutely no chance with me using this kind of approach. &nbsp;I&rsquo;ll just order from home. &nbsp;Shame, I wanted to buy local. &nbsp;Either way mirror will be here in a couple of days along w/ the sconce lights, towel rack, and TP holder to match. &nbsp;*sigh*</span></p>]]></content:encoded></rss:item><rss:item rdf:about="http://www.productionscale.com/home/2011/9/4/stop-staring-at-my-polyglot.html"><rss:title>Stop Staring at my Polyglot!</rss:title><rss:link>http://www.productionscale.com/home/2011/9/4/stop-staring-at-my-polyglot.html</rss:link><dc:creator>Kent Langley</dc:creator><dc:date>2011-09-04T20:40:56Z</dc:date><dc:subject>cloud computing cloud computing cloud native application database distributed</dc:subject><content:encoded><![CDATA[<p class="p1">I received an interesting comment/question via my blog recently. &nbsp;It went a bit like this...&nbsp;</p>
<p class="p1">I&rsquo;m developing a distributed cloud application but my developers are pushing back on me for having a polyglot database strategy. &nbsp;What should I do?</p>
<p class="p1">I won&rsquo;t get into exactly what it is they are doing since that would take several more pages. &nbsp;This is something of a stream of thought post so apologies if it is a little rough around the edges. &nbsp;The easiest way to answer is in the context of an application I&rsquo;ve been working on for a while that has some similarities to what this person wants to build. &nbsp;Everything I&rsquo;m describing is part of an app I&rsquo;ve been building with a client since earlier this year.</p>
<p class="p1">Typically you'll need a few layers of "data storage&rdquo; for any distributed batch or real time application (cloud native application) which is what I understand that you are trying to build.</p>
<p class="p1">I consider anything that holds data that is for presentation, computation, or transformation part of the data storage architecture and I like to break it down by time in storage from least amount of time to most.&nbsp;</p>
<p class="p1"><strong>Short or Very Short Term:</strong> Single node caches (like memcached) or volatile computer node memory<br /><strong>Mid Term</strong>: Queue's and IMDG's<br /><strong>Long Term &nbsp;Durable Storage: </strong>&nbsp;Dynamo and BigTable derivatives abound&nbsp;</p>
<p class="p1">There are numerous database products that live in or even between those tiers these days; more than ever before. &nbsp;By no means is what follows even close to an exhaustive list. &nbsp;A quick list of the ones I have worked with in the last few months personally looks like:&nbsp;</p>
<p class="p1"><strong>Short Term:</strong> Memcached, Redis, RabbitMQ, ZeroMQ, DRAM, APC, MongoDB<br /><strong>Mid-Term:</strong> Redis, GridGain, RabbitMQ, ZeroMQ, MongoDB<br /><strong>Long-Term:</strong> Riak, MongoDB, S3, Ceph, Swift, CloudFiles, EBS, HBase</p>
<p class="p1">Short-Term storage is ALL in memory, not persisted to disk, and not intended to be used for long periods of time. &nbsp;Your application also has to be able to deal with the fact that this type of storage is essentially ephemeral. &nbsp;If the node gets a KILL signal from some source or another your app needs to know how to deal with this gracefully. &nbsp;In other words, storage here is not durable at all.</p>
<p class="p1">Mid-Term storage is used for longer running processes. &nbsp;It benefits greatly from being distributed and having a higher degree of durability. &nbsp;This is generally still where most of the work in done in main system memory (no disk I/O) but also where you might do complex calculations or data transformations on your way to your goal. &nbsp;You do it here because it&rsquo;s fast. &nbsp;You do things here because they can be shared amongst lots of workers (like queue subscribers).&nbsp;</p>
<p class="p1">Long-Term storage is used for exactly that, long term durable storage of important data that provides sufficient and reasonable interfaces from which to retrieve that data again when needed. &nbsp;Preferably it&rsquo;s possible to do things like map-reduce jobs so that you can iterate and retrieve what is necessary which you may then operate on at one of the higher levels up this stack.</p>
<p class="p1">You&rsquo;ll see that I&rsquo;ve put some of them in all or multiple categories which might seem odd until you understand how they work and match the technology to what ever you are trying to achieve from a business perspective.</p>
<p class="p1">I have a tendency to avoid things that require overly complex operational management issues for starting up projects because I like to try to get my TCO (Total Cost of Ownership) over time (3-5 years) as low as possible while achieving the project goals and SLA&rsquo;s. &nbsp;There are a couple of exceptions on the list above that do have more operational overhead (MongoDB and HBase) but they are good enough in the right context that you might want to learn and use them anyway.</p>
<p class="p1">Now, back to the question at hand. &nbsp;Should I use one type of DB or many for the needs at hand. &nbsp;In this case, I&rsquo;ve told them that they should use as few as possible, possibly only one. &nbsp;The reason for this was that in their case they will value speed, consistency, and lower cost of operations at this early stage of their project. &nbsp;They are developing an interesting distributed system for cool reasons. &nbsp;I recommended a choice to them that I think will help them get to their goals fast and cost effectively while allowing them down the line to break off pieces of the application later as and if needed.</p>
<p class="p1">Parting words are that it will, over time, be nearly unavoidable that this (and most) applications of a distributed nature end up being database polyglotoumous. &nbsp;However, I do think it adds a lot of complexity and overhead and in the early stages of a project it's not usually necessary unless what you are doing is of great complexity in which case you might want to break that down anyway to something more manageable.</p>]]></content:encoded></rss:item><rss:item rdf:about="http://www.productionscale.com/home/2011/8/7/can-new-clouds-teach-old-apps-new-tricks.html"><rss:title>Can New Clouds Teach Old Apps New Tricks?</rss:title><rss:link>http://www.productionscale.com/home/2011/8/7/can-new-clouds-teach-old-apps-new-tricks.html</rss:link><dc:creator>Kent Langley</dc:creator><dc:date>2011-08-08T00:27:06Z</dc:date><dc:subject>cloud cloud native application</dc:subject><content:encoded><![CDATA[<p><span style="color: black;">Cramming the same old code, CMS, application, etc into the cloud (any cloud) doesn't make the most of the capabilities of cloud computing in all it's various forms. &nbsp;I expect to be discussion this subject more in the near future. &nbsp;But, start by giving two examples and labeling them cloud native application design pattern and anti-pattern.</span>&nbsp;</p>
<p><strong><span style="color: black;">A Cloud Native Application Design Anti-Pattern</span></strong></p>
<p><span style="color: black;">I'll pick on Drupal a bit (but with love). &nbsp;If one installs Drupal at a cloud IaaS or PaaS provider then that does not make Drupal a <a href="http://www.productionscale.com/home/2011/4/17/cloud-native-applications.html">cloud native application</a>. &nbsp;To me, this seems obvious but I am not so sure it is obvious in general. &nbsp;The Drupal CMS is not a Cloud Native Application. &nbsp;Putting Drupal, Wordpress, CMS XYZ of your choice on cloud computing IaaS or even PaaS provider of your choice essentially means you end up with an virtualized n-tier application running in the cloud with many of the same limitations of a hardware based deployment and only some of the benefits of being a cloud native application running on a cloud computer. &nbsp;Yes, of course, and <a href="http://www.productionscale.com/home/2008/9/16/drupal-billions-of-page-views-per-month.html">admirably (see billions of pageviews per month)</a> drupal can run IN the cloud. &nbsp;But, that does not make it OF the cloud. &nbsp;But, I will say that based on personal experience even considering all this situation it's still likely the right choice in a great many cases to run it in the cloud.</span></p>
<p><span style="color: black;"> <strong>A Cloud Native Application Design Pattern</strong></span></p>
<p><span style="color: black;">If you want to see what CMS can look like as a cloud native application then check out the&nbsp;<a title="Lily CMS project" href="http://docs.outerthought.org/lily-docs-current/408-lily.html"><span style="color: blue;">Lily CMS project</span></a>. I personally might not choose this specific architecture and systems design to achieve the same goals. &nbsp;However, there is more than one way to build a CNA. &nbsp;They have done some great work there and are clearly on the right track! &nbsp;It's excellent work and I have respect for what the&nbsp;<a title="OuterThought" href="http://outerthought.org/"><span style="color: blue;">Outerthought</span></a>&nbsp;team has created with their platform. &nbsp;It's actually potentially quite a lot more than just a CMS as well. &nbsp;In any event, I think that with the exception of the default HBase high availability limitations (which will be addressed soon by HBase project I suspect) this can be considered a cloud native application. &nbsp;Coupled with the appropriate monitoring, automation, and even cloud environment awareness it would be a very powerful cloud native application.</span></p>
<p>All of this summarizes to me as one very simple fact. &nbsp;<span style="color: #000000;">There is a tremendous opportunity ahead! &nbsp;Exciting times.</span></p>]]></content:encoded></rss:item><rss:item rdf:about="http://www.productionscale.com/home/2011/8/7/the-nist-definition-of-cloud-computingdraft.html"><rss:title>The NIST Definition of Cloud Computing(Draft)</rss:title><rss:link>http://www.productionscale.com/home/2011/8/7/the-nist-definition-of-cloud-computingdraft.html</rss:link><dc:creator>Kent Langley</dc:creator><dc:date>2011-08-07T16:07:11Z</dc:date><dc:subject>cloud cloud computing</dc:subject><content:encoded><![CDATA[<p><span class="full-image-float-left ssNonEditable"><span><a href="http://www.nist.gov/itl/cloud/upload/cloud-def-v15.pdf"><img src="http://www.productionscale.com/storage/post-images/nist1.jpg?__SQUARESPACE_CACHEVERSION=1312733858072" alt="" /></a></span><span class="thumbnail-caption" style="width: 100px;">click for original doc</span></span></p>
<p>I thought I'd start the week with a reminder of an oldie but goodie. &nbsp;This document came out after the intial barrage of "what is cloud computing" and "cloud computing defined" posts from a few years ago. &nbsp;But, I've always felt that NIST did a great job with it overall.</p>
<p>In my opinion it's still one of the best and most complete current definitions of Cloud Computing of any other out there. &nbsp;So, in the off chance that you have not seen this defintion of cloud computing it is definately worth the time to read through.</p>
<p>One of my earliest definition articles from April 2008, <a href="http://www.productionscale.com/home/2008/4/24/cloud-computing-get-your-head-in-the-clouds.html">Get Your Head in the Clouds</a>, is still my most trafficked article on this site most weeks.</p>
<p>"Cloud computing is a model for enabling ubiquitous, convenient, on-demand network access to a shared&nbsp;pool of configurable computing resources (e.g., networks, servers, storage, applications, and services) that&nbsp;can be rapidly provisioned and released with minimal management effort or service provider interaction.&nbsp;This cloud &nbsp;model &nbsp;promotes availability and is composed of five essential characteristics, three service&nbsp;models, and four deployment models..." &nbsp;--NIST Cloud Definition</p>
<p>In particular I like the way they break down the characteristics, service, and deployment models.&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded></rss:item><rss:item rdf:about="http://www.productionscale.com/home/2011/8/6/cloud-operating-systems-do-they-exist-yet.html"><rss:title>Cloud Operating Systems: Do They Exist Yet?</rss:title><rss:link>http://www.productionscale.com/home/2011/8/6/cloud-operating-systems-do-they-exist-yet.html</rss:link><dc:creator>Kent Langley</dc:creator><dc:date>2011-08-06T21:10:50Z</dc:date><dc:subject>cloud computing cloud computing</dc:subject><content:encoded><![CDATA[<p><span id="internal-source-marker_0.1262838994152844">I was asked an interesting question by friend of mine a few days ago. &nbsp;He says simply, &ldquo;Are there any Cloud Operating Systems?&rdquo;</span><br /><br /><span>I then proceeded to argue that no, there really were not any because all of the necessary pre-requisites for being both cloud native while providing the basic services an operating system should provide were not available in the current crop of software claiming to be a cloud operating system upon which I could build cloud native applications.</span><br /><br /><span>Let&rsquo;s think about what an Operating System gives you. &nbsp;An OS is essentially an abstraction layer over hardware that provides the necessary interfaces(drivers) to get the work done that is needed by computer programs. &nbsp;At its most basic an operating system provides storage, networking, and compute and the management of those things in a fairly transparent way. &nbsp;&nbsp;It also provides a tremendous amount of flexibility to it&rsquo;s user.</span><br /><br /><span>Wikipedia defines an Operating System as, &ldquo;</span><a href="http://en.wikipedia.org/wiki/Software"><span>software</span></a><span>, consisting of </span><a href="http://en.wikipedia.org/wiki/Computer_program"><span>programs</span></a><span> and </span><a href="http://en.wikipedia.org/wiki/Data"><span>data</span></a><span>, that runs on </span><a href="http://en.wikipedia.org/wiki/Computer"><span>computers</span></a><span>, manages </span><a href="http://en.wikipedia.org/wiki/Computer_hardware"><span>computer hardware</span></a><span> resources, and provides common services for execution of various </span><a href="http://en.wikipedia.org/wiki/Application_software"><span>application software</span></a><span>. The operating system is the most important type of </span><a href="http://en.wikipedia.org/wiki/System_software"><span>system software</span></a><span> in a computer system. Without an operating system, a user cannot run an application program on their computer, unless the application program is self booting.&rdquo; &nbsp;-wikipedia</span><br /><br /><span>If I was to write the definition for wikipedia using the definition for an operation system as the bse then I would say, &ldquo;A cloud operating system (COS) is </span><a href="http://en.wikipedia.org/wiki/Software"><span>software</span></a><span>, consisting of </span><a href="http://en.wikipedia.org/wiki/Computer_program"><span>programs</span></a><span> and </span><a href="http://en.wikipedia.org/wiki/Data"><span>data</span></a><span>, that runs on IaaS providers, manages IaaS resources, and provides common services for execution of various </span><a href="http://en.wikipedia.org/wiki/Application_software"><span>application software</span></a><span> and SaaS. The cloud operating system is the most important type of </span><a href="http://en.wikipedia.org/wiki/System_software"><span>system software</span></a><span> in a cloud computing system. Without a cloud operating system, a user cannot run a </span><a href="http://www.productionscale.com/home/2011/4/17/cloud-native-applications.html#axzz1UHd5TK2S"><span>cloud native application</span></a><span> program on the cloud computer, unless the application program is self booting.</span><br /><br /><span>To me, this sounds most like what we currently often call Platform as a Service (PaaS).</span><br /><br /><span>The problem I have with current PaaS systems is that they dictate heavily and take away far too much from the programmer from the underlying services. &nbsp;This is a compromise of course. &nbsp;But, &nbsp;a true operating system is far more flexible than the existing crop of PaaS services. &nbsp;Just imagine if your newest operating system upgrade wouldn&rsquo;t let you access &frac12; the CPU cores or the networking services for some reason and your manufacture just said, tough cookies because that&rsquo;s just how it is. &nbsp;You&rsquo;d probably try to return it if you could.</span><br /><br /><span>Where this got interesting for me in thinking about it later was the concept of &ldquo;self-booting&rdquo; that was mentioned in the wikipedia defintion above. &nbsp;If you build the necessary intelligence into your PaaS such that it can bootstrap an application, the storage, networking, and compute necessary to run and then manage that moving forward then you do, in fact, have something more resembling a cloud operating system as defined above.</span></p>]]></content:encoded></rss:item><rss:item rdf:about="http://www.productionscale.com/home/2011/8/2/welcome-vgbuilder-to-the-world.html"><rss:title>Welcome VGBuilder to the world!</rss:title><rss:link>http://www.productionscale.com/home/2011/8/2/welcome-vgbuilder-to-the-world.html</rss:link><dc:creator>Kent Langley</dc:creator><dc:date>2011-08-03T04:53:55Z</dc:date><dc:subject>cloud cloud computing</dc:subject><content:encoded><![CDATA[<div>Build&nbsp;<strong>custom apps</strong>&nbsp;+ deploy them to your&nbsp;<strong>cloud host of choice</strong>&nbsp;-- straight from the command line.</div>
<div></div>
<div><br /><span class="full-image-block ssNonEditable"><span><a href="http://builder.varoquagroup.com/" target="_blank"><img style="width: 600px;" src="http://www.productionscale.com/storage/vg1.jpg?__SQUARESPACE_CACHEVERSION=1312347660371" alt="" /></a></span></span><br /><span>The first applications using VGBuilder are live already and there are more in works.</span><br /><br /><span>This Cloud Native Application Development toolset was created out of a genuine need for a big project about a year ago that needed to move very fast. &nbsp;There were no tools that we felt really met our needs at the time so we created our own. &nbsp;That&rsquo;s a story that will be told soon in more detail I expect.</span><br /><br /><span>I consider VGBuilder a Cloud Native Application development tool set. &nbsp;It does not meet all my requirements &nbsp;as you&rsquo;ll note if you read the above article. &nbsp;But, in time it will I believe.</span></div>
<div><span><br /></span></div>
<div></div>
<div></div>
<div><span>To understand some of my thinking that went into VGBuilder it helps to read these articles:</span><br /><br /><a href="http://www.productionscale.com/home/2011/4/17/cloud-native-applications.html#axzz1TwCMWdvs"><span>Cloud Native Applications</span></a><br /><br /><span>I wouldn't claim necessarily that VGBuilder is revolutionary but it certainly is evolutionary. &nbsp;One of the more powerful aspects of this toolset is that it removes the need for any middle man or centralized platform to get your ideas from your brain and into the cloud crazy fast and with quite a bit of style. &nbsp;It allows you to build and deploy your applications in the cloud with almost no barriers. &nbsp;It removes the need for PaaS services for many people right from the start.</span></div>
<div><span><br /></span></div>
<div></div>
<div><span>Essentially your laptop or computer becomes your private cloud and either Amazon or Rackspace (supported today out of the box) becomes your public cloud. This is essentially a hybrid cloud model that puts all the power in the developers hands and automates almost everything that is often tedious or cumbersome otherwise.</span><br /><br /><span>Things are still rough around the edges. &nbsp;As much as anything I want to guage interest and get feedback on this new set of tools. &nbsp;There is a long way to go but preliminary case studies have been excellent. &nbsp;</span><br /><br /><span>Please contact me or sign up on the early access web&nbsp;</span><a href="http://builder.varoquagroup.com/"><span>page</span></a><span> for if you&rsquo;d like to be kept informed of the progress and provided access to use the tools for your own projects as it is opened it up to more early adopters.</span></div>
<p>&nbsp;</p>]]></content:encoded></rss:item><rss:item rdf:about="http://www.productionscale.com/home/2011/7/30/productionscale-communication-problem-discovery.html"><rss:title>ProductionScale Communication Problem Discovery</rss:title><rss:link>http://www.productionscale.com/home/2011/7/30/productionscale-communication-problem-discovery.html</rss:link><dc:creator>Kent Langley</dc:creator><dc:date>2011-07-30T19:38:40Z</dc:date><dc:subject></dc:subject><content:encoded><![CDATA[<p>I discovered today a distressing thing about my blog. &nbsp;For the last few months two things have been misconfigured.</p>
<p>One, my phone number was an old number that is out of service. &nbsp;So, if you tried to call me then please just note the new number on the about page and try again.</p>
<p>Two, my contact submission form was going to an email address that was Supposed to forward the mails but has not being properly performing its duty. &nbsp;I have fixed this issue and gone back through and replied to all the emails that were legitimate.</p>
<p>My sincere apologies for those communications issues and if you have tried to reach me through this blog and I did not respond, that is likely why. &nbsp;I always respond to legitimate requests for information, work, or engaging discourse. &nbsp;So, please send me a new note and don't hesitate to reach out! &nbsp;I thoroughly enjoyed the connections I've made over the years from this blog and hate to think I let it lapse for a bit!</p>
<p>Sincerely,&nbsp;</p>
<p>Kent Langley</p>]]></content:encoded></rss:item><rss:item rdf:about="http://www.productionscale.com/home/2011/7/9/scale-planning-and-the-akf-scale-cube.html"><rss:title>Scale Planning and the AKF Scale Cube</rss:title><rss:link>http://www.productionscale.com/home/2011/7/9/scale-planning-and-the-akf-scale-cube.html</rss:link><dc:creator>Kent Langley</dc:creator><dc:date>2011-07-10T04:39:59Z</dc:date><dc:subject>cloud computing cloud computing distributed distributed scalability</dc:subject><content:encoded><![CDATA[<div><span id="internal-source-marker_0.42170574492774904">There are a lot of ways to draw diagrams for availability and scalability. &nbsp;I use different ones for different purposes all the time. &nbsp;However, when I was reading the Art of Scalability by AKF partners I ran across a nice compound diagram they call the AKF Scale Cube which helps simplify the explanation of the multi-dimensional nature of scalability issues in complex web application scenarios. &nbsp;</span><br /><br /><span>I&rsquo;ve been using this visualization model to help me explain how things fit together in both technical and business discussions. &nbsp;It comes in very handy I must say.</span><br /><br /><span>Most recent I&rsquo;ve been using it to describe a gnarly distributed application I&rsquo;m working on for a client. &nbsp;What follows is a generalized version of a functional use and some discussion of a compound view of ones I have created for clients of mine.</span></div>
<div><span>&nbsp;</span><br /><img src="https://lh6.googleusercontent.com/5pfL3O46i03-1Mf0Zyi1xNTLwDhmHoLktV2X79UDw3YX-rb5ln3olVPkMvut80GO2FbiDITYU5aou0q5VZ7b6JmO24bVwb2FhDohvmSYTjGFEK5KcvQ" alt="" width="638px;" height="566px;" /><br /><br /><span>Some base-line definitions are in order if you haven&rsquo;t read the book mentioned above.</span><br /><br /><span><strong>X-Axis</strong> - </span><span>Horizontal Scalability, Clones, Scale Out. &nbsp;These are terms often associated with the X-Axis. &nbsp;In the case of this graph, day you build a data processor then make 10 copies of it. &nbsp;Well, that&rsquo;s scaling to 10 units on the x-axis in this graph. &nbsp;Depending on your application, this can help you increase your capacity; but not always!</span><br /><br /><span><strong>Y-Axis</strong> - </span><span>I&rsquo;ve called this axis functional decomposition for a long time. &nbsp;It can be thought of as breaking the application down from a monolithic single instance into discreet stand-alone parts. &nbsp;I have some examples that are a bit of mix from various projects I&rsquo;ve worked on in the past here.</span><br /><br /><span><strong>Z-Axis</strong> - </span><span>This is the tricky one for most folks. &nbsp;This is what people might call sharding, partitioning, etc. &nbsp;Keep in mind, I&rsquo;m not only talking about a database here. &nbsp;I&rsquo;m talking about an entire complex multi-faceted distributed highly-available web application.</span><br /><br /><span><strong>0,0,0</strong></span><span>&nbsp;- The intersection of all three axis or 0,0,0. &nbsp;This is what some would call an all-in-one server. &nbsp;It&rsquo;s often used for proof of concept for for launching without a care in the world for future growth needs. &nbsp;There&rsquo;s nothing wrong with it as long as you understand the limitations and technical debt associated with the approach.</span><br /><br /><strong><span>Z-Axis Item Explanations</span><br /></strong><br /><span><strong>Client</strong> - </span><span>Assuming this is a multi-tentant application you may want to shard your application by client such that each client or group of clients is assigned somehow to a specific cluster of nodes.</span><br /><br /><span><strong>Geography</strong> - </span><span>Assuming you&rsquo;d like to have built in DRBC and your applciation is capable of surviving being split up into many pieces then you could end up sharding your application by data center and broader geographies such as city, state, country.</span><br /><br /><span><strong>External Cloud</strong> - Using IaaS and PaaS resources outside of your own data centers. &nbsp;For a refresher on IaaS and PaaS see </span><a href="http://www.productionscale.com/home/2008/4/24/cloud-computing-get-your-head-in-the-clouds.html"><span>the article I wrote, &ldquo;Cloud Computing: &nbsp;Get Your Head in the Clouds,&rdquo; in 2008</span></a><span> that was heavily read over the years.</span><br /><br /><span><strong>Internal Cloud </strong>- Using your own infrastructure resources BEHIND your own firewall to do whatever it is that your application does. &nbsp;This doesn&rsquo;t always have to be a cloud. &nbsp;If you want to know what I think it takes to be a cloud then </span><a href="http://www.productionscale.com/home/tag/cloud-computing"><span>read the several articles I wrote over the years</span></a><span> related to that topic. &nbsp;I do set the bar pretty high though I&rsquo;ve learned.</span><br /><br /><span><strong>Purpose</strong></span><span> - You might want to simply partition along the Z-Axis by any generic purpose for various reasons. &nbsp;I think of this a little bit like saying I want to put all widgets in data node 1 and all waggles in data node 2. &nbsp;They&rsquo;ll both fit in a single node but maybe I want to spread my risk around. &nbsp;This one is a little nebulous but it can engender fun conversations about why things need to exist at all.</span><br /><br /><span><strong>Shard Key</strong> - </span><span>We see this all the time in traditional RDBMS style deployments and even in some of the newer tools in the NOSQL world. &nbsp;It&rsquo;s basically just some index of what node you put things one somewhere. &nbsp;For those of you that had to deal with libraries before the internet you&rsquo;ll remember the lovely card catalog. &nbsp;It&rsquo;s was nicely set up to help you figure out with shard of the library your book was close to. &nbsp;Then, when you got there, good old dewey decimal system kicked in to take you the rest of the way.</span><br /><br /><strong><span>Y-Axis Item Explanations</span><br /></strong><br /><span><strong>Data Processing </strong></span><span>- this could be some application that transforms data from one state to another. &nbsp;For example, it might simply remove all the spaces in a document and replace them with dashes. &nbsp;That&rsquo;s a bit of a silly example, but just to make the point.</span><br /><br /><span><strong>Data Aggregator</strong></span><span> - I&rsquo;ve had to build project after project that needed one form or another of data aggregation. &nbsp;So, just think of this as something that might consume and RSS feed and stick it in a database of some kind.</span><br /><br /><span><strong>Distributed Calculation</strong> </span><span>- I&rsquo;ve been doing work and research with Map-Reduce, Actor Models, the Bulk Synchronous Parallel Model and more exotic instruments from past, present, and future. &nbsp;This is simply something that does some kind of math or calculation of some sort. &nbsp;For example, counting all the uses of the word onomatopoeia in 50TB of English essays by high school students across 100&rsquo;s of of compute nodes.</span><br /><br /><span><strong>Processor App</strong></span><span> - This is just a generic discreet application that processes something, like an API request for example.</span><br /><br /><span><strong>Web App</strong> - This is an application, in my case, written in a modern MVC framework that has the job of interacting with web users and getting things done in the back-ground in various ways with various services.</span><br /><br /><span><strong>Base Installation</strong> -</span><span> I think of this as just shared code. &nbsp;One of the developers I have been working with recently suggested that we extract a number of commonly used components from various application pieces on the Y-Axis and build a library of sorts. &nbsp;Great suggestion in this case, so I stuck in on my general diagram to remind me in the future.</span><br /><br /><span>What&rsquo;s interesting about all these conceptual applications is that if you create them correctly and with the correct architectural models that each item that lives on the X Axis will also be able to scale on the X and Z axis. &nbsp;For example, you could have your web application running 5 X-Axis copies in 4 Y-Axis partitions; say external cloud, by client, purpose, and by geography per client. &nbsp;So, you&rsquo;d end up use four AWS Availability zones in 2 AWS locations running 96 application nodes in total. &nbsp;Of course, your application has to be built correctly to take advantage of all of this distribution at every level. &nbsp;But, that&rsquo;s a topic for a later date I suppose.</span></div>
<div><span><br /></span></div>
<div></div>
<div>In summary, this post was just to share some of my thinking around the use of a very nice visualization tool by the fine folks at AKF Partners. &nbsp;So, a shout out to them for the nice tool and hopefully this helps people a bit understand how it can be used / thought of in a variety of ways.</div>
<div></div>
<div>Just remember, it's not one-size-fits all. &nbsp;Your use, labels, and needs for such things will vary greatly depending on what you are trying to architect, develop, and deploy.</div>]]></content:encoded></rss:item><rss:item rdf:about="http://www.productionscale.com/home/2011/4/22/on-clouds-and-spofs-or-the-great-aws-outage-of-april-2011.html"><rss:title>On Clouds and SPOF’s (or the Great AWS Outage of April 2011)</rss:title><rss:link>http://www.productionscale.com/home/2011/4/22/on-clouds-and-spofs-or-the-great-aws-outage-of-april-2011.html</rss:link><dc:creator>Kent Langley</dc:creator><dc:date>2011-04-23T00:58:25Z</dc:date><dc:subject>IT cloud cloud computing distributed</dc:subject><content:encoded><![CDATA[<div><br /><span>Just a couple of days after posting about cloud native applications Amazon raised the bar by having some issues in one of their data center regions. &nbsp;These issues primarily affected EBS and RDS from what I&rsquo;ve read. &nbsp;So, pretty much everything one way or another since using AWS EC2 without EBS in any form for most applications that exist today is a little wacky for most folks. &nbsp;This is because your EC2 AMI won&rsquo;t persist through a reboot in the absense of the use of EBS. &nbsp;Most folks have not reached the operational nirvana yet of full automated configuration management and application fault tolerance that makes this acceptable for them.</span><br /><br /><span>What level of </span><a href="http://www.productionscale.com/home/2010/10/6/spof-single-point-of-failure-analysis.html#axzz1KIrAsFv3"><span>SPOF (Single Point of Failure) </span></a><span>are you are willing to tolerate. &nbsp;So, I wanted to &ldquo;scale up&rdquo; the idea of the SPOF then bring it back down again. &nbsp;Here we go.</span><br /><br /><span>If the earth stops working, so will your web application (admittedly there might be some satellite networks that don&rsquo;t have this problem... but who cares at that point?)</span><br /><br /><span>So, let&rsquo;s keep going. &nbsp;Each of these is a potential single point of failure.</span><br /><br /><span>Earth &gt; Continent &gt; Country &gt; State/Region &gt; City &gt; Neighborhood &gt; Building &gt; Floor &gt; Room &gt; Rack &gt; Server &gt; Server Component</span><br /><br /><span>And, at each tier, there are numerous dependencies and contexts to keep your service running at any given time. &nbsp;There are the obviously ones like the above example where if the earth explodes the neighborhood is pretty much shot to hell also. &nbsp;But, that&rsquo;s obvious. &nbsp;It&rsquo;s gets less obvious when you dig deeper into the data center and see that there are 5 servers so that&rsquo;s okay right? &nbsp;Maybe. Maybe not. If it is something like.</span><br /><br /><span>Dynamic Name Service &gt; Load Balancer &gt; Web Server &gt; Application Server &gt; Database Server</span><br /><br /><span>Then those 5 servers/services might be in that one rack per data center per room per building per neighborhood per city per state per country per continent per planet is looking pretty vulnerable. &nbsp;In the grand scheme of things the loss of one power supply in one machine could impact the entire planet&rsquo;s capacity to retrieve whatever is on that DB that is so globally important; like a picture of your kid making a funny face on his 2nd birthday.</span><br /><br /><span>Do you think it is Amazon AWS&rsquo;s fault if you put that database on one server in one rack in one place with no reasonable SLA and it goes away forever? &nbsp;Not so much. &nbsp;You are accountable and responsible. &nbsp;You made that choice.</span><br /><br /><span>Now, how can we change this for the better? &nbsp;We can develop applications that are able to tolerate the loss of a single point of failure at a sufficient granuality (Earth is a bit extreme today) such that our applications keep running when bad things like the AWS outage occur. &nbsp;I call these Cloud Native Applications. &nbsp;They have certain </span><a href="http://www.productionscale.com/home/2011/4/17/cloud-native-applications.html#axzz1KIrAsFv3"><span>traits</span></a><span> that should look a little familiar to cloud folks.</span><br /><br /><span>You cannot create a cloud native application doing things the same way you always have before. &nbsp;It simply will not work. &nbsp;The necessary software architecture and systems architecture has changed if you want your application to run on the cloud w/ no SPOFs.</span><br /><br /><span>Just needed to get that off my chest. &nbsp;Some related links for good reading:</span><br /><br /><a href="http://blog.basho.com/2011/04/21/Amazons-outage-proves-riaks-vision/"><span>http://blog.basho.com/2011/04/21/Amazons-outage-proves-riaks-vision/</span></a><br /><br /><a href="http://www.thestoragearchitect.com/2011/04/22/so-your-aws-based-application-is-down-dont-blame-amazon/"><span>http://www.thestoragearchitect.com/2011/04/22/so-your-aws-based-application-is-down-dont-blame-amazon/</span></a><br /><br /><a href="http://highscalability.com/blog/2011/4/22/stuff-the-internet-says-on-scalability-for-april-22-2011.html"><span>http://highscalability.com/blog/2011/4/22/stuff-the-internet-says-on-scalability-for-april-22-2011.html</span></a><br /><br /><a href="http://www.infoq.com/news/2011/04/amazon-ec2-outage"><span>http://www.infoq.com/news/2011/04/amazon-ec2-outage</span></a><br /><br /><span>And if your REALLY keen to write some CNA&rsquo;s (contact me) and read...</span><br /><br /><a href="http://www.infoq.com/presentations/Actor-Thinking"><span>http://www.infoq.com/presentations/Actor-Thinking</span></a><br /><a href="http://www.infoq.com/presentations/1000-Year-old-Design-Patterns"><span>http://www.infoq.com/presentations/1000-Year-old-Design-Patterns</span></a></div>
<p>&nbsp;</p>]]></content:encoded></rss:item><rss:item rdf:about="http://www.productionscale.com/home/2011/4/17/cloud-native-applications.html"><rss:title>Cloud Native Applications</rss:title><rss:link>http://www.productionscale.com/home/2011/4/17/cloud-native-applications.html</rss:link><dc:creator>Kent Langley</dc:creator><dc:date>2011-04-18T05:46:04Z</dc:date><dc:subject>cloud computing cloud computing distributed distributed</dc:subject><content:encoded><![CDATA[I’ve always believed that cloud computing is really two things.  One, it is a technology architecture. Two, it is a business operating paradigm that we often call on-demand.  Your application must satisfy the on-demand business model requirements satisfy the technical architecture requirements to be a cloud native application.  There are not very many cloud native applications running in the world today.  This is changing quickly. 

A Cloud Native Application is architected and designed to run on what is commonly referred to as a cloud IaaS or PaaS.  The words I used there are very important.  It is architected and designed to run in the cloud from the beginning.  Therefore, it has a number of important traits as part of it’s DNA. The traits that a Cloud Native Application must have are:]]></content:encoded></rss:item><rss:item rdf:about="http://www.productionscale.com/home/2011/2/18/the-five-pillars-of-monitoring-pillar-one.html"><rss:title>The Five Pillars of Monitoring – Pillar One</rss:title><rss:link>http://www.productionscale.com/home/2011/2/18/the-five-pillars-of-monitoring-pillar-one.html</rss:link><dc:creator>Kent Langley</dc:creator><dc:date>2011-02-18T18:13:53Z</dc:date><dc:subject>business monitoring</dc:subject><content:encoded><![CDATA[This post is the first in a series of five that will be released over the next few weeks.  Today’s post is an introduction to the series and the first pillar of monitoring.

When a website is launched there is one particular component of the system that is deeply important.  That system is monitoring.

Monitoring is often swept under the rug, held for last, or poorly done.  This is a huge mistake that, in my opinion, is nearly inexcusable.  It is my opinion that a lack of monitoring of key items in key contexts will lead to poor performance, outages, and bad business decisions.  Monitoring is simply a requirement for any production web application that you actually care about.]]></content:encoded></rss:item></rdf:RDF>
