async def METHOD_NAME():
    if not settings.rate_limit:
        logger.warning("Skipping rate limiter setup on startup (rate_limit is False)")
        return
    async def http_callback(request: fastapi.Request, response: fastapi.Response, pexpire: int):
        """Error callback function when too many requests"""
        expire = math.ceil(pexpire / 1000)
        raise fastapi.HTTPException(f"Too Many Requests. Retry After {expire} seconds.", HTTP_429_TOO_MANY_REQUESTS)
    try:
        client = redis.Redis(
            host=settings.redis_host, port=settings.redis_port, db=settings.redis_ratelim_db, decode_responses=True
        )
        logger.info(f"Connected to {client=}")
        await FastAPILimiter.init(client, http_callback=http_callback)
    except Exception:
        logger.exception("Failed to establish Redis connection")