If you have decent TTLs dns doesn’t result in a shitstorm of lookups, nor does it require anything more powerful than a raspberry pi to respond to them
http://eureka-0.eureka.default.svc.cluster.local:eureka:8761/eureka
http://eureka-1.eureka.default.svc.cluster.local:eureka:8761/eureka
http://eureka-2.eureka.default.svc.cluster.local:eureka:8761/eurekaThis applies equally to any kind of lookup service you use. It's not a distinguishing feature of DNS.
The distinguishing features of DNS are that it's a global, highly regulated, key-value storage with only eventual consistency that may take days to reach. (It has probably never been consistent on practice.) None of those features are desirable for your internal servers configuration.
IPs are opaque and meaningless. Maybe you can keep in your head that “.2 is the database, .3 is the web server, .4 is the redis, .5 is the other api, .6 is the other database”, but I can’t and wouldn’t even if I could.
DNS is rarely the problem.
contains a lot of information outside of an external lookup.
It's the only thing you can guarantee will never change. The name points to exactly that server.
I’m all for DNS instead of IP’s, but we need to stop encoding too much information into names…
Makes me wonder what GP does with the plate when he finishes his dinner.
Cattle = paper plate
I'll let the reader make the connections
Get a sheet of paper. Draw a line down the middle. Put the IP in one column. Put the thing on it on the other side. Tape to wall, or put in binder.
>...but I can’t and wouldn’t even if I could.
>DNS is rarely the problem.
People that can't even be arsed to remember where their bits are on the other hand...
(You don't want L3 failover, trust me when I say it won't work as you expect.)