Halon Rate Service
This is the documentation for Halon Rate Service halon-rated.
It’s a lightweight clustered sliding window rate limit service using opportunistic UDP for synchronization.
For more advanced use-cases (or where a sliding window rate isn’t needed) softwares like Redis may be more appropriate.
It is important to note that since the rated daemon is using UDP for syncing the rates it’s not possible to 100% guarantee that packets are never lost, either during the initial sync at startup or during regular operation. Because of this we recommend using the rate function for things where it’s not critical that the rates are always 100% identical in the cluster and that rate data is never lost.
The aim of the rated process is to be a very simple and fast rate database which is why it has been designed this way. Other solutions might be a better fit if data consistency is very important.
The package consists of one service called halon-rated which can be used to coordinate various rates from within HSL in a cluster. It needs the client library of halon-extras-rate.