{"componentChunkName":"component---src-templates-tag-page-js","path":"/tags/redis/","result":{"data":{"site":{"siteMetadata":{"title":"M.Hassan Ahmed","author":"Hassan11196"}},"allMarkdownRemark":{"totalCount":2,"edges":[{"node":{"excerpt":"Rate Limiting a FastAPI Service with a Token Bucket Most of my FastAPI services sit in front of something expensive. Behind the endpoint is…","fields":{"slug":"/2026-08-14-fastapi-token-bucket-rate-limiting/"},"frontmatter":{"date":"2026-08-14T00:00:00.000Z","title":"Rate Limiting a FastAPI Service with a Token Bucket","description":"Add per-user rate limiting to a FastAPI backend with the token bucket algorithm: an in-process version, an atomic Redis script, 429s, and the failure modes.","tags":["FastAPI","Python","Redis","Backend","LLM"],"thumbnail":null}}},{"node":{"excerpt":"FastAPI BackgroundTasks vs a Task Queue You add a document endpoint. The upload is small, but indexing it means fetching the file, splitting…","fields":{"slug":"/2026-08-04-fastapi-background-tasks-vs-task-queue/"},"frontmatter":{"date":"2026-08-04T00:00:00.000Z","title":"FastAPI BackgroundTasks vs a Task Queue","description":"FastAPI BackgroundTasks run inside your web process and disappear on restart. When that is fine, when you need a real task queue, and how to move over.","tags":["FastAPI","Python","Backend","Redis","Architecture"],"thumbnail":null}}}]}},"pageContext":{"tag":"Redis"}},"staticQueryHashes":["32046230"]}