{"id":23644579,"url":"https://github.com/appatalks/fifo_api_gateway_server","last_synced_at":"2026-04-14T03:32:51.390Z","repository":{"id":246853531,"uuid":"822855918","full_name":"appatalks/fifo_api_gateway_server","owner":"appatalks","description":"FIFO API Gateway","archived":false,"fork":false,"pushed_at":"2024-07-21T00:33:50.000Z","size":153,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T05:55:14.678Z","etag":null,"topics":["api-gateway","api-throttling","docker","ghes","github","limiter","openai","rate-limiting","server","yahoo-finance"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appatalks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2024-07-02T01:04:28.000Z","updated_at":"2024-07-21T00:33:47.000Z","dependencies_parsed_at":"2024-07-18T03:46:56.863Z","dependency_job_id":null,"html_url":"https://github.com/appatalks/fifo_api_gateway_server","commit_stats":null,"previous_names":["appatalks/fifo_api_gateway_server"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appatalks%2Ffifo_api_gateway_server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appatalks%2Ffifo_api_gateway_server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appatalks%2Ffifo_api_gateway_server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appatalks%2Ffifo_api_gateway_server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appatalks","download_url":"https://codeload.github.com/appatalks/fifo_api_gateway_server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239587226,"owners_count":19663894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["api-gateway","api-throttling","docker","ghes","github","limiter","openai","rate-limiting","server","yahoo-finance"],"created_at":"2024-12-28T12:31:27.966Z","updated_at":"2025-02-19T03:17:59.796Z","avatar_url":"https://github.com/appatalks.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## FIFO API Gateway Server\n\n### Overview\nA simple FIFO API Gateway for managing API calls, storing them in MySQL, and processing in order.\n\n### Prerequisites\n- ```Python 3.x```, ```Flask```, ```MySQL```, ```pip```\n\n#### Instructions for Production Deployment found [Here](docker/README.md).\n\n### Setup - Dev Environment / Small Deployment\n\n1. Create a ```MySQL``` **User** and **Database** on ```MySQL 8``` or better.\n   ```mysql\n   CREATE DATABASE IF NOT EXISTS api_gateway_fifo;\n   CREATE USER IF NOT EXISTS 'api_gateway'@'%' IDENTIFIED BY 'your_mysql_password';\n   GRANT ALL PRIVILEGES ON api_gateway_fifo.* TO 'api_gateway'@'%';\n   FLUSH PRIVILEGES;\n   ```\n   \n2. Clone Repository:\n   ```bash\n   git clone https://github.com/appatalks/fifo_api_gateway_server.git\n   cd api_fifo_limiter\n   ```\n\n3. Install Dependencies:\n   ```bash\n   pip install flask mysql-connector-python\n   ```\n   \n4. Initialize MySQL Database:\n   ```bash\n   python fifo_init.py\n   ```\n\n### Usage\n\n- Start Server\n  ```bash\n  python api_fifo_server.py\n  ```\n- Direct API to Server Endpoint\n  ```bash\n  curl -k -X POST https://127.0.0.1:5000/api/save -H \"Content-Type: application/json\" -d '{\"data\": \"example data\"}'\n  ```\n- Retrieve from MySQL and Delete Data;\n  ```bash\n  curl -k -X GET https://127.0.0.1:5000/api/deliver\n  ```\n\n(Use ```valid certificates```, otherwise accept ```self-signed``` as valid with ```curl -k``` flag)\n\n### See [API Endpoint Integration Examples](delivery/README.md)\n\n----\n\n## Highlights\n\n### Task Queue Management\n\n#### Background Processing\n- **Use Case**: Applications that need to manage background tasks.\n- **Benefit**: Ensures tasks are processed in the order they were received.\n\n#### Job Scheduling\n- **Use Case**: Managing job scheduling systems.\n- **Benefit**: Ensures jobs are executed in a specific order.\n- **Example**: Regularly process queued request in-line with endpoint ```ratelimit``` gates.\n\n### Logging and Analytics\n\n#### Event Logging\n- **Use Case**: Serving as an event logging system.\n- **Benefit**: Events are stored and processed in the order they occur.\n\n#### Data Analytics\n- **Use Case**: Data analytics pipelines.\n- **Benefit**: Processes data in the sequence it was received to maintain temporal consistency.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappatalks%2Ffifo_api_gateway_server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappatalks%2Ffifo_api_gateway_server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappatalks%2Ffifo_api_gateway_server/lists"}