<?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 Will James on Medium]]></title>
        <description><![CDATA[Stories by Will James on Medium]]></description>
        <link>https://medium.com/@wiggzz?source=rss-72cdbc4af753------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*dZZCrgQkpTdBeEXf.jpg</url>
            <title>Stories by Will James on Medium</title>
            <link>https://medium.com/@wiggzz?source=rss-72cdbc4af753------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:18:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@wiggzz/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[Kubecon Barcelona 2019]]></title>
            <link>https://medium.com/@wiggzz/kubecon-barcelona-2019-a8f46a16a79d?source=rss-72cdbc4af753------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8f46a16a79d</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[kubecon]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Will James]]></dc:creator>
            <pubDate>Mon, 27 May 2019 17:22:18 GMT</pubDate>
            <atom:updated>2019-05-27T17:22:18.641Z</atom:updated>
            <content:encoded><![CDATA[<p>I went to Kubecon this year — generally enjoyed the experience although conferences are tiring especially when you travel a long way and try to pack a lot of other stuff in (like sight seeing).</p><p>I just wanted to write up a few notes and maybe others would benefit from the learnings and things to look into a bit more.</p><p>Seeing that I now work for Instana, I was interested in what others are doing in the observability space, although more generally I have an interest in distributed computing and especially scaling queries and streaming data transformations — so I went to a few talks relevant to that.</p><h4>The K8s API</h4><p>A lot of people were talking about extending and using the Kubernetes API as more than just a way to manage running containers. In fact, people love the API so much they are using it for all kinds of other stuff — I guess this concept of having types of objects, performing CRUDy operations on them, and then achieving the desired state with controllers that are watching the API is a cool concept — beyond how normal APIs may work which is where you tell the component that is doing the work to do something / or update it’s state. In this case, the place where the desired state is stored is separate from the thing doing the work — the k8s API is the source of truth for the desired state and the means of communication between components which makes extending and running components easier — they are totally decoupled through the API.</p><p><a href="https://medium.com/u/87be53e803bf">SysEleven</a> are using Kubernetes Custom Resources and an operator to manage Kubernetes cluster deployments, including performing cluster version upgrades and other things automatically. In addition, they run Kubernetes <em>in</em> Kubernetes (inception).</p><p>I went to a pretty good overview of building operators by <a href="https://medium.com/u/eee699402ac9">Illya Chekrygin</a> where he went over the “reconciliation loop” in some detail. This is the control loop of the operator where it determines actions needed to go from current state to the desired state. Reminds me of my crane control days…</p><p>In general I would say the trend is towards managing automation through operators and declarative APIs and away from traditional automation (like, Jenkins jobs / scripting / tooling).</p><h4>Metrics API</h4><p>I heard from <a href="https://twitter.com/fredbrancz">Frederic Branczyk</a> on how SIG Instrumentation (Special Interest Group for Instrumentation) have been working towards making the metrics APIs in Kubernetes more stable and pluggable. This seems to be working pretty well now (have you spun a metrics-server with a HorizontalPodAutoScaler recently?). In addition, the metrics that are surfaced by k8s components are going to become standardized and have a lifecycle (alpha, beta, stable, etc…). This will make it easier for people to rely on them moving forward and for things to be safely deprecated.</p><p>Of interest to us at Instana, SIG instrumentation are in the brainstorming stage about how to do live metrics — currently the metrics APIs do not support watch, and metrics are updated fairly infrequently (1 minute metrics last time I checked). This makes it hard to react to load rapidly which can be required in highly dynamic environments or to do scale to zero type deployments. All our data at Instana is streaming and is all real-time, so would be interested to see if there is anything we can contribute in this space. In addition, keep an eye out for Instana custom metrics support.</p><h4>Scaling</h4><p>It was pretty interesting to hear about some scaling challenges with Kubernetes. I didn’t know that one challenge with running large clusters is how the Endpoints object doesn’t scale.</p><p>According to Wojciech Tyczynski and<strong> </strong>Minhan Xia’s talk on scaling the Kubernetes Service, the basic problem is that if you have many nodes (say, 5,000) and you have many pods running in a service (say, 1,000), then every time a pod in that service updates, you have to propagate the Endpoints for that service to every node on the network, and, the size of the Endpoints are proportional to the number of pods in the service (could be on the order of 20GB). During a rolling update, you could end up transporting on the order of ~100TB of data around the cluster as a result of a rollout. This is not tenable.</p><p>Their new design will shard the Endpoints object into EndpointSlices, which will allow incremental updates. They’re also working on not having to propagate all the endpoints in a service to every node — this sounds necessary, as it seems unreasonable for every node to know about all the endpoint addresses for every service in the cluster.</p><p>What other scaling challenges have people seen with large Kubernetes clusters? Generally it seems like people are running many K8s clusters rather than trying to have one cluster to rule them all, which generally seems like a good idea. There was a fair amount of discussion around how to manage multiple clusters include as mentioned above (using operators to spin up and control cluster deployments), using <a href="https://github.com/improbable-eng/thanos">Thanos</a> to view metrics from multiple clusters (see below), and using multi-cloud orchestration tools like C<a href="https://github.com/crossplaneio/crossplane">rossplane</a>, among many others.</p><h4>Service meshes</h4><p>Services meshes stay big. I wont comment on them too much, because I haven’t messed with them at all. However, I did see Linkerd, Istio, and Envoy around and promoting the control that these tools bring as proxies and instrumentation layers. I was pretty impressed with Cilium, which works as a CNI plugin to Kubernetes and uses BPF to sniff and modify network traffic in a performant way — it also supports Envoy as a filter layer where you can write plugins which modify network traffic. I personally believe a network plugin is a better way to get cluster level consistency on your proxy approach rather than having to inject side car pods, but we will see what the future holds. Specifically, I saw a talk from <a href="https://twitter.com/tgraf__?lang=en">Thomas Graff</a> of Cilium around how Cilium with Envoy can be used for (among other things) injecting failures into your applications for Chaos testing.</p><h4>Multi Cluster Metrics</h4><p>I heard two talks on multi-cluster metric collection and aggregation.</p><p>The first was from <a href="https://twitter.com/roskilli">Rob Skillington</a> on how Uber have developed <a href="https://m3db.github.io/m3/m3db/">M3</a> to perform high performance metric ingestion and querying at scale. He went over some of the architecture and performance characteristics of M3DB and their metrics setup, boasting 35M metrics/second and 700M aggregations/second. They claim their setup is significantly more performant than Thanos.</p><p>The second was from <a href="https://twitter.com/siggy">Andrew Seigner</a> and <a href="https://twitter.com/fredbrancz">Frederic Branczyk</a> on using Thanos as a multi-cluster metrics aggregation tool. They demo’d an architecture for auto-scaling deployments based on global metrics. Their setup involved using linkerd to expose request performance metrics to a prometheus instance running in each cluster, and then using Thanos’ pluggable StoreAPI to expose metrics to a global Thanos instance with a grafana dashboard in front of it. In addition, they pumped these metrics back into each Kubernetes cluster using a k8s-prometheus-adapter which allowed a HorizontalPodAutoscaler to respond to global metrics changes.</p><p>Thanos works by compacting and storing Prometheus metrics into cloud object storage and providing a gRPC API over prometheus data which allows Thanos components to discover where metrics are stored and perform aggregations across different datasets.</p><h4>Final thoughts</h4><p>A couple of higher level takeaways</p><ul><li>Open source is king — although I think a lot of innovation is still happening in the proprietary software space, this stuff quickly becomes commoditized as open source solutions are developed.</li><li>Pluggability and composability are huge for new open source projects (how can things be reused to speed project bootstrapping?) It does seem like there is still a lot of reinventing the wheel, but the projects that move fastest find ways of reusing existing tech — at least at the beginning.</li><li>I’m still interested in how Serverless and Kubernetes will play together — my guess is that event driven serverless (i.e. ephemeral) containers are on the way and they will dominate. Developers want to think about containerized code being triggered by events, and they shouldn’t have to care about much else.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8f46a16a79d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[State of Serverless]]></title>
            <link>https://medium.com/@wiggzz/state-of-serverless-f71df7866b2c?source=rss-72cdbc4af753------2</link>
            <guid isPermaLink="false">https://medium.com/p/f71df7866b2c</guid>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <dc:creator><![CDATA[Will James]]></dc:creator>
            <pubDate>Sun, 07 May 2017 06:43:29 GMT</pubDate>
            <atom:updated>2017-05-08T01:16:54.905Z</atom:updated>
            <content:encoded><![CDATA[<h4>Some quick thoughts from Serverlessconf, Austin in April 2017</h4><p>I wanted to take a bit of time to write up what I thought were some of the main themes I noticed at Serverlessconf Austin. I learned a lot and met some great people, so thanks a ton to A Cloud Guru for putting on the conference. In addition, I got a ton of new t-shirts, ate a few gourmet donuts, and enjoyed Austin by visiting some friends and family. Anyway, here are some notes/thoughts.</p><h4>What is Serverless?</h4><p>Everyone at Serverlessconf was still defining what Serverless is. The consensus seems to be:</p><ol><li>Serverless is more than Functions As A Service (FaaS). It includes also other services such as database, authentication, API gateway, orchestration, or more domain specific services, for instance video transcoding as a service or cognitive services, where you are not managing any of the infrastructure related to the service.</li><li>Serverless means (close to) 100% utilisation. This is in contrast to PaaS, where applications either operate at a given scale, or scale more slowly and there will be scaling overhead (unused instances sitting around waiting for requests). In contrast, when serverless services are unused, they cost nothing, but can (almost) instantly scale to millions of users if necessary, and the cost is directly related to the usage.</li></ol><h4>Event Driven instead of Data Driven</h4><p>Another big theme that came out was that serverless applications enable architectures that are designed around events rather than around data. Subscribing applications to an event queue is a nice way to manage service communication, since you can easily add new services onto an existing queue to modify or add functionality, as opposed to baking data flow directly into applications, which introduces strong coupling.</p><p>Rob Gruhl presented some interesting work from Nordstrom where they are using a central unified event log to manage data flowing through their retail systems. Applications can produce and consume events from the stream. Any application which needs a performant view of current state builds its own state database (a view database) by subscribing to the event stream. Then it can service requests based on its needs. Likewise, these applications can produce events for other services to consume. This completely removes the need for a core database system which maintains some centralised state, improving scalability and decoupling between microservices.</p><p>Their demo application, Hello Retail, provides a way for photographers to take photos of new products. When a new product is added, the system selects a photographer from its list of known photographers and sends them an SMS requesting a new photo. When they send a message back (via SMS), the system processes the photo, adds it to a photo bucket, and registers it as a photo for the product.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*wlelejdk-CJngsyFB1Dghg.png" /><figcaption>Hello Retail Architecture by Nordstrom (from <a href="https://read.acloud.guru/announcing-the-winners-of-the-inaugural-serverlessconf-architecture-competition-1dce2db6da3">https://read.acloud.guru/announcing-the-winners-of-the-inaugural-serverlessconf-architecture-competition-1dce2db6da3</a>)</figcaption></figure><p>See their <a href="https://github.com/Nordstrom/hello-retail">Hello Retail</a> project on github for more details.</p><p>Srini Uppalapati from Capital One opened up about Capital One’s core banking systems which they are both transitioning to the Cloud and heavily leveraging serverless offerings. They are migrating their core transactions system in two steps:</p><ol><li>Remove read load from their mainframe systems by adding shims to their mainframe to stream events to databases in the cloud which are then consumed by user facing applications and data scientists.</li><li>Remove the write side from consumer applications, moving core business logic to the cloud.</li></ol><p>They are code complete on step 1. Srini shared their architecture which involves using <strong>AWS Lambda</strong> for processing batches of old data and real-time events coming from their mainframes and pumping the data into <strong>S3</strong> for archiving, <strong>DynamoDB</strong> for consumer applications, and <strong>Redshift</strong> for analysis.</p><p>It is extremely interesting how both at architectural and application levels, using first class events is a powerful way of decoupling logic from state: one way data flow makes things simpler to reason about. At the application level we have ELM architecture and React/Redux as core examples, and now in the cloud we can use cloud functions combined with a core event stream to create functional cloud applications that operate at scale.</p><h4>Enterprises are buying in quickly</h4><p>As mentioned above, Nordstrom and CapitalOne are doing key work in proving out Serverless in the enterprise space. I was surprised how many other big enterprises were mentioned at Serverlessconf, and how they are quickly buying in to serverless technology.</p><p>I think one element that has led them to jump onboard is that many of them are already in the journey of moving to the cloud, and since their cloud provider has serverless offerings, they can drastically reduce their costs by going serverless. For instance, Srini from Capital One shared that they had made significant cost savings for moving to serverless in the cloud. Apparently their transactions hub costs ~$95k per year to run (which is insanely low given their customer base: ~45 million accounts).</p><p>To serve this enterprise appetite, all the cloud providers are also buying in heavily to serverless offerings in addition to AWS. The other cloud providers (Google, Microsoft, and IBM) demo’d their FaaS and serverless orchestration offerings.</p><h4>Modern Agile enabled by Serverless Computing</h4><p>Mike Roberts gave an awesome talk about how serverless lets app developers think more about their customers and less about technical problems. <strong>Modern Agile</strong> (Make People Awesome, Deliver Value Continuously, Make Safety a Prerequisite, Experiment and Learn Rapidly) is easier with serverless, since developers no longer have to solve problems that have been solved a million times before, by many other developers (how to do authentication, how to scale, etc…) and allows them to focus on delivering customer value. Time to go to production can now be measured in hours, not days or weeks. Since</p><blockquote>“Most of our ideas suck” — Jeff Patton</blockquote><p>we should try as many ideas as possible. Thanks to serverless, trying things is cheap!</p><p>In this vein, there were quite a few serverless success stories, not the least of which being Marcia Villalba talking about moving Toons.tv to serverless. They garnered significant cost savings by rethinking their architecture for the cloud. They did all that with a small team of engineers who were unfamiliar with serverless technology in a matter of months. She attributed a lot of their success to weekly workshops to get everyone on the same page about this new technology and proof of concepts for testing out new stuff.</p><h4>Tools are still catching up</h4><p>There was a general consensus that the tooling is lagging behind the cloud provider offerings. Florian Motlik complained extensively about how the AWS cli is immature. Other cloud providers have similar issues, in that they have invested heavily in the serverless runtimes but have neglected the tooling in the areas of deployment, monitoring and local testing.</p><p>This means basically any interaction you have with the cloud providers will be through third party tools, e.g. no one does serverless deployments with the AWS cli, mostly they are using frameworks that abstract the rawness of cloud provider interfaces into a simple application level framework for deployment (see, <a href="https://serverless.com/">the serverless framework</a>, <a href="https://github.com/claudiajs/claudia">claudiaJS</a>, and <a href="https://github.com/Miserlou/Zappa">zappa</a> for starters).</p><p>AWS have released the <strong>Serverless Application Model</strong> (SAM) to try to address this. SAM is an abstraction layer on top of CloudFormation which makes creating Serverless Applications significantly simpler, however, the AWS cli is still immature (in my opinion).</p><p>Monitoring and debugging were also two areas that people felt are lacking in serverless applications, specifically when dealing with event based architectures (“My functions aren’t firing and I can’t tell why!”, and “Why can’t I live debug a running serverless function??”).</p><p>I’m not complaining about the lack of interactive debugging, since it is probably an anti-pattern, but if you are, Microsoft now has live debugging for Azure cloud functions via Visual Studio or Visual Studio Code (although the demo made it look a bit flakey). If you want to avoid interactive debugging, write unit tests.</p><p>Also, all the cloud providers are working hard on monitoring. <strong>Amazon X-Ray</strong> looks like a really solid monitoring option which integrates with the AWS SDK to provide live graphs and analytics of your integration points — a living architecture diagram. This pretty much comes for free if you use the AWS SDK for your service calls.</p><p>Another discussion point was that teams are still searching for the best patterns for developing serverless applications. Traditionally, it is easy to understand the domain of a particular application, because it is contained within a single server instance. You can spin up a local instance, stub any dependencies, and do some local exploratory testing as you are developing. However, with serverless development, often you are tightly coupled to the cloud provider (especially as services get smaller), and it is necessary to actually deploy your application (which might involve multiple cloud components) in order to test whether it is working end to end, even during development. There is a lot of demand for being able to do local exploratory testing, but as yet there aren’t any good patterns for how to isolate the piece of your application under test — it is common to end up with some frankenstein test application where pieces are running both locally and on the cloud. Some options in this area are the Atlassian <a href="https://github.com/atlassian/localstack">AWS Local Stack</a> which provides a fully functioning AWS stack on your local machine. Still, knowing why to use this versus just deploying to a development environment is still something under debate.</p><h4>Serverless Orchestration</h4><p>One of the issues with serverless computing that has been raised is the difficulty of orchestrating large numbers of lambda functions to create data pipelines in the cloud. Using event streams is one way of connecting lambda functions together, however there is often the need for more advanced functionality such as wait conditions or parallelisation.</p><p>Both AWS and Azure demo’d their serverless orchestration offerings: <strong>AWS Step Functions</strong> and <strong>Azure Logic Apps</strong>. Both of them look intriguing.</p><p>Azure Logic Apps has over 250 built in connectors to other Azure products as well as third party products. While I am suspicious of fancy user interfaces, in this case it is backed by a json scripting DSL, and they gave a great demo, linking live tweets to a sentiment analysis service within Microsoft and then producing a live feed of twitter sentiment around a certain topic… all in the space of a 45 minute demo (with some copy and pasted code).</p><p>While I am unsure how these workflow orchestration services will be used in a reliable way (how do you test them and deploy them?), I think they will become a part of the serverless landscape.</p><p>I am interested to see how these workflow services evolve into fully functioning platforms. Why must we script in a json DSL when we could have a better language (think Javascript or Swift) compile down to an ‘AWS Cloud Machine Language’, which is then run directly on some abstracted compute layer. AWS would then manage all the underlying servers and state without any restrictions around maximum run times or memory, where you pay exactly for the usage you need.</p><p>Feel free to share or give me feedback, I’d appreciate any comments or thoughts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f71df7866b2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>