Ask golang: How are you writing your microservices and serverless code?

xuanbao · · 508 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<ul> <li>Which technologies are you using?</li> <li>Which protocols?</li> <li>Your best practices?</li> </ul> <hr/>**评论:**<br/><br/>plafoucr: <pre><p>Keep it stupid simple :) No framework, and pure http(s) You’ll have a time to improve once necessary </p></pre>blackflicker: <pre><p>I agree! I&#39;m also using it that way. I just wonder what people are using as well.</p></pre>mlcdf_: <pre><p>Not even something like gorilla/mux to define your routes?</p></pre>plafoucr: <pre><p>We’re developing micro services, so if gorilla mux isn’t required in one of them, we don’t use it. You can always improve performance by using a different router (and it’s not the main reason for using mux), but we try to keep the dependencies to the minimum. </p></pre>mlcdf_: <pre><p>Okay, thanks!</p></pre>StevenTheBirdSeagull: <pre><p>Go + gRPC + Kubernetes</p></pre>blackflicker: <pre><p>Do you use cloud services like AWS etc?</p></pre>StevenTheBirdSeagull: <pre><p>Yes, I use aws.</p></pre>Mittalmailbox: <pre><p>No framework. Just use chi as router gRPC as protocol</p></pre>titpetric: <pre><p>Do you have an example of a chi/gRPC app lying around? I was going to do something with both interfaces, but there wasn&#39;t a really nice pattern which I felt comfortable with for passing data around (and hopefully not duplicating the structs between protobuf/json...).</p></pre>blackflicker: <pre><p>Yep, chi is idiomatic, that&#39;s why I like it. Do you use distributed transactions? I use consul for that. But, I&#39;m trying to stay away from txns as possible.</p></pre>snowzach: <pre><p>Is there a reason you like chi over the http mux stuff I&#39;ve seen for most grpc setups? I&#39;ve not run into an example combining chi and grpc.</p></pre>svarog: <pre><p>Use RabbitMQ as messaging system. Connect to it using amqp library.</p> <p>No framework. Just some library code to create subscribe-and-handle routines, and that&#39;s it.</p></pre>redditbanditking: <pre><p>What are you guys using for service discovery?</p></pre>blackflicker: <pre><p>Hi. I&#39;m recently using Consul. <a href="https://www.consul.io/intro/vs/index.html" rel="nofollow">Check out</a> the differences.</p></pre>

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

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