TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

HashiCorp Consul 1.2: Service Mesh

148 pointsby onnimonnialmost 7 years ago

7 comments

syllogismalmost 7 years ago
If you&#x27;re using Consul for web services, I really recommend the Traefik web server: <a href="https:&#x2F;&#x2F;traefik.io" rel="nofollow">https:&#x2F;&#x2F;traefik.io</a><p>Traefik replaces Nginx: it&#x27;s the reverse proxy that maps the incoming requests to your various services, which are advertising on some arbitrary localhost port.<p>The amazing thing is that Traefik integrates with Consul: you only need to point it to your Consul endpoint, and it can automatically publish your services! You can also do other dynamic configuration of Traefik, e.g. by publishing a service via a REST API, via Kubernetes, etc.<p>I&#x27;ve struggled for years to get Nginx configured correctly, and it&#x27;s been frustrating to have no alternative. In Nginx, dynamic binding is a premium feature. In the free version, you have to rewrite the config and restart the service. That&#x27;s not fun if you expect services to come and go as part of your natural life-cycle.<p>Traefik&#x27;s still pretty young. Notably, the docs are shit. But the application is well-designed, and it compiles as a single self-contained binary (as it&#x27;s written in Go).
评论 #17400457 未加载
评论 #17400563 未加载
评论 #17399127 未加载
评论 #17400019 未加载
评论 #17400766 未加载
mochtaralmost 7 years ago
If you want to try the new Connect feature from Consul yourself, we&#x27;ve put up an interactive tutorial on our Instruqt learning platform, together with the nice folks at HashiCorp: <a href="https:&#x2F;&#x2F;play.instruqt.com&#x2F;hashicorp&#x2F;tracks&#x2F;connect" rel="nofollow">https:&#x2F;&#x2F;play.instruqt.com&#x2F;hashicorp&#x2F;tracks&#x2F;connect</a>
评论 #17400561 未加载
评论 #17400211 未加载
评论 #17403547 未加载
chuhnkalmost 7 years ago
I&#x27;ve been using Consul as part of micro (<a href="https:&#x2F;&#x2F;github.com&#x2F;micro&#x2F;micro" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;micro&#x2F;micro</a>) for 3 years now. It&#x27;s a great mechanism for service discovery. This additional feature is going to be seamlessly integrated. They&#x27;ve done a fantastic job of pushing forward Consul as a whole.
评论 #17400205 未加载
essetialmost 7 years ago
If I use Kubernetes, this service is superfluous, right? Instead, it&#x27;s useful if you use Docker containers in other fashion since services should communicate with each other.
评论 #17401119 未加载
评论 #17408907 未加载
Already__Takenalmost 7 years ago
sidebar: I&#x27;m quite fond of hcl[0] I hope it worms its way through more systems as a config format option<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;hashicorp&#x2F;hcl" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hashicorp&#x2F;hcl</a>
评论 #17401067 未加载
评论 #17404482 未加载
jrs95almost 7 years ago
Damn, this is nice. If this had been around a few months ago I don&#x27;t think I&#x27;d be using Kubernetes right now.
kamuraalmost 7 years ago
Could someone care to elaborate what are the main differences between Consul and Istio? What would be the primary reasons to choose one service mesh over the other?
评论 #17398995 未加载
评论 #17400263 未加载
评论 #17399095 未加载