towerops/lib/towerops/rate_limit.ex
2026-02-08 10:08:31 -06:00

10 lines
283 B
Elixir

defmodule Towerops.RateLimit do
@moduledoc """
Rate limiting module using Hammer with ETS backend.
Provides in-memory rate limiting for auth and API endpoints.
Buckets are automatically cleaned up based on the configured clean_period.
"""
use Hammer, backend: :ets
end