Upstash getRemaining() vs limit()
limit() consumes a token. getRemaining() doesn’t. Use getRemaining() for status endpoints and UI counters. Built this for ray.tinte.dev .
// read-only, no token consumed
const { remaining } = await rl.getRemaining(id);
// consumes a token
const { success } = await rl.limit(id);