hello
i am on my phone so cant search, but wanted to tell you that someone did a java library that you may want to have a look
as for your question, a simple example would be an app that use dns since is fair simple
each node, say clients will show up as
<node>.node.<dc>.consul
when you register a service will become available as
<service>.service.<dc>.consul
the more you add the more will came in the dns reply, one entry with several ip
so if you have 4 web and 2 databases
and thats is, each client need to just use those dns entries and the load will be sent to the nodes providing those services
if you add a check, only health services will be part of those services, so you stop/aviod sending traffic to the non-working node
too basic?