chore: add rate limit example

This commit is contained in:
firest 2023-08-11 11:31:15 +08:00
parent 4e974851e0
commit 2a0f5f8ba5
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
## Rate Limit
## Rate limiting is applied on the listener
listeners.tcp.my_tcp_listener_name {
## Connections per second per listener
max_conn_rate = "1000/s"
## Incoming messages per second per client
messages_rate = "1000/s"
## Incoming message size in bytes per second per client
bytes_rate = "1MB/s"
}