https://github.com/meqdaddev/fastapi-redis-microservices-inventory
Microservices architecture system with FastAPI and Redis
https://github.com/meqdaddev/fastapi-redis-microservices-inventory
Last synced: 10 days ago
JSON representation
Microservices architecture system with FastAPI and Redis
- Host: GitHub
- URL: https://github.com/meqdaddev/fastapi-redis-microservices-inventory
- Owner: MeqdadDev
- License: mit
- Created: 2023-01-29T20:47:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-16T05:01:31.000Z (over 3 years ago)
- Last Synced: 2025-02-27T14:34:59.054Z (over 1 year ago)
- Language: Python
- Size: 292 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FastAPI and Redis in Microservices Architecture
In this example, I've used FastAPI and Redis database in microservices architecture context.
I've used FastAPI as a web framework in a two services: Inventory and Payment.
Also, 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.
## System Design
## API Endpoints
To reach the API endpoints, run the service and you can see and try the endpoints using this path formula:
```
localhost:port/redoc
```
For example:
```
http://127.0.0.1:8000/redoc
```
*Note*: Run each service on a different port