{"id":19702878,"url":"https://github.com/toatoes/flaskserver","last_synced_at":"2026-04-26T20:31:07.685Z","repository":{"id":258075390,"uuid":"862733464","full_name":"ToaToes/FlaskServer","owner":"ToaToes","description":"Flask server and locust file","archived":false,"fork":false,"pushed_at":"2024-09-25T05:31:32.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T15:46:09.464Z","etag":null,"topics":["flask","locust","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ToaToes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-09-25T05:23:07.000Z","updated_at":"2024-09-25T05:31:35.000Z","dependencies_parsed_at":"2024-10-17T15:10:24.390Z","dependency_job_id":null,"html_url":"https://github.com/ToaToes/FlaskServer","commit_stats":null,"previous_names":["toatoes/flaskserver"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ToaToes/FlaskServer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToaToes%2FFlaskServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToaToes%2FFlaskServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToaToes%2FFlaskServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToaToes%2FFlaskServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ToaToes","download_url":"https://codeload.github.com/ToaToes/FlaskServer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToaToes%2FFlaskServer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32312156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T19:15:34.056Z","status":"ssl_error","status_checked_at":"2026-04-26T19:15:15.467Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["flask","locust","python"],"created_at":"2024-11-11T21:16:21.988Z","updated_at":"2026-04-26T20:31:07.662Z","avatar_url":"https://github.com/ToaToes.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FlaskServer\n\n### Performance Test Assignment\nperformance testing for a service that is deployed on a \ncloud platform and configured for auto-scaling. The service has only 3 APIs: \n1. The get login API returns a session id\n2. The order API returns an order id. When the user calls this API, the user needs to \nprovide the session id and the order id will be mapped to this session id.\n3. the payment API. When the user calls this API, user needs to provide both the \nsession id and order id to make the payment. If the session id and order id are \nnot matched, the server will return an error.\n\n\n### Flask server and locust file\n\nOn your local machine, use locust or jmeter to do the following:\na. Start up the flask server flask_api.py.\nb. Execute your test case and save your test report.\nc. Do the below test automatically: increase the concurrent user number by 50 \nfor every 10 seconds, until the average response time of the payment API is \ngreater than 100ms.\n\n\nFlask API: Ensure you have a Flask API running in flask_api.py.\nLocust Installation: Install Locust if you haven’t already:\n\n```\npip install locust\n```\n\nStep 1: Start Your Flask Server\nRun your Flask API in a terminal:\n\n```\npython flask_api.py\n```\n\nStep 2: Running Locust File\n\n```\nlocust -f locustfile.py --host=http://localhost:5000  # Adjust host if necessary\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoatoes%2Fflaskserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoatoes%2Fflaskserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoatoes%2Fflaskserver/lists"}