{"id":30739143,"url":"https://github.com/ap-dev-github/bfhl-exam","last_synced_at":"2026-02-14T17:02:09.723Z","repository":{"id":312221625,"uuid":"1046728450","full_name":"ap-dev-github/bfhl-exam","owner":"ap-dev-github","description":"This is the submission of the REST API made for the Bajaj Full Stack exam. It uses Cloudflare’s edge network to run the API at near-zero latency and at a very low cost. It can be used for free for up to one million requests per month, and it can practically handle around 30,000 concurrent requests.","archived":false,"fork":false,"pushed_at":"2025-08-29T07:06:06.000Z","size":492,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-29T10:26:40.815Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://bfhl-fullstack-exam-api-production.devversioncv.workers.dev/bfhl","language":null,"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/ap-dev-github.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,"zenodo":null}},"created_at":"2025-08-29T06:09:27.000Z","updated_at":"2025-08-29T07:06:10.000Z","dependencies_parsed_at":"2025-08-29T10:28:14.429Z","dependency_job_id":"0154985f-6698-4829-a1f1-fbccd07e6d1e","html_url":"https://github.com/ap-dev-github/bfhl-exam","commit_stats":null,"previous_names":["ap-dev-github/bfhl-exam"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ap-dev-github/bfhl-exam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ap-dev-github%2Fbfhl-exam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ap-dev-github%2Fbfhl-exam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ap-dev-github%2Fbfhl-exam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ap-dev-github%2Fbfhl-exam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ap-dev-github","download_url":"https://codeload.github.com/ap-dev-github/bfhl-exam/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ap-dev-github%2Fbfhl-exam/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29450586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T15:52:44.973Z","status":"ssl_error","status_checked_at":"2026-02-14T15:52:11.208Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2025-09-03T22:45:33.872Z","updated_at":"2026-02-14T17:02:09.699Z","avatar_url":"https://github.com/ap-dev-github.png","language":null,"readme":"## 👤 Candidate Information\n\n**Name:** Ayush Pandey  \n**Registration Number:** 22BCE7723  \n**LinkedIn:** [https://www.linkedin.com/in/linkedap/](https://www.linkedin.com/in/linkedap/)  \n**College Email:** ayush.22bce7723@vitapstudent.ac.in  \n**Personal Emails:** \n- inbox.ayushpandey@gmail.com\n- ayushpandey.cs@gmail.com\n\n**Institution:** Vellore Institute of Technology - Amaravati\n\n\n### A high-performance REST API built on Cloudflare's Global Edge Network, designed for the Bajaj Full Stack Exam.\n\nEndpoint of the API\n```\nhttps://bfhl-fullstack-exam-api-production.devversioncv.workers.dev/bfhl\n```\n## 🌟 Features\n\n- **Global Edge Deployment**: Deployed across Cloudflare's worldwide network of 300+ edge locations\n- **Exceptional Performance**: p99 latency of 0 milliseconds (worst case)\n- **DDoS Protection**: Durable Object-based rate limiting with 2-second cooling period between requests IP based.\n- **High Concurrency**: Capable of handling 30-40k concurrent requests (even more with globally distributed users)\n- **Future-Ready**: Architecture prepared for JWT implementation\n\n### POST /bfhl\n\nProcesses an array of data and returns separated numbers, letters, and other information.\n\n**Request:**\n```json\n{\n  \"data\": [\"1\", \"334\", \"4\", \"A\", \"R\", \"$\"]\n}\n```\nResponse:\n```\njson\n{\"is_success\":true,\n\"api_response_time\":\"0 milli-second\",\n\"user_id\":\"ayush_pandey_15092002\",\n\"email\":\"ayush.22bce7723@vitapstudent.ac.in\",\n\"roll_number\":\"22BCE7723\",\n\"odd_numbers\":[\"1\"],\n\"even_numbers\":[\"334\",\"4\"],\n\"alphabets\":[\"A\",\"R\"],\n\"special_characters\":[\"$\"],\n\"sum\":\"339\",\n\"concat_string\":\"Ra\"}\n```\n\nTest with cURL\n```\nbash\ncurl -X POST https://bfhl-fullstack-exam-api-production.devversioncv.workers.dev/bfhl \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"data\": [\"1\", \"334\", \"4\", \"A\", \"R\", \"$\"]\n  }'\n```\n\n\n## 🚀 Performance \u0026 Scaling\n\n- **Free Tier Limits**: 100,000 requests/day (Cloudflare Workers free plan)\n- **Concurrent Requests**: Practically handles 30,000-40,000 concurrent connections even more if the request distributed worldwide.\n- **Global Distribution**: Enhanced performance worldwide due to edge network deployment\n- **Zero Cold Starts**: Instant response times across all regions due to V8 isolate based runtime.\n\n## 🔒 Rate Limiting \u0026 Security\n\n- **Durable Object Rate Limiter**: Prevents DDoS attacks effectively\n- **Cooling Period**: 2 seconds enforced between requests from same origin\n- **Automatic Scaling**: No manual intervention required for traffic spikes\n\n## 🛠️ Technical Stack\nRuntime: Cloudflare Workers\n\nStorage: Cloudflare Durable Objects (for rate limiting)\n\nNetwork: Cloudflare Global Edge Network\n\nLanguage: JavaScript\n\n## 🧪 Testing\nThe API has been thoroughly tested using Postman:\n\nNormal API Request Test\n\u003cp align=\"center\"\u003e \u003cimg src=\"postman-testing-screenshots/postmancheck.jpg\" width=\"800\"/\u003e \u003c/p\u003e\nEdge Case Testing\n\u003cp align=\"center\"\u003e \u003cimg src=\"postman-testing-screenshots/edge-case.jpg\" width=\"800\"/\u003e \u003c/p\u003e\nRate Limiter Verification\n\u003cp align=\"center\"\u003e \u003cimg src=\"postman-testing-screenshots/rate-limiter%20check.jpg\" width=\"800\"/\u003e \u003c/p\u003e\n\n\n## 📈 Future Enhancements\nJWT-based authentication ready for implementation\n\n📄 License\nThis project is created for Bajaj Full Stack Exam submission.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fap-dev-github%2Fbfhl-exam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fap-dev-github%2Fbfhl-exam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fap-dev-github%2Fbfhl-exam/lists"}