{"id":17133372,"url":"https://github.com/chronark/vercel-keepalive-tests","last_synced_at":"2025-03-24T05:43:36.435Z","repository":{"id":105802314,"uuid":"484505839","full_name":"chronark/vercel-keepalive-tests","owner":"chronark","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-03T05:12:50.000Z","size":134,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T14:39:59.961Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chronark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2022-04-22T16:45:05.000Z","updated_at":"2022-04-22T16:46:45.000Z","dependencies_parsed_at":"2025-01-19T17:21:52.794Z","dependency_job_id":"df4fb7fa-6b9b-4db9-92bc-1fbcb6d3ecc1","html_url":"https://github.com/chronark/vercel-keepalive-tests","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronark%2Fvercel-keepalive-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronark%2Fvercel-keepalive-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronark%2Fvercel-keepalive-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronark%2Fvercel-keepalive-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chronark","download_url":"https://codeload.github.com/chronark/vercel-keepalive-tests/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245217791,"owners_count":20579297,"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":[],"created_at":"2024-10-14T19:42:02.124Z","updated_at":"2025-03-24T05:43:36.416Z","avatar_url":"https://github.com/chronark.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a [Next.js](https://nextjs.org/) application to test the latency implication of using `keepalive` between serverless functions and [Upstash Redis](https://upstash.com/) via `REST`.\n\n## Getting Started\n\nRequires `node 18` or a `fetch` polyfill for the testing script.\n\n1. Create redis database [here](https://console.upstash.com/)\n\n2. Add your url and token to `.env`\n\n3. Then run your development server:\n\n```bash\nnpm install\nnpm run dev\n```\n\n4. Run tests\n```bash\nnode ./test.js http://localhost:3000\n```\n\n## Testing on real hardware\n\n1. Create redis database [here](https://console.upstash.com/)\n\n2. Add url and token to vercel `https://vercel.com/\u003cORG\u003e/\u003cPROJECT\u003e/settings/environment-variables`\n\n3. Deploy this nextjs application\n\n4. Run tests\n```bash\nnode ./test.js \u003cDEPLOYMENT_URL_WITH_PROTOCOL_PREFIX_BUT_WITHOUT_TRAILING_SLASH\u003e\n```\n\n\n## What is going on?\n\nThis application covers 4 different scenarios:\n\n- An agent is used to keep the connection alive: yes | no\n- The agent is kept in memory outside of the api handler and is available during hot starts: yes | no\n\n\n## Results\n\n![](./chart.svg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchronark%2Fvercel-keepalive-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchronark%2Fvercel-keepalive-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchronark%2Fvercel-keepalive-tests/lists"}