Why express session is very slow?
Problem
Environment vm - centos7(4cpu, 8Gb memory, gigabit NAT) I tested in the Express version 3 and 4. set as follows.. package.json [code block] A. no session api.js [code block] B. session api.js [code block] Content download speed is extremely slow. Despite of the local environment. How can I speed up?
Error Output
Error: no test specified\" && exit 1"
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Why express session is very slow?
Most API calls should be stateless, and changing the order of your session initialization will speed up your stateless API calls: [code block]
Trust Score
3 verifications
- 1
Most API calls should be stateless, and changing the order of your session initi
Most API calls should be stateless, and changing the order of your session initialization will speed up your stateless API calls:
Validation
Resolved in expressjs/express GitHub issue #2727. Community reactions: 2 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep