|
What is this all about ?!
~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.
|
|
|
|
|
You're a power-load
.'\ /`.
.'.-.`-'.-.`.
..._: .-. .-. :_...
.' '-.(o ) (o ).-' `.
: _ _ _`~(_)~`_ _ _ :
: /: ' .-=_ _=-. ` ;\ :
: :|-.._ ' ` _..-|: :
: `:| |`:-:-.-:-:'| |:' :
`. `.| | | | | | |.' .'
`. `-:_| | |_:-' .'
`-._ ```` _.-'
``-------'/xml>
|
|
|
|
|
Enough to drive you nuts.
It was broke, so I fixed it.
|
|
|
|
|
|
Errrm what? Node is async by default.
|
|
|
|
|
Actually its both sync and async depending on the code you use.
.'\ /`.
.'.-.`-'.-.`.
..._: .-. .-. :_...
.' '-.(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'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>
|
|
|
|
|
Well good. Fun is fun. I like fun. It's fun and all.
Jeremy Falcon
|
|
|
|
|
Surely it's a whole new world of requires and module.exports .
|
|
|
|
|
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
|
|
|
|
|
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.
|
|
|
|
|
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.
|
|
|
|
|
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
.'\ /`.
.'.-.`-'.-.`.
..._: .-. .-. :_...
.' '-.(o ) (o ).-' `.
: _ _ _`~(_)~`_ _ _ :
: /: ' .-=_ _=-. ` ;\ :
: :|-.._ ' ` _..-|: :
: `:| |`:-:-.-:-:'| |:' :
`. `.| | | | | | |.' .'
`. `-:_| | |_:-' .'
`-._ ```` _.-'
``-------'/xml>
|
|
|
|
|
Our approach to utilize relational data sources is to have Nodejs to access back-end http services (WCF at present), custom built for a database of particular schema. Nodejs can handle this kind of service async calls well since they are nothing but http requests inside of the Nodejs server.
This may imply a lot of work to create and maintain the system. However we have been automating the system generation process so that much of the work can be done by computers. Only some business logic and front-ends codez need to be handled by human developers.
When it is done (Nodejs system) I could write an article about it here if I find time for it.
|
|
|
|
|
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?
|
|
|
|
|
Super Lloyd wrote: why use nodejs when you can use webapi and such like?
At least, it is less expensive to use (linux, less than 1 GB of memory, etc. to support massive connections). The savings will add up when scaling out is needed.
And secondly, from what was claimed, it can scale out more easily for interactive, event driven systems. Of couse this will eventually depends on if the application system is so designed to take advantage of the async IO nature of Nodejs. Web Api can support async ways of programming, but it (asynchrony) is based on thread pools, not on events so it is likely not as scalable as event based asynchrony. To be event driven, one need to use specialized web servers which are not available on Windows platform. If Web Api framework can be made support such servers, which I am not sure it is possible, it could take some efforts to create such kind of servers on ones own.
However, it should not be used for servers that process computational intensive jobs.
Of course what is said above is in principle, one still need to verify if they are really the case ...
|
|
|
|
|
1. Cost
2. Event / Stream driven
3. Deployment time
4. Scalability
5. Low Memory and CPU footprint
6. Great for Mobile Devices
Above are some common reasons.
JS is definitely a strange beast, but once you get use to it, you will come around. Also just a side not. If you want to see an example of how JS can really be used check out this video and learn FRP ( functional reactive programming )
Video Tutorial[^]
.'\ /`.
.'.-.`-'.-.`.
..._: .-. .-. :_...
.' '-.(o ) (o ).-' `.
: _ _ _`~(_)~`_ _ _ :
: /: ' .-=_ _=-. ` ;\ :
: :|-.._ ' ` _..-|: :
: `:| |`:-:-.-:-:'| |:' :
`. `.| | | | | | |.' .'
`. `-:_| | |_:-' .'
`-._ ```` _.-'
``-------'/xml>
|
|
|
|
|
Brand New rule for today.
143. When Life gives you lemons, make a bloody Mary and enjoy it as Life go all like WTF MANG!
Other rules and suggestions for rules can be found here[®]
»»» <small>Loading Signature</small> «««
· · · <small>Please Wait</small> · · ·
|
|
|
|
|
*Margarita
~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.
|
|
|
|
|
Bloody Margarita?
»»» <small>Loading Signature</small> «««
· · · <small>Please Wait</small> · · ·
|
|
|
|