{"id":16463698,"url":"https://github.com/meqdaddev/fastapi-redis-microservices-inventory","last_synced_at":"2026-06-16T07:31:44.550Z","repository":{"id":112889959,"uuid":"594854746","full_name":"MeqdadDev/fastapi-redis-microservices-inventory","owner":"MeqdadDev","description":"Microservices architecture system with FastAPI and Redis","archived":false,"fork":false,"pushed_at":"2023-02-16T05:01:31.000Z","size":299,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T14:34:59.054Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MeqdadDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-29T20:47:08.000Z","updated_at":"2023-02-16T05:01:35.000Z","dependencies_parsed_at":"2023-09-19T04:31:33.546Z","dependency_job_id":null,"html_url":"https://github.com/MeqdadDev/fastapi-redis-microservices-inventory","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MeqdadDev/fastapi-redis-microservices-inventory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeqdadDev%2Ffastapi-redis-microservices-inventory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeqdadDev%2Ffastapi-redis-microservices-inventory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeqdadDev%2Ffastapi-redis-microservices-inventory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeqdadDev%2Ffastapi-redis-microservices-inventory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MeqdadDev","download_url":"https://codeload.github.com/MeqdadDev/fastapi-redis-microservices-inventory/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeqdadDev%2Ffastapi-redis-microservices-inventory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34394387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T11:15:13.398Z","updated_at":"2026-06-16T07:31:44.535Z","avatar_url":"https://github.com/MeqdadDev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI and Redis in Microservices Architecture\n\nIn this example, I've used FastAPI and Redis database in microservices architecture context.\nI've used FastAPI as a web framework in a two services: Inventory and Payment.\n\nAlso, I've used RedisJSON (NoSQL Database) as a database for each service (each service with a different instance), and Redis Streams as a message broker.\n\n## System Design\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"System Diagram - FastAPI Microservices.jpg\" width=60% height=60%\u003e\n\u003c/p\u003e\n\n## API Endpoints\nTo reach the API endpoints, run the service and you can see and try the endpoints using this path formula:\n\n```\nlocalhost:port/redoc\n```\n\nFor example:\n\n```\nhttp://127.0.0.1:8000/redoc\n```\n\n*Note*: Run each service on a different port\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeqdaddev%2Ffastapi-redis-microservices-inventory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeqdaddev%2Ffastapi-redis-microservices-inventory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeqdaddev%2Ffastapi-redis-microservices-inventory/lists"}