https://github.com/ajsalemo/fastapiexponentialbackoff
Trying out Fast API to implement exponential backoff when connecting to a MySQL instance
https://github.com/ajsalemo/fastapiexponentialbackoff
api async await azure database fastapi json mysql pip pipenv python sqlalchemy
Last synced: 3 months ago
JSON representation
Trying out Fast API to implement exponential backoff when connecting to a MySQL instance
- Host: GitHub
- URL: https://github.com/ajsalemo/fastapiexponentialbackoff
- Owner: Ajsalemo
- Created: 2021-05-10T19:54:59.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-13T19:23:38.000Z (almost 5 years ago)
- Last Synced: 2025-05-21T05:36:24.187Z (about 1 year ago)
- Topics: api, async, await, azure, database, fastapi, json, mysql, pip, pipenv, python, sqlalchemy
- Language: Python
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FastAPIExponentialBackoff
Trying out Fast API to implement exponential backoff when connecting to a MySQL instance
## Overview
A CRUD based REST API that connects to an Azure Database for MySQL instance. The idea behind this was to implement exponential backoffs/retries on non-programming related exceptions (ex. Operational errors) in a basic implementation.
### Endpoints
- `"/"` - GET request. Root path.
- `"/api/book/find/all"` - GET request. Finds all records.
- `"/api/book/find/{id}"` - GET request. Accepts an integer to look up its associated record.
- `"/api/book/add"` - POST request. Accepts a request body in JSON format to add a new record.
- `"/api/book/delete/{id}"` - DELETE request. Accepts an integer to look up and delete its associated record.
- `"/api/book/update/{id}"` - PUT request. Accepts an integer to look up and update its associated record.