<?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 Ryo Nakao on Medium]]></title>
        <description><![CDATA[Stories by Ryo Nakao on Medium]]></description>
        <link>https://medium.com/@nakabonne?source=rss-c97bf3236766------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-Jxf84kVh2oQ5IfaKKq84g@2x.jpeg</url>
            <title>Stories by Ryo Nakao on Medium</title>
            <link>https://medium.com/@nakabonne?source=rss-c97bf3236766------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 07:11:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nakabonne/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[Things That Could Drive Me Into a Nervous Breakdown]]></title>
            <link>https://medium.com/@nakabonne/things-that-could-drive-me-into-a-nervous-breakdown-97d4a1ef19?source=rss-c97bf3236766------2</link>
            <guid isPermaLink="false">https://medium.com/p/97d4a1ef19</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[love]]></category>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[life]]></category>
            <dc:creator><![CDATA[Ryo Nakao]]></dc:creator>
            <pubDate>Tue, 04 Jun 2019 05:54:14 GMT</pubDate>
            <atom:updated>2020-03-28T00:36:01.063Z</atom:updated>
            <content:encoded><![CDATA[<p>This article has been moved <a href="https://nakabonne.dev/posts/things-that-could-drive-me-into-a-nervous-breakdown/">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ftquH--L3i4J-IOlpmkYoQ.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/ja-jp/@ricrodrigues?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Ric Rodrigues </a>from <a href="https://www.pexels.com/ja-jp/photo/1278566/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><p>Nowadays, I have room in my heart for thinking about what could push me past my breaking point. I can see what I’m seeking and what is what’s necessary to live a fulfilling and healthy life, at least than before — I will walk you through what got started to make my heart empty and how I realized that.</p><h4>Overwhelmed with self-actualization needs</h4><p>FYI: I’m a student, passionate about software development. While keen interests and feelings of love let me be passionate at first, after a while I’m more likely to prioritize feeling that I’ve got to become an awesome guy over it. Don’t get me wrong, self-actualization needs is not bad. In fact, it would be a significant factor. It’s not about whether self-actualization needs is good or not; it’s whether I make it a top priority or not — that is, keen interests and feelings of love should be a top priority. Once you reach a particular level, you are likely to want to become stronger than others. That’s good, that would make you feel excited. Nevertheless, if you’d pay attention too much, you are more likely to choose the options that can get boring.</p><h4>How beneficial was today?</h4><p>At end of day, I often considered the value of that day: how much skill I improved, what kind of learning did I get, and so on. Because of feeling restricted by that, the keen interests and feelings of love was starting to go away. In addition, my skills are never improved as long as my mind is something like that. Asking what the meaning of all my time is makes myself suffer. Viktor E. Frankl says:</p><blockquote>“Ultimately, man should not ask what the meaning of his life is, but rather must recognize that it is he who is asked. In a word, each man is questioned by life; and he can only answer to life by answering for his own life; to life he can only respond by being responsible.”</blockquote><blockquote>― Viktor E. Frankl, Man’s Search for Meaning</blockquote><p><strong><em>Don’t ask how beneficial today was, ask whether I had another fun day today.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mDOLLdnlFE2ZzWIhX4x9wQ.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/ja-jp/@pixabay?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pixabay </a>from <a href="https://www.pexels.com/ja-jp/photo/60032/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><h4><strong>Obsessed</strong> with finishing until the deadline</h4><p>As long as I had tasks to do that have the deadline, I’ve been obsessed with finishing that. That kept on activating my sympathetic nervous system until 1 minute before going to bed or also after that. At the time, I completely thought there was no problem but, I had so greatly underestimated. Just as a flame needs oxygen to keep burning itself, passion needs emotional leeway to keep burning itself. if I keep on, I could become burned out — physical, mental, or emotional exhaustion caused by overwork or stress — more than likely. Always straining my mind makes life poor.</p><h4>Someone has gone</h4><p>All failure and negative things enhance my motivation to make use of this experience — except losing someone that includes lovers and friends. Last year, one of the my friends was snatched away by sudden death — He was only twenty-one — That happening taught me that I definitely cannot totally convert losing someone to a positive thing. So what I gotta do is taking good care of the time that I spend with them.</p><p>I’ve got so much significant stuff to do? — Whatever!</p><p>I didn’t take in so much useful information today? — Whatever!!</p><p>There ins’t enough time<strong> </strong>to become an awesome guy? — Whatever!!!</p><h3>Bottom line:</h3><p>Maybe nobody could completely match my above sense of values. Therefore, what I want you to take from this article is the importance of getting to know yourself deeply ASAP. The sooner, the better. Because I know myself some extent, I was able to realize what is more likely to drive me into a nervous breakdown; and absolutely,<strong> </strong>the more I know, the more I realize.</p><p>Get to know yourself, discover the real you. Good luck.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97d4a1ef19" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Incredible reasons I make a recommendation to apply to GSoC despite never got accepted]]></title>
            <link>https://medium.com/@nakabonne/incredible-reasons-i-make-a-recommendation-to-apply-to-gsoc-despite-never-got-accepted-f9f70a54d53a?source=rss-c97bf3236766------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9f70a54d53a</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[students]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Ryo Nakao]]></dc:creator>
            <pubDate>Sat, 11 May 2019 02:19:59 GMT</pubDate>
            <atom:updated>2020-03-28T00:35:24.628Z</atom:updated>
            <content:encoded><![CDATA[<p>This article has been moved <a href="https://nakabonne.dev/posts/incredible-reasons-i-make-a-recommendation-to-apply-to-gsoc-despite-never-got-accepted/">here</a>.</p><p>Unfortunately, as mentioned earlier I was not able to get into Google Summer of Code 2019.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*nOtoPtGnycTtSnGfg5Jtaw.png" /></figure><p>Despite things never worked out as my expect, I do not despaired at all. Why?<br>One of the potential reasons is that I was able to take the first big step toward wonderful OSS committer. I will walk you through what happened and what I got during the period of discussing application ideas with mentoring organizations.</p><h3>0, What is Google Summer of Code?</h3><p>First, for those that aren’t familiar, may be better to explain what GSoC is and what it does; in brief, you can concentrate on developing open source software while getting paid to do it. You can work with incredible mentors who act as guides. In order to get into that, you’ve got to find exciting projects, and write the best proposal you could.</p><h3>1, Rook had <strong>me on in the organization</strong></h3><p>Looping back to the previous topic, <a href="https://rook.io/">Rook</a> is the organization that I applied for, a cloud-native storage orchestrator running in Kubernetes. After several commits, I encountered such this email:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*WgMyIVp-pSeFbW9esC-yqQ.png" /></figure><p>It could be thought first awesome event, Rook let me be part of the organization! I’m well aware of the fact that the reason is he just wanted to assign me to an issue, yet it was a big step for me. Really wish to develop a long-range relationship with them.</p><h3>2, Profound discussion</h3><p>I’ve never engaged in deep discussion about issues within open source software though have experience fixing tiny bugs several times. I worked on some discussions for the first time over a period of days (at least, the time zone would be also affecting a little…)<br>What I’m a non-native speaker of English was one of the causes of making myself suffer, it was hard to get used to cultural differences rather than English grammar problems. Engaging in deep discussion in such a situation was tough to beat for me. Nevertheless, <strong>the desire to be accepted took me to deep in discussion</strong>. Thus, I broke through the first barriers facing me.</p><h3>3, Deepened my understanding of the technology area that interests me</h3><p>I was able to look out over the interesting technology landscape and deepen my understanding of what kind of problem they have. Actually, the first project I paid attention to was another one named <a href="https://containerd.io/">Containerd</a>. During the course of diving into the issues they have, I encountered the Rook project. In the Cloud Native world where I am passionate about, I found that each project interacted, and explored various possibilities. I grasped what they’d be going to do and what the barrier is, and it’s not that scary than I thought. I’d be gonna have a look and approach various exciting projects in the Cloud Native world.</p><h3>Conclusion</h3><p>Not to mention, you could do what I mentioned in this article without even participating in GSoC. However, for those who are interested in OSS development but not able to make up own mind to take the first step like me, because you can get the opportunity to get started even if it would be accepted or not, I make a strong recommendation to try to get into GSoC.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9f70a54d53a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Depth of module]]></title>
            <link>https://medium.com/@nakabonne/depth-of-module-f62dac3c2fdb?source=rss-c97bf3236766------2</link>
            <guid isPermaLink="false">https://medium.com/p/f62dac3c2fdb</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[software]]></category>
            <dc:creator><![CDATA[Ryo Nakao]]></dc:creator>
            <pubDate>Thu, 17 Jan 2019 11:33:43 GMT</pubDate>
            <atom:updated>2020-03-28T00:34:41.648Z</atom:updated>
            <content:encoded><![CDATA[<p>This article has been moved <a href="https://nakabonne.dev/posts/depth-of-module/">here</a>.</p><p>Click <a href="http://nakawatch.hatenablog.com/entry/module-depth">here</a> for Japanese version</p><p>This article summarizes the concept of <strong>deep module</strong> described in the book “<a href="https://www.amazon.com/t/dp/1732102201">A Philosophy of Software Design</a>” written by <a href="https://web.stanford.edu/~ouster/cgi-bin/home.php">Professor John Ousterhout</a> at Stanford University, and is written with permission of him. However, this is mainly describing my opinion rather than giving detailed contents of this book.</p><h3>Ryo Nakao on Twitter</h3><p>@JohnOusterhout Hi, I&#39;m an undergraduate at Japanese university. Since I was impressed with the concept of deep module, I&#39;d like to propagate it to Japan and to stimulate the discussion all over the world. I&#39;d be grateful if you could allow me write the article about the goodness of deep module.</p><h3>John Ousterhout on Twitter</h3><p>@nakabonne @nakabonne Sure, feel free to write an article about the benefits of deep modules. The more people that hear about this, the better!</p><p>First, I will define a good module I consider and then walk you through the concept of deep module to realize it.</p><h3>What’s a good module</h3><p>What’s a good module? The term module here means classes, structures, subsystems and divided software such as Microservice etc, and language does not matter.</p><h4>A small module?</h4><p>Small is worth, as is the Unix philosophy of “Small is beautiful”. Dividing the module into small pieces makes it easier to clarify the work of each module, which makes maintenance easier as a result. Certainly it is important, but in the first place, why make a module?<br>One of the main reasons is to lower the complexity of implementation by gathering elements of high relevance. See this code on the assumption that it.<br>In order to open a file in Java, you need three small classes as follows.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c680548a330aaf18ac39aadb0ef7b085/href">https://medium.com/media/c680548a330aaf18ac39aadb0ef7b085/href</a></iframe><p><a href="https://docs.oracle.com/javase/8/docs/api/java/io/FileInputStream.html">FileInputStream</a> provides rudimentary I/O only, and <a href="https://docs.oracle.com/javase/8/docs/api/java/io/BufferedInputStream.html">BufferedInputStream</a> converts the byte input stream obtained by FileInputStream into a byte input stream with buffering read. And <a href="https://docs.oracle.com/javase/8/docs/api/java/io/ObjectInputStream.html">ObjectInputStream</a> provides the ability to operate serialized objects.<br>As you can see, we have to generate as many as three objects just to open a file. By making the class smaller, the work of each class became clear, but because the relevant FileInputStream and BufferedInputStream are independent, if a user forgets to create a BufferedInputStream, it will not be buffered and will be slow. The point is, the complexity of implementation is leaking to the outside. It’s not always bad that the complexity of implementation leaks out, but you should be aware of the following.</p><ul><li>The fact that modules are small means that the amount of information they have is small</li><li>If the amount of information that it has is small, the complexity of implementation tends to leak outside</li><li>If the complexity of implementation is leaking to the outside, it is easier for module implementation changes to affect the surrounding modules</li></ul><p>There is no doubt that small is beautiful, but it turned out that maintainability declined if dividing highly relevant elements. Thus, it turned out realized that you could not make a good module if you were too conscious of making it smaller.</p><h4>High Cohesion? Loose Coupling?</h4><p>It is essential that elements of high relevance gather (high cohesion), and each doesn’t depend on (loose coupling). The above code is a beautiful example of loose cohesion and tight coupling. There are many benefits to having hidden many elements of high relevance.<br>Having elements of “high relevance” makes the design clearer, easier to maintain and extend, and increases reusability.<br>Also, having “many” elements strengthens the functionality of modules.<br>In addition, by having “hidden” it, you can promote loose coupling.<br>Therefore, it turned out that high cohesion is a very important concept.</p><p>It goes without saying that the loose coupling of modules will have a positive impact on software, but in order to maintain loose coupling, it is necessary <strong>to make interfaces connecting the modules good</strong>.</p><h4>What’s a good interface?</h4><p>People often say that “keep interface simple”, but the word “simple” is ambiguous, so it should be embodied.<br>First of all it’s necessary to understand what is required of an interface of a module. For modules to use other modules, they sign a contract named interface. Since each module is implemented on the premise of that contract, as the contract changes, the implementation of all modules involved in the contract must be changed. However, software is quite likely to evolve. Interfaces are required to not collapse even in this contradiction, in other words, <strong>I’m sure that a good interface is an immutable interface (it does not allow changes other than addition)</strong>.</p><p>And it should be easy to use for users who use an interface whenever possible. But my thought on this “ease of use” is influenced by the way of thinking that Clojure author Rich Hickey mentioned in <a href="http://confreaks.tv/videos/railsconf2012-keynote-simplicity-matters">Simplicity Matters</a>. I consider that ease of use is a relative concept, and what is useful depends on the user.<br>Users are roughly divided into two in terms of use cases, some people use in the edge case, others use in the general case. Allowing edge cases is one of the main reasons that the interface becomes complicated. For that reason, <strong>you should focus on general use cases and pursue ease of use</strong>.<br>Please see at the Java code above again. It’s a general usage method to use buffering when operating files. Nonetheless, it allowed the edge case that it doesn’t use buffering by allowing the BufferedInputStream class to be independent. As a result, the interface has become complicated.<br>I again define a good interface as “an easy-to-use in a general case and immutable interface”.</p><h4>A good module</h4><p>Based on the above, the definition of a good module I consider is <strong>“a module that hides many elements of high relevance and provides powerful functionalities through an easy-to-use in a general case and immutable interface”</strong>. In the next chapter, I will walk you through the concept of deep module that realizes it.</p><h3>deep module</h3><p>Implementation becomes complicated to some extent due to hide many elements, yet in order to become an ideal module, it must provide powerful functionality through interfaces that hide the complexity of implementation. Professor John Ousterhout calls such a module deep module. It is written as follows in this book.</p><blockquote>“they allow a lot of functionality to be accessed through a simple interface.”</blockquote><blockquote>(John Ousterhout, A Philosophy of <a href="http://d.hatena.ne.jp/keyword/Software%20Design">Software Design</a>.)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lCGfGhyIOUg12Bhis-iLQA.png" /><figcaption>deep and shallow modules</figcaption></figure><p>The above figure was created with reference to the figure depicted in this book. The rectangle represents a module, the length of the top edge represents the complexity of the interface, and the vertical length represents the powerfulness of the functionality (benefits the module brings). That means the longer it’s horizontally the more complicated the interface, and the longer it’s vertically the more powerful the functionality. Professor John Ousterhout uses the term “deep” to describe modules such as the portrait rectangle on the left side, and thinks it is the best.<br>It indicates that the following viewpoints are necessary for module design.</p><ul><li>The functionalities are powerful, but are the interfaces more complicated than that?</li><li>The interfaces are simple, but are the functionalities poorer than that?</li></ul><p><strong>Interface complexity is cost, and powerfulness of functionality is benefit</strong>. It’s a deep module if the benefit is above the cost, yet it’s hard to identify this, so you should see many good examples.</p><h4>e.g.) File I/O provided by Unix OS</h4><p>Specific examples of embodying deep module include system calls for I/O provided by the Unix OS. Basically, there are only five system calls if you follow the standard file I/O model.</p><ul><li>open()</li><li>read()</li><li>write()</li><li>close()</li><li>lseek()</li></ul><p>Despite the fact that the implementations of Unix I/O have evolved over the years, these five system calls have not changed. This is an ideal deep module. Since the kernel was originally designed to run the user application stably, the interface is hardly changed. Therefore, I’m convinced that seeing system calls is very helpful.</p><h3>Conclusion</h3><p>Module designers are required to design with a lot of perspectives(e.g. cohesion, coupling, reversibility, orthogonality).<br>However, I suppose everyone feels that it’s hard to incorporate all perspectives into software which expresses abstract world with concrete code and changes constantly.<br>So, <strong>why not try asking a single question “Is this module deep?”</strong>.<br>I would be grateful if as many people as possible could grasp Professor John Ousterhout ‘s wonderful concept deep module.<br>You should purchase <a href="https://www.amazon.com/t/dp/1732102201">this book</a> if you’re intrigued.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f62dac3c2fdb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Realization of distributed tracing by Envoy]]></title>
            <link>https://medium.com/@nakabonne/realization-of-distributed-tracing-by-envoy-bf8c0f5a1a30?source=rss-c97bf3236766------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf8c0f5a1a30</guid>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Ryo Nakao]]></dc:creator>
            <pubDate>Tue, 18 Dec 2018 10:08:02 GMT</pubDate>
            <atom:updated>2020-03-28T00:34:06.263Z</atom:updated>
            <content:encoded><![CDATA[<p>This article has been moved <a href="https://nakabonne.dev/posts/realization-of-distributed-tracing-by-envoy/">here</a>.</p><h3>Necessity of distributed tracing</h3><p>Since distributed architecture such as Microservices are handled across multiple services, it’s difficult to keep track of communication between services. For that reason,</p><ul><li>It becomes difficult to investigate the cause when a failure occurs</li><li>It becomes difficult to investigate the cause of performance degradation</li></ul><p>Distributed tracing solves these problems by visualizing communication.</p><h3>Terminology</h3><p>In learning distributed tracing, you need to remember the following two terms.</p><ul><li><strong>Span</strong>: Processing within one service</li><li><strong>Trace</strong>: A collection of traces included in one request</li></ul><h3>Why Envoy?</h3><p>It’s possible to realize distributed tracing without using Envoy if you have tools provided by a trace visualization provider such as <a href="https://zipkin.io/">Zipkin</a> or <a href="https://www.jaegertracing.io/">Jaeger</a>.<br>However, for realization, it’s essential to generate an identifier for each trace, propagate it, and send it to the collector component. It’s necessary to introduce client libraries for each language in each service, and implement it exclusively for that.<br>In the Microservice architecture, which is the distributed architecture on which <a href="https://searchsoftwarequality.techtarget.com/definition/polyglot-programming">Polyglot</a> is premised, this will cause significant cost.</p><p>Therefore, if Envoy which is made on the basis of both inbound and outbound traffic is arranged as a sidecar, this problem can be solved and network and application can be separated.<br>People call an architecture that solves the problem unique to Microservices by making inter-service communication through sidecar proxy <a href="https://blog.buoyant.io/2017/04/25/whats-a-service-mesh-and-why-do-i-need-one/">ServiceMesh</a>.<br>However, it’s necessary to implement implementation to propagate <a href="https://www.envoyproxy.io/docs/envoy/latest/configuration/http_conn_man/headers">specific identifiers</a> within the application in order to properly propagate contexts such as parent-child relationships between spans. This will be described later.</p><h3>Envoy’s tracing architecture</h3><p>Depending on the trace provider you use, in most cases it will be an architecture consisting of the following components. Some providers provide storage, others need to operate on their own.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*Tu2WZtoFf26CTGCHAKYqCg.png" /></figure><p>Generally, spans are associated by propagating unique identifier within a trace.<br>In this series of flows, Envoy has tasks which are roughly divided into three. Trace generation, propagation, and transmission to collectors.</p><h4>Generation</h4><p>(<a href="https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/tracing#how-to-initiate-a-trace">documentation</a>)</p><p>Trace can be generated by setting <a href="https://www.envoyproxy.io/docs/envoy/latest/api-v2/config/filter/network/http_connection_manager/v2/http_connection_manager.proto#envoy-api-msg-config-filter-network-http-connection-manager-v2-httpconnectionmanager-tracing">tracing object</a>.</p><h4>Propagation</h4><p>(<a href="https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/tracing#trace-context-propagation">documentation</a>)</p><p>Envoy correlates the logging between the invoked services by propagating the identifier x-request-id.<br>And as mentioned previously, propagation of <a href="https://www.envoyproxy.io/docs/envoy/latest/configuration/http_conn_man/headers">another identifier</a> is required in order to define parent-child relationships between spans. And then Envoy puts this identifier in the HTTP request header. So you need to extract the identifier from a particular header and add it to the request header for the next service it communicates. In short, it’s necessary to modify the code a little.<br>As <a href="https://github.com/envoyproxy/envoy/issues/5266">envoy has no way of associating outbound requests with inbound requests</a>, this is the responsibility of the application developer.<br>Also, It’s better to read documents of provider you use since necessary identifiers for each trace visualization provider are different.</p><h4>Transmission</h4><p>At the time of this writing (December 14, 2018), trace visualization provider which of Envoy supports is as follows. Support for other tracing providers would not be difficult to add as Envoy is designed pluggable.</p><ul><li><a href="http://zipkin.io/">Zipkin</a> (or any Zipkin compatible provider: e.g. <a href="https://www.jaegertracing.io/">Jaeger</a>)</li><li><a href="http://lightstep.com/">LightStep</a></li><li><a href="https://datadoghq.com/">DataDog</a></li></ul><p>According to the <a href="https://www.envoyproxy.io/docs/envoy/latest/api-v2/config/trace/v2/trace.proto">document</a>, specify the collector cluster to send the span. For example Zipkin, define as follows.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aed2d8f231979400b4fd3ed50b3e0008/href">https://medium.com/media/aed2d8f231979400b4fd3ed50b3e0008/href</a></iframe><h3>Hands-on</h3><p>Envoy offers a number of official <a href="https://www.envoyproxy.io/docs/envoy/latest/start/start#sandboxes">sandboxes</a>. I’d like to deepen the understanding of the flow of distributed tracing while using <a href="https://github.com/envoyproxy/envoy/tree/master/examples/jaeger-tracing">jaeger-tracing</a> in this time.</p><h4>Start services</h4><pre>$ git clone https://github.com/envoyproxy/envoy.git<br>$ cd envoy/examples/jaeger-tracing<br>$ docker-compose up -d</pre><p>Three containers front-proxy, service1, service2 are started.</p><h4>Send a request</h4><pre>$ curl -v http://localhost:8000/trace/1<br>*   Trying ::1...<br>* TCP_NODELAY set<br>* Connected to localhost (::1) port 8000 (#0)<br>&gt; GET /trace/1 HTTP/1.1<br>&gt; Host: localhost:8000<br>&gt; User-Agent: curl/7.54.0<br>&gt; Accept: */*<br>&gt;<br>&lt; HTTP/1.1 200 OK<br>&lt; content-type: text/html; charset=utf-8<br>&lt; content-length: 89<br>&lt; server: envoy<br>&lt; date: Sat, 08 Dec 2018 06:10:24 GMT<br>&lt; x-envoy-upstream-service-time: 27<br>&lt;<br>Hello from behind Envoy (service 1)! hostname: 580a7e50d809 resolvedhostname: 172.18.0.5<br>* Connection #0 to host localhost left intact</pre><p>It will communicate in the order front-proxy, service1, service2.</p><h4>Visualization</h4><p>Point your browser to <a href="http://localhost:16686/">http://localhost:16686</a>.<br>You should see multiple spans which are displayed as one trace.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fmQ07BJCOL9ptDsflViHsA.png" /></figure><h4>Modify implementation</h4><p>An example implementation of the service is in <a href="https://github.com/envoyproxy/envoy/blob/master/examples/front-proxy/service.py">examples/front-proxy/service.py</a>.<br>The notable implementation is the following part, it propagates the received identifier by putting it on the header.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/882eb21b9ea743716c3ff7d473f887ef/href">https://medium.com/media/882eb21b9ea743716c3ff7d473f887ef/href</a></iframe><p>For Zipkin compatible providers, this identifier is detailed in the repository <a href="https://github.com/openzipkin/b3-propagation">B3 Propagation</a>.<br>Let’s try commenting out this line and send a request again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*rlSZ3Aknoul83EDz7tTQBw.png" /></figure><p>You could see that the spans are recognized as separate traces. We were able to confirm that it’s impossible to fetch a trace correctly unless the identifier is propagated between spans.</p><h3>Future</h3><p>Did you understand the rough mechanism by starting with the overall architecture and eventually touching the code?<br>Envoy has become the third project to graduate on November 28, 2018. Envoy’s goal is “to abstract the network from application developers so that they can focus on business logic” as mentioned repeatedly in the <a href="https://blog.envoyproxy.io/envoy-graduates-a6f71879852e">blog</a>.<br>Not only Envoy, <strong>in these modern days when cloud native became mainstream many people want an environment where application developers can focus on creative activities.</strong><br>The reaction to the project surpassed their wildest imagination when Lyft released Envoy as OSS in September 2016. This indicates that the network proxy occupies a very important position in promoting cloud native. A network proxy should always stay close to an application inside even if many projects which abstracts the network from the application will be started rapidly from now on. Therefore, deepening your understanding of proxies is very important in the cloud native era.</p><p>*I’d be grateful if you could point out mistakes and outdated knowledge on <a href="https://twitter.com/nakabonne/">Twitter</a> etc.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf8c0f5a1a30" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A choice to start small Service Mesh]]></title>
            <link>https://medium.com/@nakabonne/a-choice-to-start-small-service-mesh-441886b696d9?source=rss-c97bf3236766------2</link>
            <guid isPermaLink="false">https://medium.com/p/441886b696d9</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[golang]]></category>
            <dc:creator><![CDATA[Ryo Nakao]]></dc:creator>
            <pubDate>Sat, 24 Nov 2018 06:12:58 GMT</pubDate>
            <atom:updated>2020-03-28T00:33:21.891Z</atom:updated>
            <content:encoded><![CDATA[<p>This article has been moved <a href="https://nakabonne.dev/posts/a-choice-to-start-small-service-mesh/">here</a>.</p><p>Now, the architecture called Service Mesh is attracting attention in the Microservice industry.<br>There are various products for realization, but I made a small control-plane called sxds.<br>In this article, I will introduce the means to start small Service Mesh referring to sxds.</p><p><a href="https://github.com/nakabonne/sxds">nakabonne/sxds</a></p><h3>Target reader</h3><ul><li>Those considering introducing Service Mesh</li><li>Those who want to deepen their understanding of Service Mesh</li><li>Those being Interested in Microservices</li></ul><h3>What is Service Mesh</h3><p>Briefly, it’s one of the architectures to solve various problems caused by Microservices.<br>Since the definition of Service Mesh is introduced in various articles, it’s omitted in the present article.</p><ul><li><a href="https://www.redhat.com/ko/topics/microservices/what-is-a-service-mesh">What’s a service mesh?</a></li><li><a href="https://istio.io/docs/concepts/what-is-istio/#what-is-a-service-mesh">Istio / What is Istio?</a></li><li><a href="https://www.nginx.com/blog/what-is-a-service-mesh/">What Is a Service Mesh? — NGINX</a></li><li><a href="https://www.microservices.com/talks/lyfts-envoy-monolith-service-mesh-matt-klein/">Lyft’s Envoy: From Monolith to Service Mesh — Matt Klein | Microservices.com</a></li><li><a href="https://blog.buoyant.io/2017/04/25/whats-a-service-mesh-and-why-do-i-need-one/">What’s a service mesh? And why do I need one? — blog.buoyant</a></li></ul><h3>Means of realizing Service Mesh</h3><p>The tools that realize control-plane and data-plane are as follows.<br>I will explain only what is considered representative at the time of writing here.</p><h4>control-plane</h4><ul><li><a href="https://istio.io/">Istio</a></li><li><a href="https://inch-ci.org/github/airbnb/synapse">Synapse</a></li><li><a href="https://getnelson.io/">Nelson</a></li><li><a href="https://aws.amazon.com/jp/app-mesh/">AWS App Mesh</a> (Available only as public preview at the time of writing)</li></ul><p>Istio is famous as the control-plane at the time of writing.<br>Istio encloses a data-plane. Therefore, Service Mesh can be realized by this one.<br>It’s a very good tool, but of course it’s not a silver bullet.<br>Istio exerts its effect by collecting cluster information etc from the orchestration tool.<br>In other words, it can not be effective in environments not using orchestration tools.<br>Also, Istio offers many functions, but if you use only a few functions you can not get enough benefit.</p><h4>data-plane</h4><ul><li><a href="https://www.envoyproxy.io/">Envoy</a></li><li><a href="https://linkerd.io/">Linkerd</a></li><li><a href="https://www.nginx.com/">NGINX</a></li><li><a href="https://www.haproxy.com/">HAProxy</a></li><li><a href="https://traefik.io/">Traefik</a></li></ul><p>I think that Envoy which is also adopted as Istio’s default data-plane can be considered as a representative.<br>Envoy is an L7 proxy. The feature is built on the premise of mediation of inbound and outbound traffic, so distribution tracing and dynamic service discovery can be realized at the proxy level.</p><h3>Control-plane self-making</h3><p>As I mentioned, there are lots of great tools. However, the only function I initially wanted in my project was to dynamically update the data-plane configuration for service discovery.<br>Also, since all services were running on a container management service called AWS’s ECS, we have not used orchestration tools such as k8s.<br>So I adopted Envoy for data-plane and created control-plane <a href="https://github.com/nakabonne/sxds">sxds</a> which controls it.<br>I will explain the method from the next section in detail.</p><h4>Interface</h4><p>The interface for communicating with the Envoy is published as <a href="https://www.envoyproxy.io/docs/envoy/latest/api-v2/api">data-plane-api</a>, and we will create an API that satisfies this.<br>While Envoy is the only proxy conforming to this API definition at the time of writing, the author Matt Klein is speaking on a <a href="https://blog.envoyproxy.io/the-universal-data-plane-api-d15cec7a">blog</a> to make data-plane-api generic.<br>Therefore, if this API definition becomes generic in the future, the control-plane created by you will be generic as well.<br>Also, the API that satisfies data-plane-api is called xds.</p><h4>Implementation by Go</h4><p>Envoy defines a proprietary protocol, <a href="https://github.com/envoyproxy/data-plane-api/blob/master/XDS_PROTOCOL.md">xds protocol</a>.<br>According to this, xds must be implemented in gRPC bidi stream or long polling REST.<br>It’s necessary to implement an implementation that complies with xds protocol, but only Go and Java have official libraries containing this implementation.</p><ul><li><a href="https://github.com/envoyproxy/go-control-plane">envoyproxy/go-control-plane</a></li><li><a href="https://github.com/envoyproxy/java-control-plane">envoyproxy/java-control-plane</a></li></ul><p>In sxds I selected Go, and imported go-control-plane and implemented xds server.</p><ul><li><a href="https://github.com/nakabonne/sxds/blob/master/server/xds/server.go">xds/server.go · nakabonne/sxds · GitHub</a></li></ul><p>Yes, this is the end of xds implementation. However, since go-control-plane needs to cache data-plane settings in memory, we also implemented a REST server for caching as follows.</p><ul><li><a href="https://github.com/nakabonne/sxds/blob/master/server/cacher/server.go">cacher/server.go · nakabonne/sxds · GitHub</a></li><li><a href="https://github.com/nakabonne/sxds/blob/master/server/cacher/cacher.go">cacher/cacher.go · nakabonne/sxds · GitHub</a></li></ul><p>The whole architecture looks like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*eFBElcoENe93GfH8K4ERLA.png" /></figure><h4>Static resources management</h4><p>You need to manage the static resources needed to respond to Envoy.<br>Since sxds provides four services, <a href="https://www.envoyproxy.io/docs/envoy/latest/configuration/listeners/lds">LDS</a>/<a href="https://www.envoyproxy.io/docs/envoy/latest/configuration/cluster_manager/cds">CDS</a>/<a href="https://www.envoyproxy.io/docs/envoy/latest/configuration/http_conn_man/rds">RDS</a>/<a href="https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/eds.proto#envoy-api-file-envoy-api-v2-eds-proto">EDS</a>, you need to define the following resources necessary for these services.</p><ul><li><a href="https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/lds.proto#envoy-api-msg-listener">listeners</a></li><li><a href="https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/cds.proto#cluster">clusters</a></li><li><a href="https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/rds.proto#routeconfiguration">routes</a></li><li><a href="https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/eds.proto#envoy-api-msg-clusterloadassignment">endpoints</a></li></ul><p>You also need to specify the version of the resources.<br>In order to prevent unnecessary packet exchange, the rule that no response is returned when there is no change in version is defined in xds protocol.<br>You need to define them with json and send to the server for caching.</p><ul><li><a href="https://github.com/nakabonne/sxds/blob/master/sample/resource/sidecar.json">resources/sidecar.json · nakabonne/sxds · GitHub</a></li></ul><h4>Envoy settings</h4><p>As a static resources, define information on the cluster that runs sxds.<br>As a dynamic resources, specify the cluster defined earlier.</p><ul><li><a href="https://github.com/nakabonne/sxds/blob/master/sample/envoy/envoy.yml">envoy/envoy.yml · nakabonne/sxds · GitHub</a></li></ul><h4>Execution</h4><p><strong>Execution of Envoy</strong></p><p>sxds caches resources for each node type to reduce memory consumption.<br>Therefore, it’s necessary to set the node type at startup, and set this by setting the node ID naming rule to {node_type}-something.<br>Also, since its own cluster information is required for discovery request to control-plane, please specify the cluster name as well.</p><pre>$ envoy --service-node sidecar-app1 --service-cluster app1</pre><p><strong>Execution of sxds</strong></p><pre>$ sxds<br>2018-12-01T10:00:00.518+0900    INFO    xds/server.go:56    xDS server is listening {&quot;conf&quot;: {&quot;Port&quot;:8081}}<br>2018-12-01T10:00:00.518+0900    INFO    cacher/server.go:58 cacher server is listening  {&quot;conf&quot;: {&quot;Port&quot;:8082}}</pre><p><strong>Send resources</strong></p><p>Send the json file created above to the cacher server.</p><pre>$ curl -XPUT http://{IP_ADDRESS}:8082/resources/sidecar -d @sidecar.json</pre><p>Then you should be able to confirm that the setting is reflected in Envoy.</p><h3>Conclusion</h3><p>I introduced sxds, but of course this is not perfect.<br>It becomes hard to handle when xds is made redundant, and a mechanism to persist resources json is also necessary.</p><p><strong>What I want to tell you is that using the official library of envoyproxy makes it possible to create a control-plane at low cost, and that means of self-making only the necessary functions is also a sufficiently effective means.<br>When migrating an existing service to Microservice, it’s not necessarily a modern environment.<br>In such a situation, having a means to be able to easily self-make according to the environment is a great weapon.</strong></p><p>I would be pleased if you have the choice to start small Service Mesh in your head now.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=441886b696d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Go × Clean Architecture implementation pattern]]></title>
            <link>https://medium.com/@nakabonne/go-clean-architecture-implementation-pattern-9fd5234bc5f2?source=rss-c97bf3236766------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fd5234bc5f2</guid>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[clean-architecture]]></category>
            <dc:creator><![CDATA[Ryo Nakao]]></dc:creator>
            <pubDate>Fri, 05 Oct 2018 11:22:58 GMT</pubDate>
            <atom:updated>2020-03-28T00:32:43.047Z</atom:updated>
            <content:encoded><![CDATA[<p>This article has been moved <a href="https://nakabonne.dev/posts/go-clean-architecture/">here</a>.</p><p>Click <a href="http://nakawatch.hatenablog.com/entry/2018/07/11/181453">here</a> for Japanese version</p><h3>What is Clean Architecture?</h3><p>It could be thought an architecture pattern that dissociates interest by realizing:</p><ul><li>Make domain logic independent</li><li>Make framework independent</li><li>Make UI independent</li><li>Make any external agency independent</li><li>Make domain logic easier to test</li></ul><p>you may refer to various <a href="https://8thlight.com/blog/uncle-bob/2012/08/13/the-clean-architecture.html">articles</a> for further details, and we will focus on discussing about implementation patterns.</p><h3>Sample App</h3><p><a href="https://github.com/nakabonne/cleanarchitecture-sample">nakabonne/cleanarchitecture-sample</a></p><p>It just can be used to register user by posting to /users and is based on <a href="https://github.com/manuelkiessling/go-cleanarchitecture">manuelkiessling/go-cleanarchitectur</a>e and using <a href="https://github.com/jinzhu/gorm">gorm</a> as an ORM.</p><h3>App Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*B7LkQDyDqLN3rRSrNYkETA.jpeg" /><figcaption><a href="https://8thlight.com/blog/uncle-bob/2012/08/13/the-clean-architecture.html">The Clean Architecture</a> Uncle Bob</figcaption></figure><p>Generally, it can be divided into any layers, but you should divide according to “Common Closure Principle (CCP)”; it means bunching up the components that could be changed for the common reason. This time, I divided it into four layers according to <a href="https://8thlight.com/blog/uncle-bob/2012/08/13/the-clean-architecture.html">original text</a>.<br>Be sure to make dependencies keeping in a single direction from the outside to the inside, here’s the bottom line.</p><h4>Directory structure</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f4MOU8JYom0CxdvS1gSpXw.png" /></figure><p>The chart below shows the relationship between the directories and their roles.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1eef9bbcdd3fa66ba7805bbfcc4577fb/href">https://medium.com/media/1eef9bbcdd3fa66ba7805bbfcc4577fb/href</a></iframe><h3>Be thorough on dependency</h3><p>I’ve got to walk you through an essential rule before entering the implementation explanation.<br>As mentioned earlier, dependencies must be kept in a single direction from the outside to the inside. On the contrary, any program has inputs and outputs, and scenes where the results processed inside are output to the outside frequently appear — that is, the scene that you want to depend on from the inside to the outside is typical. Solving the contradiction using the <strong>dependency inversion principle</strong> will be the key to keeping the clean architecture clean.</p><h3>What is dependency inversion principle?</h3><p>Briefly, the principle is that inside should not depend on the outside, but should depend on abstraction. It would be tough to understand, so let’s actually look at the code.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/468bcea2256a7228a16905c45e0cc60e/href">https://medium.com/media/468bcea2256a7228a16905c45e0cc60e/href</a></iframe><p>The above represents the second layer from inside, the implementation of the app business rules layer. It can be used to try to store the userinfo into the DB outside. In this scene many people tend to do accessing the outer layers directly, but you’ve got to avoid that in order to make inside not dependent on outside.<br>The key to solving that is the dependency inversion principle, you can realize it by defining the interface.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/11e3bde64a9eb5619d442cb8fafb0591/href">https://medium.com/media/11e3bde64a9eb5619d442cb8fafb0591/href</a></iframe><p>The repository interface should be defined in the same layer so that it depends on this interface. And concrete type can be kept dependency from inside to outside by passing from the outside.<br>This is the dependency inversion principle. You’d better see <a href="https://github.com/nakabonne/cleanarchitecture-sample/blob/master/src/cleanarchitecture-sample/usecase/user_ineteractor.go#L15">here</a> for better understanding.</p><h3>Implementation example of each layer</h3><p>The implementation of the inner two layers typically can be changed depending on the project; we will focus on the outer two layers.</p><h4>routing</h4><p>It was actually implemented with gin for WAF, but it’s easy to replace because this layer uses it as a tool. Also, the fact that concrete type such as DB connection and logger etc are passed to inside in this layer realizes dependency inversion principle.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a009846235e34639052b5e715d7c5636/href">https://medium.com/media/a009846235e34639052b5e715d7c5636/href</a></iframe><h4>ORM</h4><p>ORMapper is defined in Adapter layer.<br>In this case, I am devoted to solving the impedance mismatch by converting the DB optimized type to the type optimized for domain logic.<br>The adapter layer actually depends on abstraction and the interface defined in this layer depends to some extent on the outer library.<br>In principle, I looked at the following is defined:</p><blockquote>‘Abstract’ should not depend on implementation details</blockquote><p>The role of this layer is conversion; it would be natural to know both sides to some extent.<br>Please let me know if you know a better implementation pattern here.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6c0c65f82339e2bb06963e0ed33dcaf3/href">https://medium.com/media/6c0c65f82339e2bb06963e0ed33dcaf3/href</a></iframe><h3>Conclusions</h3><p>As you can see, it is just too large to make REST api just to register userinfo.<br>You can separate concerns by abstraction, yet would it be worth that much effort to you? You’ve got to think carefully. It would be often that there is no effect if the application size is small since the code becomes complicated basically when it abstracts.</p><p>It would be greatly appreciated if you could point out if there is something wrong.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fd5234bc5f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why was gRPC born?]]></title>
            <link>https://medium.com/@nakabonne/why-was-grpc-born-7e65bbca9633?source=rss-c97bf3236766------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e65bbca9633</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[grpc]]></category>
            <dc:creator><![CDATA[Ryo Nakao]]></dc:creator>
            <pubDate>Fri, 05 Oct 2018 07:03:07 GMT</pubDate>
            <atom:updated>2020-03-28T00:31:56.450Z</atom:updated>
            <content:encoded><![CDATA[<p>This article has been moved <a href="https://nakabonne.dev/posts/why-was-grpc-born/">here</a>.</p><p>The term gRPC became very famous, and articles such as “Introducing gRPC in house” and “How to build gRPC server” can now overflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*e2RMFaYNVAsjcjFWHmWvYQ.png" /></figure><p>By doing this, the hurdle for introducing gRPC has come down, and it has become possible to create a production ready gRPC server relatively easily.</p><p>But what was the origin of gRPC originated in the first place?</p><h3>Background</h3><p>In the <a href="https://grpc.io/blog/principles">gRPC Blog</a>, it is described as follows.</p><blockquote><em>Google has been using a single general-purpose RPC infrastructure called Stubby to connect the large number of microservices running within and across our data centers for over a decade. Our internal systems have long embraced the microservice architecture gaining popularity today. Having a uniform, cross-platform RPC infrastructure has allowed for the rollout of fleet-wide improvements in efficiency, security, reliability and behavioral analysis critical to supporting the incredible growth seen in that period.</em></blockquote><blockquote><em>Stubby has many great features — however, it’s not based on any standard and is too tightly coupled to our internal infrastructure to be considered suitable for public release. With the advent of SPDY, HTTP/2, and QUIC, many of these same features have appeared in public standards, together with other features that Stubby does not provide. It became clear that it was time to rework Stubby to take advantage of this standardization, and to extend its applicability to mobile, IoT, and Cloud use-cases.</em></blockquote><p>Also on the <a href="https://cloudplatform.googleblog.com/2016/08/gRPC-a-true-Internet-scale-RPC-framework-is-now-1-and-ready-for-production-deployments.html">Google Cloud Platform Blog</a>, it says:</p><blockquote><em>Building highly scalable, loosely coupled systems has always been tough. With the proliferation of mobile and IoT devices, burgeoning data volumes and increasing customer expectations, it’s critical to be able to develop and run systems efficiently and reliably at internet scale.</em></blockquote><blockquote><em>In these kinds of environments, developers often work with multiple languages, frameworks, technologies, as well as multiple first- and third-party services. This makes it hard to to define and enforce service contracts and to have consistency across cross-cutting features such as authentication and authorization, health checking, load balancing, logging and monitoring and tracing, all the while maintaining efficiency of teams and underlying resources. It becomes especially challenging in today’s cloud-native world, where new services need to be added very quickly and the expectation from each service is to be agile, elastic, resilient, highly available and composable.</em></blockquote><blockquote><em>For the past 15 years, Google has solved these problems internally with Stubby, an RPC framework that consists of a core RPC layer that can handle internet-scale of tens of billions of requests per second (yes, billions!). Now, this technology is available for anyone as part of the open-source project called </em><a href="http://www.grpc.io/"><em>gRPC</em></a><em>. It’s intended to provide the same scalability, performance and functionality that we enjoy at Google to the community at large.</em></blockquote><p>To summarize the above</p><ul><li>It is difficult to create a scalable and loosely coupled system, but in modern times where mobile etc. are popular, we have to create it</li><li>Google used a cross-platform RPC framework to handle it</li><li>But it depended heavily on Google’s internal infrastructure</li><li>Since HTTP / 2 etc appeared, it became possible to create more than the equivalent with the standard without relying on Google infrastructure</li><li>Let’s make it public based on standards standard!</li></ul><h3>Reference</h3><p>If you want to deepen your understanding of RPC, you’d better start reading from the link below.</p><ul><li><a href="https://grpc.io/blog/">https://grpc.io/blog</a></li><li><a href="https://github.com/grpc/grpc/blob/master/CONCEPTS.md">https://github.com/grpc/grpc/blob/master/CONCEPTS.md</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e65bbca9633" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>