<?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[Utility Warehouse Technology - Medium]]></title>
        <description><![CDATA[Blog proving an insight into the working environment here at Utility Warehouse, information around our opensource projects and events. - Medium]]></description>
        <link>https://medium.com/utility-warehouse-technology?source=rss----66c90bef7dfb---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Utility Warehouse Technology - Medium</title>
            <link>https://medium.com/utility-warehouse-technology?source=rss----66c90bef7dfb---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 15:09:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/utility-warehouse-technology" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[2 Days at GopherCon UK 2019]]></title>
            <link>https://medium.com/utility-warehouse-technology/2-days-at-gophercon-uk-2019-d10758642041?source=rss----66c90bef7dfb---4</link>
            <guid isPermaLink="false">https://medium.com/p/d10758642041</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[gophercon]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[go]]></category>
            <dc:creator><![CDATA[Teiva Harsanyi]]></dc:creator>
            <pubDate>Mon, 23 Sep 2019 07:11:03 GMT</pubDate>
            <atom:updated>2020-12-09T19:19:23.112Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8KoW5YD3dR_VYRsnt0eI8Q.jpeg" /></figure><p>This post is a summary of my 2-day experience at GopherCon UK 2019. I did not attend the first day (workshops only).</p><p><strong>Disclaimer</strong>: In this post, I am expressing my opinions about some talks. Under no circumstances, I am making a value judgment on the speakers.</p><h3>Finding Dependable Go Packages</h3><p>The conference started with a keynote from <a href="https://twitter.com/jqiu25">@JQiu25</a> who’s working at Google in the Go team.</p><p>She described the 3-step process when it comes to working with an external <strong>open-source library</strong>:</p><ul><li>Discovery: Searching and finding a solution for a given problem (via Google, Twitter or whatever).</li><li>Evaluation: Evaluating a solution.</li><li>Maintenance: Contributing back to the project through PR, issues, etc.</li></ul><p>Regarding the <strong>evaluation</strong>, she described the steps that we (should) all do:</p><ul><li>Checking the license (I have to admit I do not always respect this one :).</li><li>Checking the project popularity via the Github stars, forks, etc. But more importantly the number of projects being dependent on it.</li><li>Taking a look at the overall project quality by navigating in the documentation, the tests coverage, the code quality (with tooling or websites like <a href="https://goreportcard.com/">goreportcard</a> for example).</li><li>Verifying the upkeep of the project by looking at the history of the commits, the number of issues, the API stability, etc.</li><li>Checking the transient dependencies brought by the library itself.</li></ul><p>The talk was cool but the big announcement was that the Go team is working on a <strong>solution</strong> to ease the process of choosing a library. Indeed, they intend to create a <strong>portal</strong> to aggregate all of this information.</p><p>You can find more information about this future portal <a href="https://golang.org/s/discovery-updates">here</a> but this should be quite a useful tool. Looking forward to it.</p><h3>Implementing a Search Index Using Machine Learning in Go</h3><p>Then, I went to a talk about <strong>machine learning</strong> applied to <strong>search engines</strong> given by <a href="https://twitter.com/dahernan">@dahernan</a>.</p><p>We saw that the technique used by the standard search engines like Elasticsearch, Redis search, etc. is based on <a href="https://en.wikipedia.org/wiki/Tf%E2%80%93idf">tf-idf</a> (Term Frequency — Inverse Document Frequency). This technique is great for matching keywords but not for capturing the <strong>semantics</strong> of a sentence.</p><p>The example given by the speaker was to search for <em>“</em><a href="https://stackoverflow.com/search?q=does+go+have+generics"><em>does go have generics</em></a><em>”</em> on Stack Overflow. The first result is the <a href="https://stackoverflow.com/questions/9329446/for-each-over-an-array-in-javascript/9329476?r=SearchResults#9329476">For-each over an array in JavaScript?</a> page because it is the one that matches the most the keywords passed in the query. Obviously, this is not what we could expect as a user.</p><p>To be honest, I am not a ML expert (at all). Despite having understood the goals, I did not catch the fundamental concepts brought by the speaker during the talk. So, instead of summarizing something already unclear for me, I will rather give you some references that you could may find interesting.</p><ul><li>Word2vec model: <a href="https://en.wikipedia.org/wiki/Word2vec">https://en.wikipedia.org/wiki/Word2vec</a></li><li>Universal sentence encoder by Google: <a href="https://tfhub.dev/google/universal-sentence-encoder/1">https://tfhub.dev/google/universal-sentence-encoder/1</a></li></ul><h3>Quicksilver: How Cloudflare Controls its Network Across the Planet Using Go</h3><p>The next talk was done by <a href="https://twitter.com/_jimenezrick">@_jimenezrick</a> from Cloudfare about their internal project called Quicksilver.</p><p>In a nutshell, the issue they faced was how to <strong>efficiently</strong> share a configuration across thousands of servers. What efficiently meant in their context was mainly:</p><ul><li>No inconsistencies.</li><li>ACID guarantees.</li><li>Fast replication (again across thousands of replicas).</li><li>Great read performance.</li></ul><p>As a data store, the have chosen <a href="http://www.lmdb.tech/doc/"><strong>LMDB</strong></a>. This is an in-memory key/value store implemented in C. Under the hood, it is based on the <a href="https://en.wikipedia.org/wiki/B%2B_tree">B+ tree data structure</a> that is an alternative of the widely used B-tree.</p><p>According to the speaker, LMDB has good write performance and excellent read performance. Also, it is optimized for small reads (so perfect in the context of a configuration) and using various optimizations like page cache, copy-on-write, etc.</p><p>Yet, LMDB is not distributed. So, it was up to the Cloudfare engineers to implement the <strong>replication</strong>.</p><p>First things first, the integration with LMDB was done with cgo. They claimed to be happy with the small footprint while calling C functions.</p><p>Coming back to our topic, he claimed to be able to replicate a config change across thousands of servers in <strong>less than 1 second</strong> (which is very impressive).</p><p>Each change was a log entry composed of a sequence id, a content and a hash (to guarantee data integrity). Each entry was then replicated using a peer-to-peer approach (if I understood correctly).</p><p>Each server was then hosting a Quicksilver daemon that was their Go wrapper on top of LMDB.</p><p>He also highlighted the importance of observability to ease troubleshooting.</p><p>I enjoyed this talk. I would have like to get more information about whether they had to handle potential conflicts for example. But in only 30 minutes that was simply impossible. Great talk anyway.</p><h3>Go as a Scripting Language in Linux</h3><p>Another talk from a Cloudfare engineer, <a href="https://twitter.com/secumod">@secumod</a>, on how to use Go as a scripting language (because why not?).</p><p>As you may have noticed, Go does not support <strong>shebang</strong> (the first line of a script like #!/bin/sh). This was <a href="https://github.com/golang/go/issues/24118">rejected</a> a couple of times by the Go team.</p><p>Hence, this code does not even compile:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/28db3c54a6fdcfa6d2fca15fcd6ee50f/href">https://medium.com/media/28db3c54a6fdcfa6d2fca15fcd6ee50f/href</a></iframe><p>There is an alternative solution, though:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/97c19d0345fd12678e3b4c1278d2234a/href">https://medium.com/media/97c19d0345fd12678e3b4c1278d2234a/href</a></iframe><p>If you execute this Go file with ./shebang.go, this will print Hello, World!. Yet, if the script exits with a specific code, it will not be caught by the OS (as the standardgo run does not return it).</p><p>According to the speaker, another approach could be to replace go run with <a href="https://github.com/erning/gorun">erning/gorun</a> for example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a3b314303aeb5c1291121fa7f9de031b/href">https://medium.com/media/a3b314303aeb5c1291121fa7f9de031b/href</a></iframe><p>Here, adding the shebang line to reference erning/gorun makes shebang.go executable (if erning/gorun is installed obviously). But again, the code does not compile so using go build for example, will not work.</p><p>The final approach introduced by the speaker was a Kernel function called binfmt_misc. In a nutshell, this is a way to add a custom interpreter for a given file extension.</p><p>With this mechanism, we can directly configure the OS to use the standard go run without having to add any custom shebang line.</p><p>This was a very cool talk and if you want more information, check out the official Cloudfare post:</p><p><a href="https://blog.cloudflare.com/using-go-as-a-scripting-language-in-linux/">Using Go as a scripting language in Linux</a></p><h3>Advanced Testing Techniques</h3><p>Yet, another interesting talk. This time about testing techniques by <a href="https://twitter.com/Caust1c">@Caust1c</a>.</p><p>During the talk, the speaker mentioned a concrete example I found interesting: How do we test a function that depends on the <strong>current time</strong>? For example, this duration function:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/47031609601b4fc4019884cd72f0e3ca/href">https://medium.com/media/47031609601b4fc4019884cd72f0e3ca/href</a></iframe><p>The obvious problem with this implementation is the fact that it depends on an external context (the current time that will obviously vary).</p><p>Personally, what I use to do in this context is to add a now time.Time parameter as an input of this function to make it pure. So instead of calling time.Now().Add(d), I am using now.Add(d). Yet, the impurity is now propagated to the caller as it must pass a value for this parameter.</p><p>The alternative proposed by the speaker was to have a global variable like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0c9b24dde632889e9004f745c0aa4b82/href">https://medium.com/media/0c9b24dde632889e9004f745c0aa4b82/href</a></iframe><p>Here now is a func() time.Time.</p><p>Therefore, if we want to test it, we could do that:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1fdea8859ec44f0a21fa654c2a393e3c/href">https://medium.com/media/1fdea8859ec44f0a21fa654c2a393e3c/href</a></iframe><p>First, we need to make sure the now global variable is modified only in the scope of the test (line 2 and 3).</p><p>Then, we assigned it to whatever value we need to test the function behavior.</p><p>This trick is still not perfect, though. For example, it prevents our tests to be executed in parallel. I found the technique very interesting nonetheless.</p><p>Another topic brought by the speaker was <strong>interfaces</strong>:</p><blockquote>As a library author, don’t export interfaces without a strong case.</blockquote><blockquote>As a program author, create interfaces for external dependencies.</blockquote><p>Indeed, we may expect from libraries to expose interfaces to be able to mock them. According to the speaker, this should not be automatic.</p><p>He took the example of <a href="https://github.com/Shopify/sarama">Sarama</a> that exposes more than 20 interfaces leading to confusion for the users. Meanwhile, as a library author, adding a method to an existing interface breaks the backward compatibility as each implementation (including the mocks) must also be changed.</p><p>Instead, his recommendation was to create interfaces for our <strong>external dependencies</strong>. For example, creating an interface to encompass the integration with a DB.</p><p>First, this adds a level of abstraction allowing us to not change our code depending on the implementation (even though finding the right level of abstraction can be quite a challenge sometimes in my opinion).</p><p>Then, if we wrap an external dependency within an interface, we can mock it. In this case, we don’t depend on an external interface and we are in control of what must be mocked.</p><p>Moreover, he proposed a methodology to improve our tests:</p><ul><li>Write a single implementation</li><li>Test it (doing some integration tests with a DB for example)</li><li>Abstract it using interfaces</li><li>Write other implementations of this interface (is this is needed)</li><li>Refactor the tests</li></ul><p>If we need to test two interface implementations, we can then write a common function taking an interface as input and implementing the testing logic. This function would be then called from the two tests.</p><p>Last but not least, the speaker did a focus on the httptest package and how useful it was. Especially when we have to expose an HTTP endpoint.</p><p>I don’t know whether this was the best talk I attended. I would have been glad if this could have last longer than 30 minutes. Yet, it was the one that made me think the most once finished (which is obviously a great thing).</p><p>A follow-up by the speaker:</p><p><a href="https://segment.com/blog/5-advanced-testing-techniques-in-go/">5 advanced testing techniques in Go</a></p><h3>Going Infinite: Handling 1 Million Websocket Connections in Go</h3><p>The next talk done by <a href="https://twitter.com/eran_yanay">@eran_yanay</a> was on how to handle <strong>a million</strong> of concurrent Websocket connections.</p><p>He started first with a <em>naive</em> implementation using the standard library and http.Serve triggering <a href="https://github.com/golang/go/blob/5498fa90e9921193be11c6e6a9e017a53c0e1588/src/net/http/server.go#L2927">one goroutine per request</a>. He showed that this approach does not scale really well as it would require 20GB of memory to handle 1M connections (using pprof for the profiling).</p><p>The first memory optimization was on the number of created goroutines. He proposed to rather use async I/O and <strong>epoll</strong>.</p><p>The second optimization was to work on <strong>buffer allocations</strong>. In his demo, he switched to <a href="https://github.com/gobwas/ws">gobwas/ws</a> library that allows reusing the I/O buffers between the connections (among other cool features like zero-copy, a low-level API for implementing our logic of packet handling, etc.)</p><p>Also, he discussed the OS limits that we would face if we had to handle 1M connections:</p><ul><li>Too many open files problem: as every resource in Linux is a file descriptor (hence a connection is also a file descriptor), this needs to be tuned using <a href="https://ss64.com/bash/ulimit.html">ulimit</a>.</li><li>A lack of capacity in the Linux <a href="https://manpages.debian.org/testing/conntrack/conntrack.8.en.html">conntrack table</a> that also needs to be tuned.</li></ul><p>After all these optimizations, he reduced the memory footprint of handling 1M connections from 20GB to 600MB (97%).</p><p>This talk was really cool and you can find his Github repository here:</p><p><a href="https://github.com/eranyanay/1m-go-websockets">eranyanay/1m-go-websockets</a></p><h3>Productionise any Application in Kubernetes</h3><p>Then, I attended a talk given by <a href="https://twitter.com/opsdavy">@OpsDavy</a> about some real-world Kubernetes patterns:</p><ul><li>The sidecar pattern: Having a helper container beside our application container (the pattern used by service meshes).</li><li>The adapter pattern: Normalizing application outputs (for example to get the logs produced and integrate them in whatever solution).</li><li>The ambassador pattern: Acting as a proxy to the external world for accessing databases etc.</li></ul><p>I would say I have not been particularly captivated by this talk. Despite being very well presented, that was simply not the kind of talk I was expecting at GopherCon. It was too general and not really related to the Go programming language itself.</p><h3>Impossible Go!</h3><p>The last talk of the first day was done by <a href="https://twitter.com/gautamrege">@gautamrege</a>.</p><p>It was a (surprising) mix of Go snippets where we had to find the expected outputs for example and entrepreneurship lessons.</p><p>It’s really difficult to write about this talk as I will not list here all the examples. Most of them were cool but not that important to know in real-world situations in my opinion. Except maybe for the <a href="https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis">functional options</a> pattern that we can find in libraries like the gRPC client or RxGo for example.</p><p>Yet, it was dynamic and entertaining. I would say the perfect combination that you would expect for the last talk of a long day :)</p><h3>Building a net.Conn Type From the Ground Up</h3><p>I started my second day with a talk from <a href="https://twitter.com/mdlayher">@mdlayher</a> on how to build a custom net.Conn.</p><p>The use case was to implement a specific socket type called <a href="http://man7.org/linux/man-pages/man7/vsock.7.html">vsock</a> that is used for communication between a hypervisor and its virtual machines.</p><p>We started with an introduction on net.Conn and net.Listener with some common examples of a TCP client a TCP server. As these two are interfaces, we can decide to implement them for our use case.</p><p>We dug into the actual Go vsock implementation by seeing the usages of the the unix package for standard calls like Connect, Bind, Listen etc. But also how to create a non-blocking file descriptor using SetNonBlock. Moreover, we saw an example of why epoll was (again) a nice alternative to the standard blocking I/O and how to use it.</p><p>What I really liked in this talk was to understand how flexible it was to base the solution on net.Conn and net.Listener.</p><p>Indeed, once the implementation was finished, we saw how easy it was to make vsock available over HTTP or gRPC for example. As these libraries are accepting net.Conn and net.Listener as input, it was not requiring many efforts.</p><p>This reminds me of io.Reader and how a powerful abstraction can lead to <strong>great flexibility</strong>.</p><p><a href="https://github.com/mdlayher/vsock">mdlayher/vsock</a></p><h3>Optimizing Go Code Without a Blindfold</h3><p>The next talk by <a href="https://twitter.com/mvdan_">@mvdan_</a> was maybe the one I was expecting the most (being in love with everything related to optimizations).</p><p>It started with the usual recommendations to check first whether an application is slow before trying to optimize it (premature optimization is the root of all evil, isn’t it?).</p><p>Then, the speaker introduces two tools:</p><ul><li><a href="https://godoc.org/golang.org/x/tools/cmd/benchcmp">benchcmp</a>: Used to compare changes between different benchmark executions.</li><li><a href="https://godoc.org/golang.org/x/perf/cmd/benchstat">benchstat</a>: Used to measure the <strong>variance</strong> between multiple benchmark executions.</li></ul><p>He mentioned that when we execute a benchmark, we should have a variance close to <strong>1%</strong> but not more.</p><p>One obvious action to act on the variance when running a local benchmark is to close the applications like Slack, our music player, etc. The second action he proposed (that is working only on Linux, unfortunately) is to use a tool called <a href="https://github.com/aclements/perflock">perflock</a>. It allows running a benchmark at a given percentage of the total CPU speed. This is a way to avoid the loss of performance that we may face when we run a series of benchmarks at 100% of the CPU.</p><p>Then, he discussed a couple of interesting points:</p><ul><li>The -gcflags=&#39;-m -m&#39; option to understand in details the optimizations done by the compiler (inlining, escape analysis, etc.).</li><li>Bounds check optimizations (which is also described by William Kennedy <a href="https://www.ardanlabs.com/blog/2018/04/bounds-check-elimination-in-go.html">here</a>).</li><li>Destroying a large map should be done by deleting all the keys rather than simply setting the map reference to nil.</li></ul><p>Then, he did a live coding that went… really bad :(</p><p>I’m not going to judge it as it’s already difficult to be a public speaker so trying a live coding in the meantime is <strong>brave</strong> (and it could also be sometimes interesting to see a live process of debugging). Yet, to be honest, I did not understand at all the context of the live coding, what we wanted to solve, etc.</p><p>So, that was not a very nice ending in my opinion but overall, the talk was still really cool and I enjoyed it.</p><h3>Lock-free Observations for Prometheus Histograms</h3><p>The next talk was done by <a href="https://github.com/beorn7">@beorn7</a>, a famous Go speaker working at Prometheus.</p><p>The use case was how to handle <strong>histograms</strong> in the Prometheus Go client library. In a nutshell, each observation required to increment <strong>3 different counters</strong>. On the other hand, the observer has to get a <strong>consistent</strong> view of these counters.</p><p>He needed something with better throughput than the traditional Go channels so his first idea was to use sync.Mutex or sync.RWMutex on both sides (read and write). Yet, it did not allow him to achieve what he was expecting in terms of performance. Regarding sync.RWMutex, he said that it should be used when we have <strong>many reads</strong> but <strong>few writes</strong>. His use case was simply the opposite.</p><p>He kept the sync.Mutex on the write side but he tried to write a lock-free implementation on the read side.</p><p>The naive approach was to increment each of these counters independently. Yet, as it was not possible to increment them atomically, this went wrong. One interesting point he mentioned: the data race detector does not work with the atomic package. His recommendation was to be careful when we are in this situation then.</p><p>He ended up with a (brilliant) solution that you can find <a href="https://github.com/prometheus/client_golang/blob/35ef65db672a76effef5f0808decd0484a636f3f/prometheus/histogram.go#L263-L353">here</a>. It is a mixed approach of atomic calls and bit vectors to handle multiple changes atomically. He also explained why he had to use runtime.Gosched within a loop to make sure this would not generate too much CPU load.</p><p>You can check out his slides <a href="https://docs.google.com/presentation/d/1CzFpRKFcr5GbZeciGZ8Dc2Q09jcam-SCsinPVA0ZJCE/edit#slide=id.g4388c5dcc1_0_191">here</a>. It was such a brilliant talk and I will check closely the solution later on as there are many things to learn from it.</p><h3>From Chaos to Domain-Driven Design</h3><p>Then, I attended a talk done by <a href="https://twitter.com/joanjan14">@joanjan14</a> on how to use DDD in the context of a Go project.</p><p>He started with an example of a flat Go project with all the files in the same package. He explained the problems with this approach like tight coupling, testing, lack of readability, etc.</p><p>He described how DDD could be a solution to structure an application (by keeping aside the domain and the application logic for example). He also gave an introduction about the basic concepts of DDD and the impacts on the development side (how to handle entities vs value object for example).</p><p>I would say that DDD being very dear to my heart, I was expecting way more details. But again, this is just my opinion and overall, it was a nice introduction and a nice talk.</p><h3>Fun With Pointers</h3><p>Then, a talk by <a href="https://twitter.com/danicat83">@danicat83</a> on the Go pointers.</p><p>She started with a nice introduction on why some people are <strong>afraid</strong> of pointers. She also explained why pointers in Go are not that complex compared to other languages (cleaner syntax, nil default value, etc.).</p><p>Then, we have seen the benefits of using the <strong>stack vs the heap</strong> and also a bunch of examples to understand what is really a pointer.</p><p>In summary, we should only use pointers in one of these scenarios:</p><ul><li>Passing data by reference (because a structure must be shared for example).</li><li>Minimizing data copy which may or may not have a positive performance impact (I would recommend you <a href="https://www.youtube.com/watch?v=ZMZpH4yT7M0">this presentation</a> in addition).</li><li>Being able to make a difference between zero value and missing value.</li><li>Using low-level interfaces.</li></ul><p>The talk was cool. I did not learn much things personally. But if I had attended this talk a couple of years ago, it would have prevented me from doing some common mistakes.</p><h3>Tackling Contention: The Monsters Inside the ‘sync.Locker’</h3><p>Last but not least, the talk I expected the most (I know I already said that) by <a href="https://twitter.com/empijei">@empijei</a>.</p><p>First, he defined what does contention mean:</p><blockquote>The competition between different processes to acquire a resource.</blockquote><p>He also presented pprof and the -trace testing option in details and how to use them to detect bottlenecks.</p><p>According to the speaker, reducing the contention can be tackled from two different angles:</p><ul><li>Changing the primitives</li><li>Or changing the algorithm</li></ul><p>As a nice example, he presented the sharding pattern applied to the standard Go concurrency primitives by using multiple channels.</p><p>Then, we saw a nice example of <strong>false sharing</strong> where updating a []uint64 was actually faster than updating a []uint8 and how to prevent it from using padding. We saw that this could even happen while acquiring a read lock on a sync.RWMutex as it requires a write on a counter.</p><p>The talk concluded that for any performance problems we have to:</p><ul><li>Measure the current implementation (using pprof, trace or whatever).</li><li>Understand the problem.</li><li>Fix it by applying some patterns (sharding, padding etc.).</li><li>Measure it again.</li></ul><p>I enjoyed this talk. It was dynamic, easy to follow with great examples. A perfect ending.</p><p>The slides are <a href="https://docs.google.com/presentation/d/13Hb8iQNpltRoz4Og9rHU73e9w-GGiail-g5G_bx8Pjs/edit#slide=id.g51978355ad_0_72">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/192/1*Y9Gm4W5rGboaalEE5hZyhQ.png" /></figure><p>As a conclusion, I would say that I enjoyed my experience at GopherCon UK 2019. Generally, the talks were really interesting and I learned a lot of stuff.</p><p>The place was maybe too small in regards to the number of attendees and it would have been nice to see more woman speakers but overall, this was a great experience.</p><p>Thanks to my company Utility Warehouse for sending me to GopherCon. We are full of Gophers so if you are interested, please check at <a href="https://uw.engineering/">https://uw.engineering/</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ni3QlYv1zjIZfJkxFYTzmA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/128/1*8kh8D7Gu7uPHxI0aaqGrZA.png" /><figcaption>Follow me on Twitter <a href="https://twitter.com/teivah">@teivah</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d10758642041" width="1" height="1" alt=""><hr><p><a href="https://medium.com/utility-warehouse-technology/2-days-at-gophercon-uk-2019-d10758642041">2 Days at GopherCon UK 2019</a> was originally published in <a href="https://medium.com/utility-warehouse-technology">Utility Warehouse Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chunking large messages with gRPC]]></title>
            <link>https://medium.com/utility-warehouse-technology/chunking-large-messages-with-grpc-5c554092ec3d?source=rss----66c90bef7dfb---4</link>
            <guid isPermaLink="false">https://medium.com/p/5c554092ec3d</guid>
            <category><![CDATA[streaming]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[grpc]]></category>
            <category><![CDATA[golang]]></category>
            <dc:creator><![CDATA[Johan Brandhorst]]></dc:creator>
            <pubDate>Thu, 19 Sep 2019 09:44:05 GMT</pubDate>
            <atom:updated>2019-09-19T09:44:05.351Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*m3NbifClQRUJ5SYJ" /><figcaption>Photo by <a href="https://unsplash.com/@an_ku_sh?utm_source=medium&amp;utm_medium=referral">Ankush Minda</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>One of the gotchas of using gRPC is that it was not designed to transport large messages in one chunk. The default max message size is <a href="https://github.com/grpc/grpc-java/issues/1676#issuecomment-229809402">slightly arbitrarily set at 4MB</a> today, and while it is possible to configure, that kind of behaviour might lead to a slippery slope scenario of ever increasing max message sizes. So what do we do when the message size is too large? We chunk the data into smaller pieces and stream it, using the gRPC streaming methods, naturally.</p><p>TL;DR? Code is <a href="https://github.com/johanbrandhorst/chunker">available on my github</a>.</p><h3>Server-side streaming</h3><p>We’ll define a protofile with a single service exposing a single method returning a streamed message type.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aed2c0bb0984f4e572c4d5bc07a38dc2/href">https://medium.com/media/aed2c0bb0984f4e572c4d5bc07a38dc2/href</a></iframe><p>Then we implement the server. I thought I’d be clever and show that you don’t necessarily have to implement the gRPC interface on a struct. The recommended chunk size for streamed messages <a href="https://github.com/grpc/grpc.github.io/issues/371">appears to be 16–64KiB</a>. We’ll go for 64KiB today.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/32649877926273942743ac4f339367e3/href">https://medium.com/media/32649877926273942743ac4f339367e3/href</a></iframe><p>We wrap this in a gRPC server and host it:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/84cab60bab5eafbdf26eb692eeb346d5/href">https://medium.com/media/84cab60bab5eafbdf26eb692eeb346d5/href</a></iframe><p>This is all the server code. And this is how you would consume it:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/75f1e74fdbe62a640a634134488d3559/href">https://medium.com/media/75f1e74fdbe62a640a634134488d3559/href</a></iframe><p>That’s all there is to it. Obviously the chunking can be done on anything that can be marshalled to a byte slice, including other proto messages.</p><p>If you enjoyed this blog post, have any questions or input, don’t hesitate to contact me on <a href="https://twitter.com/JohanBrandhorst">@johanbrandhorst</a> or under jbrandhorst on the Gophers Slack. I&#39;d love to hear your thoughts!</p><p><em>Originally published at </em><a href="https://jbrandhorst.com/post/grpc-binary-blob-stream/"><em>https://jbrandhorst.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c554092ec3d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/utility-warehouse-technology/chunking-large-messages-with-grpc-5c554092ec3d">Chunking large messages with gRPC</a> was originally published in <a href="https://medium.com/utility-warehouse-technology">Utility Warehouse Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using gRPC with JSON]]></title>
            <link>https://medium.com/utility-warehouse-technology/using-grpc-with-json-64876e0a3279?source=rss----66c90bef7dfb---4</link>
            <guid isPermaLink="false">https://medium.com/p/64876e0a3279</guid>
            <category><![CDATA[grpc]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[json]]></category>
            <category><![CDATA[golang]]></category>
            <dc:creator><![CDATA[Johan Brandhorst]]></dc:creator>
            <pubDate>Thu, 19 Sep 2019 09:05:22 GMT</pubDate>
            <atom:updated>2019-09-19T09:06:02.099Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jpN5Qwlg1O2whmXb" /><figcaption>Photo by <a href="https://unsplash.com/@miops?utm_source=medium&amp;utm_medium=referral">MIOPS Trigger</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>It’s often said that gRPC is tied to the <a href="https://developers.google.com/protocol-buffers/">Google Protocol Buffers</a> payload format, but this is not strictly true. While the <em>default</em> format for gRPC payloads is Protobuf, the gRPC-Go implementation exposes a<a href="https://godoc.org/google.golang.org/grpc/encoding#Codec">Codec interface</a> which allows <em>arbitrary</em> payload encoding. This could be used for all kinds of things, like your own binary format, using <a href="https://grpc.io/blog/flatbuffers">flatbuffers</a>, or, as we shall see today, using JSON for requests and responses.</p><h3>Server setup</h3><p>I’ve created <a href="https://github.com/johanbrandhorst/grpc-json-example">an example repo</a> with <a href="https://github.com/johanbrandhorst/grpc-json-example/tree/master/codec/json.go">an implementation</a> of grpc/encoding.Codec for JSON payloads. Server setup is as simple importing the package;</p><pre>import _ &quot;github.com/johanbrandhorst/grpc-json-example/codec&quot;</pre><p>This registers the JSON Codec under the content subtype json, which we&#39;ll see becomes important to remember later.</p><h3>Request examples</h3><h3>gRPC client</h3><p>Using a gRPC Client, simply initiate using the correct content-subtype as a grpc.DialOption:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/39f2ff1c076e38aae9263afbf52df4a8/href">https://medium.com/media/39f2ff1c076e38aae9263afbf52df4a8/href</a></iframe><p>The example repo includes <a href="https://github.com/johanbrandhorst/grpc-json-example/tree/master/cmd/client/main.go">a client</a> with a full example.</p><h3>cURL</h3><p>More interestingly, it’s now possible to basically write our requests (and read responses) using just cURL! Some request examples:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c2b81aae04af558a1dd5aa9849f8d928/href">https://medium.com/media/c2b81aae04af558a1dd5aa9849f8d928/href</a></iframe><h4>Explanation</h4><p>Using cURL to send requests requires manually adding the <a href="https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests">gRPC HTTP2 message payload header</a> to the payload:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/99be5d04c57c1e5a8dcb83ebb152c891/href">https://medium.com/media/99be5d04c57c1e5a8dcb83ebb152c891/href</a></iframe><p>Headers must include TE and the correct Content-Type:</p><pre>-H &quot;Content-Type: application/grpc+json&quot; -H &quot;TE:trailers&quot;</pre><p>The string after application/grpc+ in the Content-Type header must match the Name() of the codec registered in the server. This is called the <em>content subtype</em>.</p><p>The endpoint must match the name of the name of the proto package, the service and finally the method:</p><pre><a href="https://localhost:10000/example.UserService/AddUser">https://localhost:10000/example.UserService/AddUser</a></pre><p>The responses are prefixed by the same header as the requests:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/85076cdea97dab9c421659eabb088819/href">https://medium.com/media/85076cdea97dab9c421659eabb088819/href</a></iframe><h3>Conclusion</h3><p>We’ve shown that we can easily use JSON payloads with gRPC, even allowing us to send cURL requests with JSON payloads directly to our gRPC servers, no proxies, no grpc-gateway, no setup except for importing a package necessary.</p><p>If you enjoyed this blog post, have any questions or input, don’t hesitate to contact me on <a href="https://twitter.com/JohanBrandhorst">@johanbrandhorst</a> or under jbrandhorst on the Gophers Slack. I&#39;d love to hear your thoughts!</p><p><em>Originally published at </em><a href="https://jbrandhorst.com/post/grpc-json/"><em>https://jbrandhorst.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64876e0a3279" width="1" height="1" alt=""><hr><p><a href="https://medium.com/utility-warehouse-technology/using-grpc-with-json-64876e0a3279">Using gRPC with JSON</a> was originally published in <a href="https://medium.com/utility-warehouse-technology">Utility Warehouse Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[gRPC Client Authentication]]></title>
            <link>https://medium.com/utility-warehouse-technology/grpc-client-authentication-bf899ac8ada8?source=rss----66c90bef7dfb---4</link>
            <guid isPermaLink="false">https://medium.com/p/bf899ac8ada8</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[grpc]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[golang]]></category>
            <dc:creator><![CDATA[Johan Brandhorst]]></dc:creator>
            <pubDate>Thu, 19 Sep 2019 08:32:22 GMT</pubDate>
            <atom:updated>2019-09-19T08:27:57.993Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6ENHczHVlLFc9kKu" /><figcaption>Photo by <a href="https://unsplash.com/@cytonn_photography?utm_source=medium&amp;utm_medium=referral">Cytonn Photography</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Best practices for performing client authentication with gRPC is a question that comes up again and again, so I thought I’d dive into a few different methods for performing authentication, using the tools provided by the Go gRPC packages.</p><p>Today we’ll explore 3 methods of authentication:</p><ol><li>TLS Client certificate authentication</li><li>Token Header authentication</li><li>HTTP Basic authentication</li></ol><p>For the TL:DR; check the <a href="https://github.com/johanbrandhorst/grpc-auth-example">example repo</a>.</p><h3>TLS Client Certificate Authentication</h3><p>The first type of authentication uses TLS Certificate subjects to validate that the correct client is connecting. This, of course, relies on the issue certificate authority only issuing certificates with the correct subject to the correct service, but that is outside the scope of this repository.</p><p>On the client side, we create a certificate with the appropriate subject:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ece86b2d5f2765ee3641b7a10fb30d2a/href">https://medium.com/media/ece86b2d5f2765ee3641b7a10fb30d2a/href</a></iframe><p>We then use the certificate for transport security when dialling:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/18aba6811ee24989cf415e0556680dc0/href">https://medium.com/media/18aba6811ee24989cf415e0556680dc0/href</a></iframe><p>On the server side, we use the <a href="https://godoc.org/google.golang.org/grpc/peer">grpc/peer</a> package to find the subject of the client side certificate:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8864148742985a344b5a653770c480d5/href">https://medium.com/media/8864148742985a344b5a653770c480d5/href</a></iframe><p>This of course requires the server to verify incoming client certs, so remember to configure the appropriate tls.Config.ClientAuth value. In the example repo, we use tls.VerifyClientCertIfGiven to allow clients both with and without certificates.</p><h3>Token based authentication</h3><p>Secondly we’ve got token based authentication, which sends the authentication details in the request headers. On the client side this means implementing <a href="https://godoc.org/google.golang.org/grpc/credentials#PerRPCCredentials">grpc/credentials.PerRPCCredentials</a>. This example uses a static token, but you could implement some sort of automatic token renewal based on the existing token in GetRequestMetadata.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/85b7c7ae526f4b9f6f377dc8fb7e6a9f/href">https://medium.com/media/85b7c7ae526f4b9f6f377dc8fb7e6a9f/href</a></iframe><p>We then use the tokenAuth struct when dialling:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/316c4fc61210c4f451233043ec9a6cbc/href">https://medium.com/media/316c4fc61210c4f451233043ec9a6cbc/href</a></iframe><p>On the server side, we simply check the header for the token value, but, of course, if you were using a real token you might want to parse it and perform some validation as well.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7453105a705fe44e45cd5cd69d6ecac0/href">https://medium.com/media/7453105a705fe44e45cd5cd69d6ecac0/href</a></iframe><h3>HTTP Basic authentication</h3><p>Much like the token based authentication, this uses PerRPCCredentials, with the only difference being the contents of the header:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/663569d4e81557c799c9d737e2070bd5/href">https://medium.com/media/663569d4e81557c799c9d737e2070bd5/href</a></iframe><p>And dialling:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f9e83d280129f54214424c25f6a67264/href">https://medium.com/media/f9e83d280129f54214424c25f6a67264/href</a></iframe><p>The server has to parse the the header:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/769aaa38a46f02c967f5873912657705/href">https://medium.com/media/769aaa38a46f02c967f5873912657705/href</a></iframe><h3>Conclusion</h3><p>We’ve seen 3 different methods of authenticating a gRPC client with a gRPC server. My personal preference is to use TLS client certificate authentication when possible, but this requires quite a bit of external setup. Check out <a href="https://jbrandhorst.com/post/certify/">my Certify library</a> to make that kind of thing easier.</p><p>If you enjoyed this blog post, have any questions or input, don’t hesitate to contact me on <a href="https://twitter.com/JohanBrandhorst">@johanbrandhorst</a> or under jbrandhorst on the Gophers Slack. I&#39;d love to hear your thoughts!</p><p><em>Originally published at </em><a href="https://jbrandhorst.com/post/grpc-auth/"><em>https://jbrandhorst.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf899ac8ada8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/utility-warehouse-technology/grpc-client-authentication-bf899ac8ada8">gRPC Client Authentication</a> was originally published in <a href="https://medium.com/utility-warehouse-technology">Utility Warehouse Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advanced gRPC Error Usage]]></title>
            <link>https://medium.com/utility-warehouse-technology/advanced-grpc-error-usage-1b37398f0ff4?source=rss----66c90bef7dfb---4</link>
            <guid isPermaLink="false">https://medium.com/p/1b37398f0ff4</guid>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[grpc]]></category>
            <dc:creator><![CDATA[Johan Brandhorst]]></dc:creator>
            <pubDate>Wed, 18 Sep 2019 12:03:29 GMT</pubDate>
            <atom:updated>2019-09-18T12:13:25.984Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Errors happen in any application. How do use them with gRPC?" src="https://cdn-images-1.medium.com/max/1024/0*y-yC9AB6koIrUVwI" /><figcaption>Photo by <a href="https://unsplash.com/@rojekilian?utm_source=medium&amp;utm_medium=referral">Sarah Kilian</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>How to best handle errors in Go is a divisive issue, leading to opinion pieces by illustrious bloggers such as <a href="https://dave.cheney.net/tag/error-handling">Dave Cheney</a>, the commander himself <a href="https://commandcenter.blogspot.co.uk/2017/12/error-handling-in-upspin.html">Rob Pike</a> as well as the <a href="https://blog.golang.org/errors-are-values">official Go blog</a>. I’m not going to tackle those opinions here, instead I’m going to talk about best practices for errors when using gRPC and Go.</p><h3>The gRPC Status package</h3><p>The Go gRPC implementation has a <a href="https://godoc.org/google.golang.org/grpc/status">status package</a> which exposes a nice simple interface for creating rich gRPC errors.</p><p>For example, lets say you have a method that takes an ID as a parameter, but the requested ID did not exist in your store. You could just return the error your store backend returned, but a good gRPC server should make use of the gRPC error codes. In this case, codes.NotFound is the appropriate code.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5558d8dd9f1a72f2bd6d9bd65deafedd/href">https://medium.com/media/5558d8dd9f1a72f2bd6d9bd65deafedd/href</a></iframe><p>To find which code you should be returning when, make sure to read <a href="https://godoc.org/google.golang.org/grpc/codes">the extensive documentation for the grpc/codes package</a>. These errors translate the code and message to the grpc-message and grpc-status trailers respectively in the <a href="https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#responses">gRPC HTTP2 protocol spec</a>.</p><p>Extracting the message and code in a gRPC client is also done through the status package, with the <a href="https://godoc.org/google.golang.org/grpc/status#FromError">Status.FromError</a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d0f80b755d8826f4bccc47e01828adec/href">https://medium.com/media/d0f80b755d8826f4bccc47e01828adec/href</a></iframe><p>The Go gRPC implementation <a href="https://github.com/grpc/grpc-go/pull/1782">guarantees</a> that all errors returned from RPC calls are status type errors. Because of this, you can usually use the<a href="https://godoc.org/google.golang.org/grpc/status#Convert">status.Convert</a> method instead.</p><h3>Advanced usage</h3><p>The status package also comes with the power to attach <em>arbitrary</em> protobuf metadata to your errors, courtesy of the protobuf Any message type and the<a href="https://godoc.org/google.golang.org/grpc/status#Status.WithDetails">Status.WithDetails</a> method.</p><p>For example, if a request is provided with a parameter that is incorrect regardless of the state of the system, you may want to return more information about which field caused the error and why. You could stuff all of this into the error message, but it is not meant for long messages. Here’s an example of using the <a href="https://godoc.org/google.golang.org/genproto/googleapis/rpc/errdetails">errdetails package</a> to attach extra error metadata to an error:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/062e4791cd5436e4bda2a83abd558493/href">https://medium.com/media/062e4791cd5436e4bda2a83abd558493/href</a></iframe><p>In order to extract these errors on the other side, for printing a nicely formatted error message to the user for example, you can use the <a href="https://godoc.org/google.golang.org/grpc/status#Status.Details">status.Details</a> method:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f87ec53ff208cb45090bdf488295a362/href">https://medium.com/media/f87ec53ff208cb45090bdf488295a362/href</a></iframe><h3>Note about using GoGo Protobuf with status</h3><p>While investigating <a href="https://github.com/gogo/grpc-example/issues/9">another issue</a> relating to gogo/protobuf and the grpc-gateway, github user <a href="https://github.com/glerchundi">@glerchundi</a> <a href="https://github.com/grpc-ecosystem/grpc-gateway/pull/529#issuecomment-376822766">pointed out</a> that gogo/protobuf types could potentially circumvent issues with golang/protobuf/ptypes referring to its own registry by implementing XXX_MessageName() string on its types. This turned out to fix all compatibility issues with grpc/status, so gogo/protobuf was quickly updated to support this function in gogo/protobuf/types and gogo/googleapis. As a result of this, gogo/googleapis types now work transparently with grpc/status.</p><p>The<a href="https://github.com/gogo/status">gogo/status</a> package is necessary if you want to use types that only register with gogo/protobuf and don&#39;t make use of either the goproto_registration or messagename GoGo Protobuf extensions.</p><h3>Further reading</h3><p>The <a href="https://cloud.google.com/apis/design">Google API Design Guide</a> has <a href="https://cloud.google.com/apis/design/errors">a section on errors</a> with a thorough discussion of the Status Protobuf type which I encourage you to read if you want to learn more about general protobuf API error handling.</p><p>If you enjoyed this blog post, have any questions or input, don’t hesitate to contact me on <a href="https://twitter.com/JohanBrandhorst">@johanbrandhorst</a> or under jbrandhorst on the Gophers Slack. I&#39;d love to hear your thoughts!</p><p><em>Originally published at </em><a href="https://jbrandhorst.com/post/grpc-errors"><em>https://jbrandhorst.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b37398f0ff4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/utility-warehouse-technology/advanced-grpc-error-usage-1b37398f0ff4">Advanced gRPC Error Usage</a> was originally published in <a href="https://medium.com/utility-warehouse-technology">Utility Warehouse Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quality or quantity: Why not both?]]></title>
            <link>https://medium.com/utility-warehouse-technology/quality-or-quantity-why-not-both-d911b07788c8?source=rss----66c90bef7dfb---4</link>
            <guid isPermaLink="false">https://medium.com/p/d911b07788c8</guid>
            <category><![CDATA[hiring]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[event-sourcing]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[engineering-culture]]></category>
            <dc:creator><![CDATA[Steven Smith]]></dc:creator>
            <pubDate>Wed, 18 Sep 2019 11:14:49 GMT</pubDate>
            <atom:updated>2018-05-10T16:47:54.885Z</atom:updated>
            <content:encoded><![CDATA[<p>Those who have read the articles I’ve written recently will know we are going through a big recruitment drive to support the ongoing transformation here at Utility Warehouse. Its exciting to welcome new faces into the team and the additions certainly make us stronger, but there are a number of challenges that come with hiring lots of people in a short space of time, especially when historically it hasn’t been the case.</p><p>This is one of the reasons we are celebrating the fact we have already managed to hire 13 people this year. We are committed to hiring significant number of engineers this year, but only those of the right quality. We want a world class engineering team here at Utility Warehouse that will ensure we are all successful together and we are certainly taking the right steps to getting there so far.</p><p>I was given the remit when I started; to do whatever it took to hire the right people. However, it is more than that and also to ensure we provide an innovative modern working environment so that the team can focus on solving the complex business problems with freedom. We’re going to be more involved in the tech community with our opensource labs and celebrate our teams successes. We believe we have something great to offer people looking for somewhere where they will be able to have impact and want to be recognised as a great place for Engineers and Product people to work.</p><blockquote>“it’s often said that 10’s hire 10’s and 9’s hire 8’s and so on and we agree”</blockquote><p>The trade off between meeting deadlines and growth can often lead businesses into frantic hiring with the sacrifice of quality which can ultimately have a much higher cost to the business. This is not something we are doing due to our strong company culture, of which we believe is a key part of what makes life at the Pig special, and that we are very protective of here.</p><p>Having spent the past couple of years working together to lay the foundations for this transformation, we appreciate the need to scale up from the lean team that has taken us this far. We believe in only hiring people who make us stronger. It’s often said that 10’s hire 10’s and 9’s hire 8’s and so on and we agree, hence why we have a tough but streamlined interview process. Our culture can be described as one that encourages learning and innovation (you rarely feel like the smartest person in the room), and there is always someone that can teach you something new. We invest in people and our leaders are more like mentors to their teams and others.</p><p>When building engineering teams the challenge of hiring permanent vs contract can often lead to the route of freelancers but for us, that is not the direction we want to go, especially having seen other household names struggle through digital transformations with consistent changes in technical leadership. We’re committed to only hiring permanent employees, building an extremely capable group of problem solvers who understand our business and its values and are committed to growing our business over coming years, building tools and solutions to dramatically improve our customer user experience.</p><p>Another thing to consider when scaling teams is the impact of new hires on the existing team and their projects. It is not practical to simply drop new hires into existing teams at will without consideration. The introduction of new team members ultimately causes disruption to the dynamic and harmony, so you have to weigh up when, and who, would benefit the team, in line with project roadmaps and deadlines.</p><blockquote>“No one wants to be seen as just another number brought in to ship code continuously whilst a stream of new bodies come in and the team loses its identity and culture”</blockquote><p>We’ve been looking at our on boarding process and how we welcome new starters so they feel part of the team from their first day. We’ve introduced first week welcome breakfasts and lunches with different areas of the business so they can gain insight into the wider business and help integrate seamlessly allowing them to focus on their work. We believe feedback is important too, with regular one to ones with your line manager, ensuring that we’re setting people up for success with all the necessary support available to you.</p><blockquote>“We are all working together to make things simpler to enable our partners to deliver the best possible customer experience”</blockquote><p>No one wants to be seen as just another number brought in to ship code continuously whilst a stream of new bodies come in and the team loses its identity and culture. Lots of people talk about autonomous environments and the latest tech, but we are actually walking the walk. We’ve moved into a newly renovated 1,000 staff HQ which provides a bright and open environment. Engineering teams chose their own equipment and everyone gets a standing/ sitting pairing desk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/0*ZJfTHyEZmlFqFSsU." /></figure><p>I’m always happy when people finally get to to meet the team in our HQ in Colindale as the reaction is always one of shock (not in a bad way). People think of utilities and they often think grey suits, old school top down thinking with regulation and red tape which obviously doesn’t sound particularly appealing. However, when people come and talk to us, they see a business that is successful but yet fully committed to change. There is not a single person across the business from employee, to partner and customers who will not benefit from the improvements being made through technology. We are all working together to make things simpler to enable our partners to deliver the best possible customer experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/0*5EeM8n3ZBqsm5x6q." /></figure><p>Changing the very underpinnings of a business to become technology and data led is a huge undertaking. This is not a simple task and it takes a committed team who know what they are doing. From a set up point of view, we are doing what is agreed as the best practice within the community, with end to end product teams working autonomously to deliver products with a core platform and UI SDK to enable rapid innovation. There isn’t a long line of approvals and bureaucracy to deal with, instead quite the opposite. It’s non-prescriptive and you interact directly with users to understand problems.</p><p>With the full backing of the board and a get stuff done attitude, I’m genuinely excited to be part of the team and believe we’ve already got a superb group here. It’s now about adding to that and building these systems that will allow Utility Warehouse to grow significantly in the near future. Lets not forget, this isn’t a small start up scaling, but an established FTSE 250 business with over £700m turnover decommissioning a large monolithic system whilst simultaneously building a completely greenfield platform.</p><p>We have come a long way these past few years and still have further to go. We need to help support our teams with the right quality of hires and are particularly keen to hear from Senior or Lead Engineers who are perhaps fighting to remain hands on, but still enjoy helping others prosper. If you are reading this and feel like you would like to be a part of team, why not speak to Reuben or I and see where you could have an impact.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d911b07788c8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/utility-warehouse-technology/quality-or-quantity-why-not-both-d911b07788c8">Quality or quantity: Why not both?</a> was originally published in <a href="https://medium.com/utility-warehouse-technology">Utility Warehouse Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dynamic Cross Cluster Route Propagation using GoBGP]]></title>
            <link>https://medium.com/utility-warehouse-technology/dynamic-cross-cluster-route-propagation-using-gobgp-2ee35ee64cea?source=rss----66c90bef7dfb---4</link>
            <guid isPermaLink="false">https://medium.com/p/2ee35ee64cea</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Steven Smith]]></dc:creator>
            <pubDate>Wed, 18 Sep 2019 11:11:31 GMT</pubDate>
            <atom:updated>2019-09-18T11:10:33.442Z</atom:updated>
            <content:encoded><![CDATA[<h3>Topology</h3><p>This assumes 2 kubernetes clusters with flat network, so that host in one network can reach host in the other. In particular we have:</p><ul><li>1 cluster deployed in aws europe-west-1 zone with nodes in cidr 10.66.21.0/24 and pod cidr 10.2.0.0/16</li><li>1 cluster deployed in gcp europe-west2 zone with nodes in cidr 10.22.20.0/24 and pod cidr 10.4.0.0/16</li><li>Both clusters running calico version &gt; 3.2.0 for cni (to be able to set felix ExternalNodesCIDRList variable and allow remote traffic) configured to use bgp to exchange local routes and ipip enabled for pod to pod communication.</li></ul><p>Flat network is implemented via interconnects using Megaport, and firewall rules in both sides are in place so that:</p><h3>Deploy GoBGP instances as Route Reflectors</h3><p>Adding a bgp route reflector will give us the following example network topology:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/0*zV2fZOP5a_HoijJu.png" /></figure><p>In each cluster we deploy 3 gobgp instances (one per availability zone for redundancy) and we use static ips for each one of them.</p><p>We can do that with a simple systemd service:</p><p>We also need to allow all the cluster nodes to communicate with the gobgp instances (protocol tcp, port 179 on both ends)</p><p>Configuration lives under /etc/gobgp/gobgp.conf. GoBGP allows dynamic peers from within a range and will use a passive approach for contacting them (waits for connection to be initiated from the peer). So a simple configuration to accept incoming bgp connections from the kube cluster nodes will be:</p><p>That will run a bgp router with id 10.22.20.6, which in that case is the same as the static ip we assigned to the node, and will allow iBGP connections from peers in 10.22.22.0/24 using AS 64513.</p><p>Now we need to point calico to the new static bgp routers that we created and configure it to use those for route advertisement and discovery instead of a full mesh.</p><p>Disable mesh and set asNumber:</p><p>Point to a static global peer:</p><p>As a result calico bird instances will contact the new bgp instances. From a gobgp node we can see the cluster peers:</p><p>And the routes:</p><p>We can also do the same via bird instances running in calico-node containers:</p><p>And finally routes are in each node’s routing table: ip route</p><p>After that our clusters should look like:</p><p>Aws:</p><ul><li>Hosts cidr 10.66.21.0/24</li><li>Pod cidr 10.2.0.0/16</li><li>GoBGP RRs 10.66.21.6, 10.66.21.69, 10.66.21.133</li><li>iBGP as number 64512</li></ul><p>Gcp:</p><h3>GoBGP External Peering for Cross Cluster Route Propagation</h3><p>Now that we have 2 different autonomous bgp clusters we can pair them by establishing eBGP connections between the static gobgp instances of each side. In order to do that and as we do not actually want to route any packets between hosts (remember we have a flat network and host reachability) we need to use the route server feature (https://github.com/osrg/gobgp/blob/master/docs/sources/route-server.md).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/0*A01BhVfLv40BBxUC.png" /></figure><p>For that purpose we add configuration on all gobgp instances to inform about the respective ones on the other cluster and filters to allow advertisement only of the pod networks.</p><p>An example configuration will look like:</p><p>Notes on the above gobgp configuration example:</p><ul><li>cluster peers have both route-reflector and route-server functionality enabled</li><li>gobgp peers have route-server functionality enabled</li><li>filters allow gobgp peers to only advertise addresses from the pod range that belongs to their cluster and accept routes from the remote cluster&#39;s pod range</li></ul><h3>Configure Calico to Allow External Routes</h3><p>Also we need to make calico aware of the pod cidr of the other cluster. To do that we need a new pool:</p><p>The disabled label is needed to prevent calico from using this pool to assign addresses to pods and the ipip is the encapsulation that we need for the pod to pod communication.</p><p>Also need to configure calico-node to allow routes that will go outside the nodes of its own cluster that already knows about.</p><p>That will add the range in the ipset that calico uses to keep track of known nodes.</p><p>Now we can see the new static neighbors from the remote cluster:</p><p>And for each neighbor we get a local rib with all the routes:</p><p>Here we have 3 identical routes for each route that was advertised from the remote cluster because of the 3 gobgp instances that we are pairing with. We can again check that the routes are propagated down to the bird peers:</p><p>And the hosts of the remote cluster:</p><h3>Cross Cluster Service Advertisement</h3><p>Since calico v3.4.0 it is possible to advertise service addresses. That can be done by setting CALICO_ADVERTISE_CLUSTER_IPS environment variable to our kubernetes services cidr (https://docs.projectcalico.org/v3.4/usage/service-advertisement). We will also need to configure bgp filters to allow receiving and advertising routes inside services ranges (same as we did above for pod ranges). For classic services that will result in all the nodes in the cluster advertising that they could route the whole range (here we use 10.3.0.0/16 in one cluster and 10.5.0.0/16 in the other). Since a bgp client will only pick the shortest route and advertise only this one, gobgp instances will pick a node and advertise it on the remote cluster and that node will act as a Gateway for accessing services from the remote cluster. We don&#39;t really care that the 3 gobgp instances might pick a different node to advertise (as all the routes have the same weight) since on each remote node only one node will be available for routing 10.3.0.0/16 after all.</p><p>In order for that to work kube-proxy --cluster-cidr flag must be set:</p><blockquote><em>The CIDR range of pods in the cluster. When configured, traffic sent to a Service cluster IP from outside this range will be masqueraded and traffic sent from pods to an external LoadBalancer IP will be directed to the respective cluster IP instead</em></blockquote><p>So that traffic that arrive to the node that acts as services gateway can be masquaraded and redirected to the proper destination.</p><p>Because we have graceful restart enabled on all peers:</p><p>which is needed in order to avoid calico-node pod restarts causing blinks on the network, that introduces a problem. If the node that acts as a gateway for services dies, it will still remain advertised for as long as the bird instances asked as a graceful restart period (by default 2mins) and all requests to services will fail. That may be solved by using long lived graceful restart bgp feature (https://github.com/osrg/gobgp/blob/master/docs/sources/graceful-restart.md#long-lived-graceful-restart)</p><p>This feature will still allow the route to the failing node to be in the rib, but since the node is not responding the route will be marked as stale and get de-selected as the prefered one to be advertised downstream.</p><p>Sadly long lived graceful restart is not available through calico-node bird instance at the moment and the above setup will be possible after this: <a href="https://github.com/projectcalico/calico/issues/2470#issuecomment-483370379">https://github.com/projectcalico/calico/issues/2470#issuecomment-483370379</a> is resolved.</p><h3>Limitations — Network Policies</h3><p>Obviously in order to allow cross cluster pod to pod communication you will need to tune network policies (in case they are used) to allow the whole pod cidr of the other cluster talk to your pod, since the local calico deployment cannot know anything about the remote cluster. That means that you open your pod to the other cluster and access limiting becomes now a work that should be handled on pod level rather than network/iptables level (the way it is done with network policies).</p><p><em>Originally published at </em><a href="https://uw-labs.github.io/blog/kubernetes/2019/05/01/cross-cluster-comms.html"><em>https://uw-labs.github.io</em></a><em> on May 1, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ee35ee64cea" width="1" height="1" alt=""><hr><p><a href="https://medium.com/utility-warehouse-technology/dynamic-cross-cluster-route-propagation-using-gobgp-2ee35ee64cea">Dynamic Cross Cluster Route Propagation using GoBGP</a> was originally published in <a href="https://medium.com/utility-warehouse-technology">Utility Warehouse Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A new way of marketing at Utility Warehouse]]></title>
            <link>https://medium.com/utility-warehouse-technology/a-new-way-of-marketing-at-utility-warehouse-53a02326d626?source=rss----66c90bef7dfb---4</link>
            <guid isPermaLink="false">https://medium.com/p/53a02326d626</guid>
            <category><![CDATA[transformation]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[digital-marketing]]></category>
            <dc:creator><![CDATA[Steven Smith]]></dc:creator>
            <pubDate>Wed, 18 Sep 2019 09:37:01 GMT</pubDate>
            <atom:updated>2019-09-18T11:20:06.554Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*NTXC4b8hC5mDonr7O4HG7g.png" /></figure><p>We’ve recently welcomed Matt Roskill as our Marketing Director. And simply put, Matt’s set out to answer this question: where should marketing begin and end at Utility Warehouse?</p><p>UW is now three years into a significant technology transformation, which is providing an amazing platform to reorganise ourselves around the needs and goals of our customers and our partners.</p><p>This is no more apparent than in Marketing. And while we’re only at the start of a long journey, we also know there are a series of career-defining opportunities for the team we’re now building.</p><p>UW operates across a number of complicated and highly-regulated industries — energy, telecommunications, financial services. But at its core, the business is brilliantly simple:</p><p><em>We bundle together all your household utilities in a single monthly bill, and the more services you take, the more you save.</em></p><p>The opportunity now is to make the experience of UW — our brand and marketing, as well as our products and services — as simple and as compelling as that core proposition.</p><p>As part of that, we’re establishing a new leadership team to help build and develop two new key marketing functions: Central Marketing and Product Marketing. The former will deliver strategic and creative marketing services for the brand and business; the latter will be focussed on driving demand and usage of our products and services.</p><p>Those who are already aware of UW will know that we don’t spend money on advertising. That’s because we don’t acquire customers directly — we recruit them via a network of self-employed distributors around the country (who we call partners) who recommend these services on our behalf.</p><p>It’s a distinctive and highly effective model. And it’s meant we’ve never been short passion or creativity, either amongst our partners or our own staff. And as the business continues to grow — currently 635,000 customers and over £800 million in annual revenue — we know we need to focus on unlocking the power of this unique, multi-service business while keeping complexity at bay.</p><p>This marketing leadership group will be fundamental in shaping and successfully implementing our wider strategy, while setting the business up for the next stage of transformative growth. We need to hire a number of senior positions in the coming months and are looking for ambitious, progressive marketers who are comfortable working through and driving change.</p><p>If you want to know more about the journey ahead please get in touch with me at sasmith@utilitywarehouse.co.uk</p><h3>Published By Steve Smith</h3><p><em>Originally published at </em><a href="https://www.linkedin.com/pulse/new-way-marketing-utility-warehouse-steve-smith/"><em>https://www.linkedin.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53a02326d626" width="1" height="1" alt=""><hr><p><a href="https://medium.com/utility-warehouse-technology/a-new-way-of-marketing-at-utility-warehouse-53a02326d626">A new way of marketing at Utility Warehouse</a> was originally published in <a href="https://medium.com/utility-warehouse-technology">Utility Warehouse Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[We all see companies selling the bean bag dream of modern working, agile environments, unlimited…]]></title>
            <link>https://medium.com/utility-warehouse-technology/we-all-see-companies-selling-the-bean-bag-dream-of-modern-working-agile-environments-unlimited-5149204be451?source=rss----66c90bef7dfb---4</link>
            <guid isPermaLink="false">https://medium.com/p/5149204be451</guid>
            <category><![CDATA[engineering-culture]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[digital-transformation]]></category>
            <dc:creator><![CDATA[Steven Smith]]></dc:creator>
            <pubDate>Wed, 18 Sep 2019 09:34:55 GMT</pubDate>
            <atom:updated>2019-09-18T11:28:54.895Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0zz_HkuiopJpJZ8FtrOMuw.jpeg" /><figcaption>Image credit: <a href="https://commons.wikimedia.org/wiki/File:Bean_Bags_at_GDD.jpg">https://commons.wikimedia.org/wiki/File:Bean_Bags_at_GDD.jpg</a></figcaption></figure><h3>We all see companies selling the bean bag dream of modern working, agile environments, unlimited holidays and free snacks but what really matters?</h3><p>When I joined UW nearly two years ago I shared a number of articles talking about our transformation. Reflecting back, I can see how much we’ve moved forward as a business and we’re still only scratching the surface. I talked about joining what on the outside seemed like a 20 year old British business, grey suits and a mountain of bureaucracy but possessed a lean start-up mindset with the foundations of great people, tech and a willingness to change. Well, 80+ hires later we have even more to talk about.</p><p>We all see companies selling the bean bag dream of modern working, agile environments, unlimited holidays and free snacks but what really matters most to people? Seems a lot of the things that matter are hardly mentioned and no matter how much cool stash a company offers, you can’t just throw a ping pong table in the office and expect people to be happy or fulfilled. It’s safe to say the power has swung to the employee and quite simply put, if you don’t keep your staff happy, somewhere else will.</p><p>It’s easy to produce a cleverly edited video that makes it look like your going to work high-fiving all the way to your desk but what’s not easy is to provide context to the things that actually matter to smart, engaged employees. Yes fancy standing desks, flexible working, top end equipment &amp; tools are important but so is the actual projects people are working on, providing ongoing challenges and opportunities for growth, the right work/ life balance and the ability to make decisions.</p><p>So what can I say about UW that tells you more.</p><ul><li>We’re still scaling, we’ve seen massive growth across the business, our data journey well underway with the team growing steadily and several new teams spinning up in technology.</li><li>We deliver quickly by keeping processes light and enabling autonomy, happy in the knowledge people will be challenged on their ideas.</li><li>We’re big fans of opensource, go, kubernetes, event sourcing and domain driven design but our favourite tool is the one that does the job best. We sponsor a number of events and meet-ups and are always looking for ways to get more involved.</li><li>We’ve never believed in ivory tower leadership, our Leadership team are hands-on and roll up their sleeves when needed, who mentor and support not only from a technical standpoint.</li><li>We value the right work/ life balance. A lot of us have families and anyone that’s been on that journey will tell you its unpredictable and requires flexibility.</li><li>We don’t appreciate egos, shouting the loudest doesn’t make your idea the best instead we believe in debate, collaboration and learning.</li><li>We encourage experimenting, seeing failure as learning, believing it’s about being pragmatic and achieving a balance between speed and quality.</li><li>We believe that not every industry or product has to be exciting on the outside for the engineering challenge to be interesting. We care about how we deliver and who we work with, we enjoy working on interesting problems with smart people and that if it was easy it wouldn’t be fun.</li></ul><p>We’re in the midst of digital transformation, restructuring ourselves around the needs of our customers and partners. Whilst on the surface some people just see UW as a utilities business there is a lot more going on inside, we’re moving what was essentially siloed business units into a multi-service provider with a single view of customers. We’re a unique proposition in that we offer the best of both worlds to those that are looking for that rare proposition of big company scale, small company speed, an innovative but robust focus on delivery. We’re not a start up, but we have the characteristics of one, just the right mix of safe but interesting, dynamic and fresh.</p><p>That’s why I can say confidently that we are still only scratching the surface of what this company will achieve, my passion and enthusiasm whilst being tested has never wavered. I still get to work with bright people, I feel appreciated and my opinion is valued. I’m not left twiddling my thumbs waiting for permission and feel proud of what we’ve achieved together so far.</p><p>If you’re at all curious about working in a culture that challenges you why not get in touch and have a short call with our recruitment team?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5149204be451" width="1" height="1" alt=""><hr><p><a href="https://medium.com/utility-warehouse-technology/we-all-see-companies-selling-the-bean-bag-dream-of-modern-working-agile-environments-unlimited-5149204be451">We all see companies selling the bean bag dream of modern working, agile environments, unlimited…</a> was originally published in <a href="https://medium.com/utility-warehouse-technology">Utility Warehouse Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>