dream11 / kong-scalable-rate-limiter

Kong plugin for Rate Limiting at high throughputs.
https://dream11.github.io/kong-scalable-rate-limiter/
MIT License
37 stars 10 forks source link

Add hostname resolution to ip #17

Open jeremyjpj0916 opened 1 year ago

jeremyjpj0916 commented 1 year ago

Allows the redis host to be an ip or a true resolvable hostname much like the field redis_host implies.

Uses the same libs and such that Kong uses and since this is a Kong plugin I think makes sense to just reuse their ways.

jeremyjpj0916 commented 1 year ago

Noting my colleague @chaitanya14 tested this out today in our non-prod env and confirmed DNS to IP was working as expected!

jeremyjpj0916 commented 1 year ago

@chaitanya14 I added a unit test but I am not sure if I setup hostname correctly so docker could do FDQN to IP resolution correctly. Does this look right or have you done this?

image