Async Nodejs
-
Got my new custom async Nodejs webserver running. I tested it with Jmeter and it shows about 41,000 connections a second with no error. Seems pretty fast for a slow ass dev server. I notice the Jmeter is using 65% cpu and nodejs is about 15% to 30%. There is still room for improvement. I would like to get to the 100k connection level for one machine. One can only dream... :wtf: I'm actually impressed what this V8 engine can do.
.'\\ /\`. .'.-.\`-'.-.\`. ...\_: .-. .-. :\_... .' '-.(o ) (o ).-' \`. : \_ \_ \_\`~(\_)~\`\_ \_ \_ : : /: ' .-=\_ \_=-. \` ;\\ : : :|-..\_ ' \` \_..-|: : : \`:| |\`:-:-.-:-:'| |:' : \`. \`.| | | | | | |.' .' \`. \`-:\_| | |\_:-' .' \`-.\_ \`\`\`\` \_.-' \`\`-------'/xml>
-
Got my new custom async Nodejs webserver running. I tested it with Jmeter and it shows about 41,000 connections a second with no error. Seems pretty fast for a slow ass dev server. I notice the Jmeter is using 65% cpu and nodejs is about 15% to 30%. There is still room for improvement. I would like to get to the 100k connection level for one machine. One can only dream... :wtf: I'm actually impressed what this V8 engine can do.
.'\\ /\`. .'.-.\`-'.-.\`. ...\_: .-. .-. :\_... .' '-.(o ) (o ).-' \`. : \_ \_ \_\`~(\_)~\`\_ \_ \_ : : /: ' .-=\_ \_=-. \` ;\\ : : :|-..\_ ' \` \_..-|: : : \`:| |\`:-:-.-:-:'| |:' : \`. \`.| | | | | | |.' .' \`. \`-:\_| | |\_:-' .' \`-.\_ \`\`\`\` \_.-' \`\`-------'/xml>
-
What is this all about ?! :confused:
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.
...he's gone.... mad.
-
What is this all about ?! :confused:
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.
Read it to the AC/DC tune "You Shook Me All Night Long"
Got my new custom async
Nodejs webserver running
I tested it with Jmeter and it shows about 41,000 connections...It was broke, so I fixed it.
-
Read it to the AC/DC tune "You Shook Me All Night Long"
Got my new custom async
Nodejs webserver running
I tested it with Jmeter and it shows about 41,000 connections...It was broke, so I fixed it.
You're a power-load ;P
.'\\ /\`. .'.-.\`-'.-.\`. ...\_: .-. .-. :\_... .' '-.(o ) (o ).-' \`. : \_ \_ \_\`~(\_)~\`\_ \_ \_ : : /: ' .-=\_ \_=-. \` ;\\ : : :|-..\_ ' \` \_..-|: : : \`:| |\`:-:-.-:-:'| |:' : \`. \`.| | | | | | |.' .' \`. \`-:\_| | |\_:-' .' \`-.\_ \`\`\`\` \_.-' \`\`-------'/xml>
-
You're a power-load ;P
.'\\ /\`. .'.-.\`-'.-.\`. ...\_: .-. .-. :\_... .' '-.(o ) (o ).-' \`. : \_ \_ \_\`~(\_)~\`\_ \_ \_ : : /: ' .-=\_ \_=-. \` ;\\ : : :|-..\_ ' \` \_..-|: : : \`:| |\`:-:-.-:-:'| |:' : \`. \`.| | | | | | |.' .' \`. \`-:\_| | |\_:-' .' \`-.\_ \`\`\`\` \_.-' \`\`-------'/xml>
Enough to drive you nuts. :)
It was broke, so I fixed it.
-
Got my new custom async Nodejs webserver running. I tested it with Jmeter and it shows about 41,000 connections a second with no error. Seems pretty fast for a slow ass dev server. I notice the Jmeter is using 65% cpu and nodejs is about 15% to 30%. There is still room for improvement. I would like to get to the 100k connection level for one machine. One can only dream... :wtf: I'm actually impressed what this V8 engine can do.
.'\\ /\`. .'.-.\`-'.-.\`. ...\_: .-. .-. :\_... .' '-.(o ) (o ).-' \`. : \_ \_ \_\`~(\_)~\`\_ \_ \_ : : /: ' .-=\_ \_=-. \` ;\\ : : :|-..\_ ' \` \_..-|: : : \`:| |\`:-:-.-:-:'| |:' : \`. \`.| | | | | | |.' .' \`. \`-:\_| | |\_:-' .' \`-.\_ \`\`\`\` \_.-' \`\`-------'/xml>
The V8 engine is only part of the story, I think the non-blocking event nature of node.js probably has more to do with it. Scaling Node.js to Tens of Thousands of Concurrent Users and Beyond[^] Edit: That wasn't the video I was originally thinking of, this is the one: A Million Connections...and Beyond! - Node.js at Scale[^]
Dave Find Me On:Web|Facebook|Twitter|LinkedIn Folding Stats: Team CodeProject
-
Got my new custom async Nodejs webserver running. I tested it with Jmeter and it shows about 41,000 connections a second with no error. Seems pretty fast for a slow ass dev server. I notice the Jmeter is using 65% cpu and nodejs is about 15% to 30%. There is still room for improvement. I would like to get to the 100k connection level for one machine. One can only dream... :wtf: I'm actually impressed what this V8 engine can do.
.'\\ /\`. .'.-.\`-'.-.\`. ...\_: .-. .-. :\_... .' '-.(o ) (o ).-' \`. : \_ \_ \_\`~(\_)~\`\_ \_ \_ : : /: ' .-=\_ \_=-. \` ;\\ : : :|-..\_ ' \` \_..-|: : : \`:| |\`:-:-.-:-:'| |:' : \`. \`.| | | | | | |.' .' \`. \`-:\_| | |\_:-' .' \`-.\_ \`\`\`\` \_.-' \`\`-------'/xml>
Errrm what? Node is async by default.
-
Errrm what? Node is async by default.
Actually its both sync and async depending on the code you use.
.'\\ /\`. .'.-.\`-'.-.\`. ...\_: .-. .-. :\_... .' '-.(o ) (o ).-' \`. : \_ \_ \_\`~(\_)~\`\_ \_ \_ : : /: ' .-=\_ \_=-. \` ;\\ : : :|-..\_ ' \` \_..-|: : : \`:| |\`:-:-.-:-:'| |:' : \`. \`.| | | | | | |.' .' \`. \`-:\_| | |\_:-' .' \`-.\_ \`\`\`\` \_.-' \`\`-------'/xml>
-
Got my new custom async Nodejs webserver running. I tested it with Jmeter and it shows about 41,000 connections a second with no error. Seems pretty fast for a slow ass dev server. I notice the Jmeter is using 65% cpu and nodejs is about 15% to 30%. There is still room for improvement. I would like to get to the 100k connection level for one machine. One can only dream... :wtf: I'm actually impressed what this V8 engine can do.
.'\\ /\`. .'.-.\`-'.-.\`. ...\_: .-. .-. :\_... .' '-.(o ) (o ).-' \`. : \_ \_ \_\`~(\_)~\`\_ \_ \_ : : /: ' .-=\_ \_=-. \` ;\\ : : :|-..\_ ' \` \_..-|: : : \`:| |\`:-:-.-:-:'| |:' : \`. \`.| | | | | | |.' .' \`. \`-:\_| | |\_:-' .' \`-.\_ \`\`\`\` \_.-' \`\`-------'/xml>
I still haven't fully wrapped my head around Node.js. Is it supposed to allow people to code things in JavaScript outside of a browser, a bit like how Adobe's Flex crap works?
Jeremy Falcon
-
I still haven't fully wrapped my head around Node.js. Is it supposed to allow people to code things in JavaScript outside of a browser, a bit like how Adobe's Flex crap works?
Jeremy Falcon
Yes. I like it a lot.
-
I still haven't fully wrapped my head around Node.js. Is it supposed to allow people to code things in JavaScript outside of a browser, a bit like how Adobe's Flex crap works?
Jeremy Falcon
It's a whole new world of spaghetti goto code. But its fun :-\
.'\\ /\`. .'.-.\`-'.-.\`. ...\_: .-. .-. :\_... .' '-.(o ) (o ).-' \`. : \_ \_ \_\`~(\_)~\`\_ \_ \_ : : /: ' .-=\_ \_=-. \` ;\\ : : :|-..\_ ' \` \_..-|: : : \`:| |\`:-:-.-:-:'| |:' : \`. \`.| | | | | | |.' .' \`. \`-:\_| | |\_:-' .' \`-.\_ \`\`\`\` \_.-' \`\`-------'/xml>
-
It's a whole new world of spaghetti goto code. But its fun :-\
.'\\ /\`. .'.-.\`-'.-.\`. ...\_: .-. .-. :\_... .' '-.(o ) (o ).-' \`. : \_ \_ \_\`~(\_)~\`\_ \_ \_ : : /: ' .-=\_ \_=-. \` ;\\ : : :|-..\_ ' \` \_..-|: : : \`:| |\`:-:-.-:-:'| |:' : \`. \`.| | | | | | |.' .' \`. \`-:\_| | |\_:-' .' \`-.\_ \`\`\`\` \_.-' \`\`-------'/xml>
Well good. Fun is fun. I like fun. It's fun and all.
Jeremy Falcon
-
Got my new custom async Nodejs webserver running. I tested it with Jmeter and it shows about 41,000 connections a second with no error. Seems pretty fast for a slow ass dev server. I notice the Jmeter is using 65% cpu and nodejs is about 15% to 30%. There is still room for improvement. I would like to get to the 100k connection level for one machine. One can only dream... :wtf: I'm actually impressed what this V8 engine can do.
.'\\ /\`. .'.-.\`-'.-.\`. ...\_: .-. .-. :\_... .' '-.(o ) (o ).-' \`. : \_ \_ \_\`~(\_)~\`\_ \_ \_ : : /: ' .-=\_ \_=-. \` ;\\ : : :|-..\_ ' \` \_..-|: : : \`:| |\`:-:-.-:-:'| |:' : \`. \`.| | | | | | |.' .' \`. \`-:\_| | |\_:-' .' \`-.\_ \`\`\`\` \_.-' \`\`-------'/xml>
M@dHatter wrote:
I tested it with Jmeter and it shows about 41,000 connections a second with no error.
It's all fun and games until you hit the database :sigh:
-
Yes. I like it a lot.
I'll have to find an excuse to check it out then.
Jeremy Falcon
-
It's a whole new world of spaghetti goto code. But its fun :-\
.'\\ /\`. .'.-.\`-'.-.\`. ...\_: .-. .-. :\_... .' '-.(o ) (o ).-' \`. : \_ \_ \_\`~(\_)~\`\_ \_ \_ : : /: ' .-=\_ \_=-. \` ;\\ : : :|-..\_ ' \` \_..-|: : : \`:| |\`:-:-.-:-:'| |:' : \`. \`.| | | | | | |.' .' \`. \`-:\_| | |\_:-' .' \`-.\_ \`\`\`\` \_.-' \`\`-------'/xml>
Surely it's a whole new world of
requires
andmodule.exports
. -
Got my new custom async Nodejs webserver running. I tested it with Jmeter and it shows about 41,000 connections a second with no error. Seems pretty fast for a slow ass dev server. I notice the Jmeter is using 65% cpu and nodejs is about 15% to 30%. There is still room for improvement. I would like to get to the 100k connection level for one machine. One can only dream... :wtf: I'm actually impressed what this V8 engine can do.
.'\\ /\`. .'.-.\`-'.-.\`. ...\_: .-. .-. :\_... .' '-.(o ) (o ).-' \`. : \_ \_ \_\`~(\_)~\`\_ \_ \_ : : /: ' .-=\_ \_=-. \` ;\\ : : :|-..\_ ' \` \_..-|: : : \`:| |\`:-:-.-:-:'| |:' : \`. \`.| | | | | | |.' .' \`. \`-:\_| | |\_:-' .' \`-.\_ \`\`\`\` \_.-' \`\`-------'/xml>
Whenever I've put it head to head with async asp.net on similar hardware asp.net has ended up with about twice the performance or more. It's much easier to just throw stuff together in node though, and meteor was pretty awesome the last time I played around with it.
Curvature of the Mind now with 3D
-
Got my new custom async Nodejs webserver running. I tested it with Jmeter and it shows about 41,000 connections a second with no error. Seems pretty fast for a slow ass dev server. I notice the Jmeter is using 65% cpu and nodejs is about 15% to 30%. There is still room for improvement. I would like to get to the 100k connection level for one machine. One can only dream... :wtf: I'm actually impressed what this V8 engine can do.
.'\\ /\`. .'.-.\`-'.-.\`. ...\_: .-. .-. :\_... .' '-.(o ) (o ).-' \`. : \_ \_ \_\`~(\_)~\`\_ \_ \_ : : /: ' .-=\_ \_=-. \` ;\\ : : :|-..\_ ' \` \_..-|: : : \`:| |\`:-:-.-:-:'| |:' : \`. \`.| | | | | | |.' .' \`. \`-:\_| | |\_:-' .' \`-.\_ \`\`\`\` \_.-' \`\`-------'/xml>
We are building a production system for Nodejs relational data service (front) layers right now. From what we are getting, it seems to be good at present. Of course we haven't done any performence comparision yet.
Find more in vertical search portal[^]. Email searcher Email Aggregation Manager[^].
-
We are building a production system for Nodejs relational data service (front) layers right now. From what we are getting, it seems to be good at present. Of course we haven't done any performence comparision yet.
Find more in vertical search portal[^]. Email searcher Email Aggregation Manager[^].
Our problem was using database drivers. Most are not designed to handle async event load. We switched to mongo, which seems to work better, but it's hard to say without large data to test with. If you want to bounce any ideas around message me. Latez :-D
.'\\ /\`. .'.-.\`-'.-.\`. ...\_: .-. .-. :\_... .' '-.(o ) (o ).-' \`. : \_ \_ \_\`~(\_)~\`\_ \_ \_ : : /: ' .-=\_ \_=-. \` ;\\ : : :|-..\_ ' \` \_..-|: : : \`:| |\`:-:-.-:-:'| |:' : \`. \`.| | | | | | |.' .' \`. \`-:\_| | |\_:-' .' \`-.\_ \`\`\`\` \_.-' \`\`-------'/xml>
-
Got my new custom async Nodejs webserver running. I tested it with Jmeter and it shows about 41,000 connections a second with no error. Seems pretty fast for a slow ass dev server. I notice the Jmeter is using 65% cpu and nodejs is about 15% to 30%. There is still room for improvement. I would like to get to the 100k connection level for one machine. One can only dream... :wtf: I'm actually impressed what this V8 engine can do.
.'\\ /\`. .'.-.\`-'.-.\`. ...\_: .-. .-. :\_... .' '-.(o ) (o ).-' \`. : \_ \_ \_\`~(\_)~\`\_ \_ \_ : : /: ' .-=\_ \_=-. \` ;\\ : : :|-..\_ ' \` \_..-|: : : \`:| |\`:-:-.-:-:'| |:' : \`. \`.| | | | | | |.' .' \`. \`-:\_| | |\_:-' .' \`-.\_ \`\`\`\` \_.-' \`\`-------'/xml>
just a silly question... why use nodejs when you can use webapi and such like? It's not a rhetorical question, I don't like JS.. :~ though I am getting used to it slowly.. but I couldn't fathom using it in place where there are perfectly working other solution, wondering what might cause other people to do the jump! Speaking of which, javascript joke, what is the value of this?
My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!