{"id":16022305,"url":"https://github.com/stephenlb/pubnub-pam","last_synced_at":"2025-08-01T04:40:07.109Z","repository":{"id":21724203,"uuid":"25045840","full_name":"stephenlb/pubnub-pam","owner":"stephenlb","description":"Example Usage of PAM with Concurrency and Node.js","archived":false,"fork":false,"pushed_at":"2014-10-10T18:02:34.000Z","size":105,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-01T08:28:23.928Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stephenlb.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}},"created_at":"2014-10-10T17:29:46.000Z","updated_at":"2015-02-11T08:43:48.000Z","dependencies_parsed_at":"2022-08-17T19:31:22.247Z","dependency_job_id":null,"html_url":"https://github.com/stephenlb/pubnub-pam","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/stephenlb%2Fpubnub-pam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenlb%2Fpubnub-pam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenlb%2Fpubnub-pam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenlb%2Fpubnub-pam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephenlb","download_url":"https://codeload.github.com/stephenlb/pubnub-pam/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239970706,"owners_count":19727014,"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-08T18:22:41.900Z","updated_at":"2025-02-21T07:14:08.565Z","avatar_url":"https://github.com/stephenlb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PubNub Access Manager\n\nExample Usage of PAM with Concurrency and Node.js\n\n\u003e Grant Access with PubNub and a variable Concurrency\n\u003e Warning do not set concurrency too high.\n\u003e Setting concurrency too high will cause your server\n\u003e to overloaded and throw errors.\n\nThis screen capture demos a reasonable concurrency\n`node index.js -n 200 -c 20`.\n\n![PubNub Access Manager High Concurrency Grants](http://pubnub.s3.amazonaws.com/assets/pam.gif)\n\nIssue 100 requests with concurrency of 10:\n\n    node index.js -n 100 -c 10\n\nDo something *very bad* **\"too much concurrency\"**:\n\n    node index.js -n 10000 -c 2000\n\nTest many grants with reasonable concurrency:\n\n    node index.js -n 10000 -c 20\n\n## Command Line Options\n\n - `-subscribe_key 'pam'` - Subscribe Key\n - `-publish_key   'pam'` - Publish Key\n - `-secret_key    'pam'` - Secret Key\n - `-ssl true`            - SSL Mode\n - `-ttl 10`              - TTL in Minutes of Session Life\n - `-n 100`               - Number of Grants to Issue\n - `-c 10`                - Number of Concurrent Requests\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephenlb%2Fpubnub-pam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephenlb%2Fpubnub-pam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephenlb%2Fpubnub-pam/lists"}