News for hackers. Stuff that matters.
Re:HashiCorp – S1 by nuker on Friday November 05, 2021 @12:33AM (#29115486)
> Consul - EVERYONE should use service discovery, cloud or not.

Discovery means that you don’t know your service name? Or endpoints? How can one lose his service? Im def missing something :)

Re:HashiCorp – S1 by nsotelo on Friday November 05, 2021 @03:18AM (#29116295)
There are many scenarios where it's useful, but I will illustrate a simple and important one.

When you do a rolling upgrade, a new service must be assigned to an available port different to the existing one. After starting you'll probably run some health checks, and once satisfied you'll want to switch traffic over to the new instance and halt the old. How do you tell the rest of your infrastructure what the new port is? Service discovery.

Re:HashiCorp – S1 by nuker on Friday November 05, 2021 @06:29AM (#29117399)
I make a new stack, new VMs, new loadbalancer and just update dns record of the service from old stack to new. Thats blue-green.

Rolling is trickier, but still, native cloud solutions do not use service discovery, imho.

Re:HashiCorp – S1 by jordanbeiber on Friday November 05, 2021 @03:10PM (#29123551)
What you’re describing took place with on-prem iron as well - nothing cloud about it. At all.

Service discovery is in part DNS with low ttl, but there’s a part of it that ties in to configuration management, monitoring and observability as well.

If you “update dns” that means you’re doing a part of what consul does (only f ex nomad does it for you). Nothing magic, but you still “need it”.

Tags and metadata is a large part of it though, as well as configuring things automatically based on state of the SD and K/V.

In the end - whatever works, I guess.

Re:HashiCorp – S1 by jordanbeiber on Friday November 05, 2021 @02:52AM (#29116156)
Many services, many teams. Coupled with health-checks, monitoring and tracing it’s an important piece of the puzzle if you want to move quick in a distributed setting - which most large organisations are.
Re:HashiCorp – S1 by OJFord on Friday November 05, 2021 @04:37AM (#29116771)
Its name yes, just not where it is or how to get there. DNS on a smaller scale.