<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dario Freddi on Medium]]></title>
        <description><![CDATA[Stories by Dario Freddi on Medium]]></description>
        <link>https://medium.com/@dariofreddi?source=rss-c9e0227944c1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MqU20WxqZDwZJGAxtSI8vg.jpeg</url>
            <title>Stories by Dario Freddi on Medium</title>
            <link>https://medium.com/@dariofreddi?source=rss-c9e0227944c1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:00:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dariofreddi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Kubernetes is not an orchestrator — it’s a game changer in the Cloud]]></title>
            <link>https://medium.com/ispirata/kubernetes-is-not-an-orchestrator-its-a-game-changer-in-the-cloud-ac3d1f2dc36d?source=rss-c9e0227944c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac3d1f2dc36d</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Dario Freddi]]></dc:creator>
            <pubDate>Tue, 22 May 2018 15:08:20 GMT</pubDate>
            <atom:updated>2018-05-22T15:08:20.630Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/491/0*h-37JyeZRDgkcrRf.png" /></figure><p>If you happen to read my ramblings or interact with me, it’s not a big secret how big of a Kubernetes fan I am. I got interested in the technology some time between two and three years ago, while I was looking for something which would heal my delusion in trying to run containers in production.</p><p>Since then, the landscape has changed quite a lot. Nowadays, Kubernetes is pretty much <em>the</em> go-to solution if you want to use containers, it extended way beyond its reach, and started to become something different than just an orchestrator: <strong>an application platform</strong>.</p><p>What got me really excited, though, was this <a href="https://coreos.com/blog/introducing-operators.html">blog post</a> roughly a year and a half ago. When I read about it I literally jumped from my chair and thought “This is huge”. <a href="https://www.redhat.com/en/about/press-releases/red-hat-acquire-coreos-expanding-its-kubernetes-and-containers-leadership">Well, as a matter of fact, it was</a>.</p><p>But is it all just technical discussions and ramblings? I don’t think so. I believe <strong>we’re in the middle of a huge paradigm shift</strong>, in which Kubernetes and Operators will play a <strong>fundamental, new role</strong>.</p><p>It all starts with a very simple question:</p><h4>What is “The Cloud”?</h4><p>I guess nobody really has an answer, especially if we assume <em>“The Cloud”</em> is mostly companies providing SaaS services on top of a Cloud infrastructure. To me, <em>“The Cloud”</em> is commonly mistaken as a buzzword for “SaaS”, which in turn is a combination of three main elements:</p><ul><li><strong>Infrastructure</strong></li><li><strong>Services</strong></li><li><strong>Operational Intelligence</strong></li></ul><p>Kind of works, right? After all, this is all you expect from SaaS: you <strong>don’t care about infrastructure</strong>, you want your service to self-heal (arguably, you don’t even want to know it breaks), you <strong>don’t care how it’s provisioned</strong>, you expect it to (down)scale: in short, you just care about the service itself and not how it works internally. How you pay for it isn’t really relevant in this discussion.</p><p>Let’s assume what I said it’s true, what does it mean for SaaS providers? That <strong>you can be competitive in the market only if you master all three areas</strong>: having just a great product or a great infrastructure isn’t really enough, as you will be crushed by those companies which <strong>master every part of the stack</strong>.</p><p>This isn’t that far from reality. Leading SaaS providers are, incidentally, <strong>leading cloud infrastructure providers</strong> which invested a lot in automation and have great software development teams. Especially if you consider developer-oriented services, or<strong> PaaS in general</strong>, where hybrid/private instances and replicated deployments matter —<strong> a lot</strong>. And if keeping up a huge, multi-tenant instance is something you might be able to deal with even if you don’t dominate every part of the stack, how would you keep up with thousand of deployments with <strong>the same requirement in terms of scalability and reliability</strong>?</p><p>As it stands, <strong>you simply can’t</strong>. In fact, in the PaaS world we’re mostly stranded with <strong>a lot of proprietary and vendor-specific services</strong> provided by the few who are capable of doing it: not exactly developer heaven.</p><h4>Kubernetes in the bigger picture</h4><p>Infrastructure virtualisation is a hot topic since as long as I can remember, but <strong>it didn’t really affect developers</strong> until recently. In fact, why would I care about infrastructure if all that bothers me is running a service and I’m bound in a Virtual Machine, or a Container? (spoiler: for the reasons outlined above)</p><p>Kubernetes twists the plot entirely, by giving Developers access to Infrastructure Virtualisation/Automation <strong>from within the infrastructure itself</strong>. Don’t get me wrong: it’s not like infrastructure automation, service orchestration and automated recovery are anything new. The main point, though, is <strong>they were in different domains</strong>. This is exactly the reason why Operators matter: in Kubernetes world, <strong>everything belongs together</strong>.</p><p>So, what happens?</p><ul><li><strong>Infrastructure == Kubernetes</strong></li><li><strong>Service == Your Service</strong></li><li><strong>Operational Intelligence == Operator</strong></li></ul><p>Did we just get the keys to the Lamborghini? Not quite — there’s still a missing bit: <strong>Kubernetes itself</strong>. And that’s where things get really interesting.</p><p>Over the last months, <a href="https://aws.amazon.com/eks/">every</a> <a href="https://azure.microsoft.com/en-us/blog/introducing-azure-container-service-aks-managed-kubernetes-and-azure-container-registry-geo-replication/">major</a> <a href="https://www.ibm.com/blogs/cloud-computing/2018/03/14/managed-kubernetes-bare-metal/">cloud</a> <a href="https://blogs.oracle.com/linux/announcing-oracle-container-services-119-for-use-with-kubernetes">provider</a> (sorry for those I forgot, mostly laziness) started ditching their own Container Service solution <strong>in favour of a managed Kubernetes service</strong>. How big the implications of such a thing are is left as an exercise to the reader.</p><p>What really matters, though, is that as long as our infrastructure is provided with the needed warranties, we can start building on top of it.</p><h4>Power to Developers(?)</h4><p>Everybody loves developers — they’re amongst the most reliable sources in the world nowadays for making money, but all of this might just change <strong>the way money is made</strong>. Operators are literally allowing software developers and companies, who had previously no business in/with infrastructure, to do business on top of it <strong>with a fraction of the overhead</strong>.</p><p>But that’s not just about all. In a world where Open Source/independent projects can be deployed in a Hybrid Cloud scenario, <strong>who needs vendor-specific services?</strong> I initially thought I was crazy, but <a href="https://www.redhat.com/en/about/press-releases/red-hat-brings-cloud-native-capabilities-software-partner-ecosystem-kubernetes-operators">it looks like I’m not the only one</a>. Smart developers and ISVs are, in my opinion, facing the biggest opportunity in years: Infrastructure Providers and Cloud Vendors <strong>are no longer competitors: they’re becoming customers/distributors</strong>.</p><p>Personally, I think there’s a further evolution step, and that’s what we’re trying to do at <a href="https://ispirata.com/">Ispirata</a>. In less than two months <a href="http://github.com/astarte-platform">Astarte</a>, our main product, <strong>will be distributed as a PaaS solution by an Infrastructure/Cloud Vendor</strong>. On top of their own Kubernetes implementation, hidden from the final user/developer.</p><p>This is stuff for a different post, but it highlights an important scenario: <strong>competition in the Infrastructure space might just get back to Infrastructure itself rather than services</strong>, if such a scenario will prove to be successful. In a world where everybody is enabled to distribute the same piece of software, <strong>the difference stands in how you do it</strong>.</p><h4>A controversial vision for the future of PaaS</h4><p>Predicting things in such an industry is difficult and dangerous, and the obvious disclaimer is that my vision is biased and it’s just one of the possibilities. But, if you were to ask me where this whole thing is heading towards, I’d go for <strong>“Open Source Platforms as a Service”</strong>. And I’m not talking about compatibility layers — I mean the actual Open Source product. To be as explicit as possible, stuff like “actual MongoDB as a service” rather than “DBaaS which is incidentally compatible with Mongo but not quite”.</p><p>Emerging models are putting keys to the infrastructure in the hands of developers, and this can be a good thing for everyone. For “edge” developers, this means <strong>more standardisation regardless of the chosen Cloud Provider</strong>, for “plumber” developers it means <strong>opportunity</strong>, for Cloud/Infrastructure Providers it means <strong>stepping up their services game</strong>.</p><p>Relatable? Crap? Time will tell, but there’s one thing I’m pretty sure about: things are moving real fast, and new opportunities are popping up on a daily basis. Exciting times lie ahead, and <strong>we’re in for quite a ride</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac3d1f2dc36d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ispirata/kubernetes-is-not-an-orchestrator-its-a-game-changer-in-the-cloud-ac3d1f2dc36d">Kubernetes is not an orchestrator — it’s a game changer in the Cloud</a> was originally published in <a href="https://medium.com/ispirata">Ispirata</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Clustering Elixir/Erlang applications in Kubernetes (part 1: the theory)]]></title>
            <link>https://medium.com/ispirata/clustering-elixir-erlang-applications-in-kubernetes-part-1-the-theory-ca658acbf101?source=rss-c9e0227944c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca658acbf101</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[astarte]]></category>
            <category><![CDATA[elixir]]></category>
            <category><![CDATA[erlang]]></category>
            <dc:creator><![CDATA[Dario Freddi]]></dc:creator>
            <pubDate>Mon, 12 Mar 2018 11:39:47 GMT</pubDate>
            <atom:updated>2018-03-12T11:39:47.111Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rtypKZCIHA0FlOL9Vm2D-g.png" /></figure><p>If you’re one of the cool kids, you are most likely to have heard/have thought about using <a href="https://kubernetes.io/">Kubernetes</a> over the last months/years. I personally have been a fan of the technology since its early days: standalone containers have been quite a disappointment to me for anything beyond CI and similar stuff, and K8S turned the table in a different direction.</p><p>In <a href="https://ispirata.com/">Ispirata</a> we have been coding <strong>a lot</strong> of Elixir lately, mainly due to our new OSS project, <a href="https://github.com/astarte-platform">Astarte (go check it out!)</a>. Astarte is quite a complicated beast: it packs in <a href="http://docs.astarte-platform.org/snapshot/010-design_principles.html">a number of microservices</a>, and other goods such as <a href="http://www.rabbitmq.com/">RabbitMQ</a>, <a href="https://vernemq.com/">VerneMQ</a> and <a href="http://cassandra.apache.org/">Cassandra</a>/<a href="https://www.scylladb.com/">ScyllaDB</a>. Kubernetes looked like the perfect candidate for it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sPDegEpsKOfU_exAaabv_Q.png" /><figcaption>Hey mom, look at my Astarte cluster on K8S!</figcaption></figure><p>Astarte is almost entirely written in <a href="https://elixir-lang.org/">Elixir</a> (+<a href="http://phoenixframework.org/">Phoenix</a> for what concerns its APIs), and <a href="https://medium.com/polyscribe/a-complete-guide-to-deploying-elixir-phoenix-applications-on-kubernetes-part-3-deploying-to-bd5b1fcbef87">the internet was already packed with excellent guides for what concerns Elixir+K8S</a>. In fact, the experience has been quite smooth: after building our container images with Gitlab CI, we were ready to go for what concerned deployment.</p><p>The missing bit was clustering. Erlang/Elixir are popular, among other reasons, for their clustering capabilities, which is leveraged natively by a lot of applications — among which, RMQ itself. Of course, Kubernetes shines when it comes to clustering, so why not getting both to work together?</p><p>There’s no free lunch though, and running Distributed Erlang applications on K8S requires additional effort, as we will see. This blog series will take you on our journey in getting our clusters solid as a rock, and best friends with K8S. But let’s start from the beginning. How does Distributed Erlang play along with K8S if we just throw it at it?</p><h3>The problem</h3><p>I’m definitely not the best person to talk about distributed Erlang, so <a href="http://erlang.org/doc/reference_manual/distributed.html">I’ll leave you to the docs</a>. Let’s try to fit the issue inside K8S, though.</p><p>First of all, it is always important to remember that <strong>a pod is never guaranteed to have the same IP everytime it is scheduled</strong>. Pods are transient entities and are meant to be destroyed and recreated arbitrarily often during the cluster’s lifecycle — unless there’s node affinity involved, they’re not even guaranteed to be scheduled always on the same node.</p><p>How does this have an impact our setup? Distributed Erlang builds upon <strong>node names</strong>. A node name, in most cases, looks like this:</p><blockquote>myapp@10.1.2.3</blockquote><p>Which can be quite a problem in K8S land. Let’s suppose we have 3 nodes up and running, happily clustered together. A pod crashes, and doesn’t leave the cluster cleanly. Our application might then expect that the fallen node will eventually come up again, as it was a transient failure. <strong>The node will indeed come up again, but this time with a different node name.</strong></p><p>Now, unless we implement additional strategies to identify the node, everything is quite clear to Erlang: <strong>a brand new node has come up, and our application will indefinitely wait for the old node to come up</strong>. This can create a number of issues, especially if your application is as complex as RabbitMQ.</p><h3>The solution</h3><p>Modern K8S versions have compulsory support for <a href="https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/">DNS resolution inside the cluster</a>. At the same time, <strong>Erlang node names can be a valid hostname</strong> (which has to resolve to the node’s IP). This looks like something which might fix our issue, as long as we can ensure a consistent DNS for our Pods. Let’s see how we can do this.</p><h4>StatefulSets to the rescue</h4><p><a href="https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/">StatefulSets</a> are a quite powerful concept in K8S, enabling <strong>deterministic naming and sticky identity for pods</strong>. It is a great start to our solution, as it guarantees that no matter how many times the same Pod spec is scheduled, the scheduled pod will <em>always</em> have the same name — hence, the same DNS.</p><p>Arguably, this also goes together quite well with the fact that, as soon as we’re clustering a complex application, we <em>are</em> dealing with the cluster state, and we can’t rely on purely stateless constructs such as Deployments.</p><h4>Wrap it around a Service</h4><p>I mean, that’s what you want to do most of the times. However, <a href="https://kubernetes.io/docs/concepts/services-networking/service/">K8S Services</a> do an additional amount of magic which becomes quite interesting for our use case. In particular, they are assigned a DNS which becomes accessible from within the cluster. Let’s suppose we’re dealing with a service named <em>testsvc </em>in a K8S namespace named<em> test</em>. Our service will be then reachable, from within the cluster, at</p><blockquote>testsvc.test.svc.cluster.local</blockquote><p>Unless you have a really funky setup — in which case, you probably are quite well familiar with these concepts.</p><p>How does this help us, though? The magic doesn’t really stop here: <strong>Pods belonging to a Service have their own DNS in that hierarchy</strong>. Which is simply:</p><blockquote>&lt;pod name&gt;.&lt;service name&gt;.&lt;namespace&gt;.&lt;your cluster base DNS&gt;</blockquote><p>Suppose our StatefulSet is named <em>testapp</em>. Our first Pod will <strong>always</strong> be reachable at</p><blockquote>testapp-0.testsvc.test.svc.cluster.local</blockquote><p>And here we are. This is nothing but our Erlang node name, kindly provided, guaranteed and resolved by K8S itself.</p><h3>What’s going to happen now?</h3><p>If we manage to assign our Erlang application the correct node name, in the aforementioned situation <strong>the crashed pod will come back with the very same node name, and will be recognised correctly</strong>. Of course, we’re still a long way from a fully functional cluster — we need to assign the node name dynamically, we will need some kind of discovery within our applications, and we’ll need to monitor our cluster.</p><p>In the next blog post on this topic, we’ll see how to use Distillery and K8S to make all of this automagic and ensure that our applications are dynamically configured to adhere to what we discussed in this article.</p><p><em>Watch this space for the next blog posts on this topic, and if you are impatient, </em><a href="https://codesync.global/speaker/dario-freddi/"><em>join CodeBEAM Lite in Milan in April, where I’ll talk this specific subject in detail</em></a><em>. Also, if you’re looking for your next IoT platform, </em><a href="https://github.com/astarte-platform"><em>make sure to check out Astarte, coming to a cluster near you in the next weeks</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca658acbf101" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ispirata/clustering-elixir-erlang-applications-in-kubernetes-part-1-the-theory-ca658acbf101">Clustering Elixir/Erlang applications in Kubernetes (part 1: the theory)</a> was originally published in <a href="https://medium.com/ispirata">Ispirata</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The average developer is now an integrator — and that’s a good thing]]></title>
            <link>https://medium.com/ispirata/the-average-developer-is-now-an-integrator-and-thats-a-good-thing-7f98925a7981?source=rss-c9e0227944c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f98925a7981</guid>
            <category><![CDATA[code]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Dario Freddi]]></dc:creator>
            <pubDate>Thu, 31 Aug 2017 09:14:09 GMT</pubDate>
            <atom:updated>2017-08-31T09:14:09.207Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dgl9oND1MDOSzPmePVguKQ.png" /></figure><p>One of the answers I happen to give more often when somebody asks me “how do you evaluate a good programmer?” is “<strong>time</strong>”. Before you spit your meal: I’m not advocating quick&amp;dirty solutions here at all. Let’s try to give a better definition of time, or a more detailed answer:</p><blockquote>How much code do you have to write to accomplish your goal?</blockquote><p>Arguably, this is where you save most of your time. Writing less code means not only being faster, but most of all having <strong>less code to maintain</strong>, which is (most of the time) less of a burden in terms of maintenance in the long term. Spending time in designing your software becomes an <strong>investment</strong> in which you need to figure out how to be <strong>as quick as possible in creating your solution</strong>.</p><p>This sentence, though, can have very different meanings. One of them could be being as good as possible with your programming language to squeeze every feature out of its standard library to make your code <strong>as essential as possible</strong>. A funny example is <a href="http://elixirgolf.com/about/">Elixir Golf</a>, which is exactly as the title says: keep your keyboard hits down, and aim at that birdie.</p><p>A better answer, I think, is how one approaches <a href="https://en.wikipedia.org/wiki/Not_invented_here">the NIH problem</a>. Let’s face it: inventing something new in software is getting harder by the day, and if you have a problem, it’s likely <strong>somebody else solved it for you first (and better, most of the times)</strong>. Package managers for languages and frameworks are becoming the norm, as languages try to keep their standard library as essential as possible, and delegate to third parties extensions and features. <strong>And somebody’s gotta thank Open Source for that.</strong></p><p>Is it good? <strong>Of course it is</strong>. If I had to build up a vertical today, the first thing I’d do is to make <strong>a shopping list of what I need</strong>. Do I need a ring buffer? Check. Do I need a date/time manipulation library? Check. And so it goes. I will probably pick the programming language or paradigm that <strong>better suits the kind of application I am developing</strong> and packs in stable enough components which fit my shopping list.</p><p>What’s left, then? At some point, I might end up realising my work as a programmer has become <strong>a work of technology integration</strong>, in which my job becomes <strong>squeezing every bit of the shopping list I made</strong>, and turn it into the actual solution that I needed to build.</p><p>At the end of the day, the question comes back: <strong>who’s faster?</strong> Probably who has a better and more comprehensive <strong>knowledge of the ecosystem</strong> rather than mere programming skills.</p><p>Of course, this is not always true. If I were forced to divide programmers in two groups, I’d much rather split them into “<strong>horizontal</strong>” and “<strong>vertical</strong>” rather than “<strong>frontend</strong>” and “<strong>backend</strong>”. People building vertical solutions are <strong>leveraging components</strong> built by horizontal — or technology — developers, and do a completely different job, requiring <strong>different skills and attitude</strong>.</p><p>As companies require massive amounts of solutions which have to be <strong>cheaper and faster than ever</strong>, I think it’s safe to assume the average developer is the “vertical” developer. And if you didn’t raise an eyebrow yet, you’ll probably agree with my conclusion: <strong>a good vertical developer is more of an integrator than a coder. And that’s a good thing.</strong></p><p>Moving forward, I believe the requirement for more technology and more solutions will keep on increasing, marking an <strong>even bigger division</strong> between vertical and horizontal developers, which will use <strong>different tools</strong> for accomplishing <strong>different goals</strong>, but still serving one another.</p><p>What will they have in common, then? Well, if you ask me, they’ll both still end up asking themselves the same old question: <strong>Can I go faster?</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f98925a7981" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ispirata/the-average-developer-is-now-an-integrator-and-thats-a-good-thing-7f98925a7981">The average developer is now an integrator — and that’s a good thing</a> was originally published in <a href="https://medium.com/ispirata">Ispirata</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>