Resources for learning Go + gRPC + Kubernetes?

blov · · 475 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Hi all, I want to move towards using this as my stack and becoming extremely knowledgeable about it hopefully and I was wondering what resources people used when they were learning this combo. Thanks!</p> <hr/>**评论:**<br/><br/>tinrab: <pre><p>What&#39;s stopping you from learning them separately? Just setup a gRPC server inside a container on one of the pods. Then call it from another. I have a minimal example project on <a href="https://github.com/tinrab/kubernetes-go-grpc-tutorial">GitHub</a>.</p></pre>zanven42: <pre><p>I would also highly recommend this route to learn those things, it&#39;s much easier to debug what&#39;s wrong as your learning seperately.</p> <p>Get kubernetes working and have a few services chatting to each other via rest from a request you send so you can see the result from chained service calls in the backend and verify its working</p> <p>Learn grpc and have a few local booted services intercommunicate in the same way. </p> <p>Than drop in a grpc version to replace the previously created simple rest services. </p> <p>I&#39;ve found it useful to write a little script to generate all your proto&#39;s and then move the resulting go files to package folders within your project so all your services can reference them via the gopath so your clients and servers have the same updated file without the risk of human error from needing to copy paste stuff around. My current folder structure is like so.</p> <pre><code>Protos/ service1.proto Services/ service1/ service1.proto.go main/ service1-main.go </code></pre> <p>Thus clients can easily reference other services to make calls against, and I have a utility package which just reads in all my services url/port information from environment variables so each one knows how to contact each other and made it easy to have local Dev testing and work in the cloud as you set the environment variables in the docker file or some build tool. </p> <p>But ofcourse I haven&#39;t fully flushed out if I like that structure since I&#39;m still semi new to using grpc in production and it&#39;s in flux currently for me so just decide on a method that suits you and your project, I hope my example helped you wrap your head around some stuff.</p></pre>JamaiKen: <pre><p>Hey! Love your website, I&#39;ve read just about every article you&#39;ve got! The website is so damn fast! I know its a SPA, angular 4? What the secret sauce to the speed?</p></pre>tinrab: <pre><p>It&#39;s made with GatsbyJS and hosted on S3.</p></pre>puffybunion: <pre><p>I would think of these as separate tasks like the other commenter said.</p> <p>I assume you already know Go so I would say the next step is to get familiar with gRPC... Just start with a basic gRPC setup. Then as you get comfortable with that you should move on to k8s.</p> <p>One more thing, you should absolutely have a project or some idea to test these new things on... Otherwise you won&#39;t progress much from the tutorial stage. A project will make all the warts come out and dealing with those is how you&#39;ll actually get to learn those new technologies.</p></pre>royge: <pre><p>I think you can find similar episode(s) from justforfunc videos ;)</p></pre>slowcodetochina: <pre><p>I messed around with <a href="https://github.com/ahmetb/coffeelog" rel="nofollow">this repo</a>, it&#39;s a pretty thorough and practical example.</p></pre>glassmountain: <pre><p>Funnily enough, I just saved this article to read later. Maybe it&#39;ll help you too: <a href="https://outcrawl.com/getting-started-microservices-go-grpc-kubernetes/" rel="nofollow">https://outcrawl.com/getting-started-microservices-go-grpc-kubernetes/</a></p></pre>Pagedpuddle65: <pre><p>I’ll just plug my project for testing gRPC services with a GUI client. Might be useful as you’re learning. It also has some nice features for hitting kubernetes services. </p> <p><a href="https://github.com/troylelandshields/omgrpc" rel="nofollow">https://github.com/troylelandshields/omgrpc</a></p></pre>chilladx: <pre><p>Here is a paper on gRPC, with a step by step presentation: <a href="https://medium.com/pantomath/how-we-use-grpc-to-build-a-client-server-system-in-go-dd20045fa1c2" rel="nofollow">https://medium.com/pantomath/how-we-use-grpc-to-build-a-client-server-system-in-go-dd20045fa1c2</a></p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

475 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传