Backend Development21 min
Fail-Open vs Fail-Closed Middleware: Hono + Redis (2026)
Build resilient Hono middleware that fails open or fails closed when Redis is down: auth, feature flags, rate limits, plus a typed TypeScript circuit breaker.
Tag
3 posts
Backend Development21 min
Build resilient Hono middleware that fails open or fails closed when Redis is down: auth, feature flags, rate limits, plus a typed TypeScript circuit breaker.
Backend Development20 min
Add production rate limiting to a Node.js API with Upstash Redis sliding windows: reusable Hono middleware, 429 + Retry-After headers, multi-tier limits.
Cloud & DevOps19 min
Deploy a production Bun + Hono app on Fly.io: multi-stage Bun Dockerfile, fly.toml with auto-stop machines and health checks, secrets, and graceful shutdown.