<p>Hi everyone
Can you suggest fast TCP proxy lib? </p>
<hr/>**评论:**<br/><br/>mwholt: <pre><p>The basic idea is fairly simple: <a href="https://twitter.com/mholt6/status/605357512183799808" rel="nofollow">https://twitter.com/mholt6/status/605357512183799808</a></p>
<p>What do you need with a library?</p></pre>donja_crtica: <pre><p>I have to create something like Nginx TCP upstream proxy, but with dynamic backend. My services are deployed to Mesos.
I would like to redirect </p>
<p>elasticsearch.mydomain to HOSTIP:9300
mysql.mydomain ti HOSTIP:3036 etc</p></pre>qu33ksilver: <pre><p>Have nginx with proxy_pass and then a small lua module which selects which backend to proxy to. Use that variable in the config. Simplest I could think of.</p>
<p>Yes, this does not use Go. </p></pre>mwholt: <pre><p>You could always try using Caddy with its net server type: <a href="https://caddyserver.com/docs/net" rel="nofollow">https://caddyserver.com/docs/net</a> -- essentially a TCP proxy with just a couple lines of config.</p></pre>Hexodam: <pre><p>Check put Consul </p></pre>donja_crtica: <pre><p>Thanks guys. I will check both tomorrow. Too bad Traefik doesn't support TCP. Really good service </p></pre>hartley231: <pre><p>Envoy supports TCP proxy - <a href="https://www.envoyproxy.io/" rel="nofollow">https://www.envoyproxy.io/</a></p></pre>aleks-me2digital: <pre><p>Why not using haproxy for this job?
<a href="https://www.haproxy.com/blog/haproxy_ingress_controller_for_kubernetes/" rel="nofollow">https://www.haproxy.com/blog/haproxy_ingress_controller_for_kubernetes/</a>
<a href="https://www.haproxy.com/blog/dynamic-configuration-haproxy-runtime-api/" rel="nofollow">https://www.haproxy.com/blog/dynamic-configuration-haproxy-runtime-api/</a></p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
0 回复
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传