https://github.com/stephenlb/pubnub-pam
Example Usage of PAM with Concurrency and Node.js
https://github.com/stephenlb/pubnub-pam
Last synced: 11 months ago
JSON representation
Example Usage of PAM with Concurrency and Node.js
- Host: GitHub
- URL: https://github.com/stephenlb/pubnub-pam
- Owner: stephenlb
- Created: 2014-10-10T17:29:46.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-10T18:02:34.000Z (over 11 years ago)
- Last Synced: 2025-01-01T08:28:23.928Z (over 1 year ago)
- Language: JavaScript
- Size: 103 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PubNub Access Manager
Example Usage of PAM with Concurrency and Node.js
> Grant Access with PubNub and a variable Concurrency
> Warning do not set concurrency too high.
> Setting concurrency too high will cause your server
> to overloaded and throw errors.
This screen capture demos a reasonable concurrency
`node index.js -n 200 -c 20`.

Issue 100 requests with concurrency of 10:
node index.js -n 100 -c 10
Do something *very bad* **"too much concurrency"**:
node index.js -n 10000 -c 2000
Test many grants with reasonable concurrency:
node index.js -n 10000 -c 20
## Command Line Options
- `-subscribe_key 'pam'` - Subscribe Key
- `-publish_key 'pam'` - Publish Key
- `-secret_key 'pam'` - Secret Key
- `-ssl true` - SSL Mode
- `-ttl 10` - TTL in Minutes of Session Life
- `-n 100` - Number of Grants to Issue
- `-c 10` - Number of Concurrent Requests