Kong / lua-resty-dns-client

Lua DNS client, load balancer, and utility library
http://kong.github.io/lua-resty-dns-client/topics/README.md.html
Apache License 2.0
152 stars 52 forks source link

refactor(balancer) split dns and balancer logic #59

Closed Tieske closed 6 years ago

Tieske commented 6 years ago

A lot of the code in the balancer is DNS related, fanning out hosts to underlying addresses and tracking them over DNS updates. This disentangles them, such that the DNS related code now becomes a base class that can be used to build balancers on top. The ring balancer just being one of them.

Todo:

Tieske commented 6 years ago

@hishamhm I've updated the docs to match the code. Please review for merge.