Hentra / dyndns-netcup-go

Dynamic DNS client for the netcup dns api written in go.
MIT License
48 stars 8 forks source link

keep ips of last run and only change when different #1

Closed osr00 closed 4 years ago

osr00 commented 4 years ago

For performance reasons it would be good if the application stores the ips it sended last time and first checks only if they are changed. Only when changed it should communicate with the netcup server.

This way it would be possible to start the app once per minute via cron and it only accesses netcup if needed. This would reduces network traffic a lot.

Hentra commented 4 years ago

This sounds reasonable. I will try and see if I can implement this behaviour. It requires a cache solution which is currently not build into the system.

Hentra commented 4 years ago

Current idea on the implementation of the ip cache: