well i'm just using the cookieParser middleware from express: app.use(express.cookieParser(<secret here>));
Thanks MK On Tue, Jun 4, 2013 at 4:07 AM, Mikeal Rogers <[email protected]>wrote: > what module are you using to parse the cookie? > > any sample code? > > > On Jun 3, 2013, at 3:32PM, Michal Kruk <[email protected]> wrote: > > Hi > I am writing a web application in node and i stumbled upon a big > performance issue with express signedCookies with those turned on even if > there are no cookies to parse, under load request take about 10 sec and > this is only with 100 concurrent requests, with these turned off average > request time is ~300 msec. I understand that verifying the cookie signature > will hit the cpu, but never had thought it will be that much... especially > if there is nothing to parse > > ill probably go with a random logon token saved to db with a weakmap > id->user cache on the server. > > any comments appreciated if there is a better way to do this. > Thanks MK > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
