Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Async Nodejs

Async Nodejs

Scheduled Pinned Locked Moved The Lounge
javascriptsysadminxmlhelp
23 Posts 11 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    M dHatter
    wrote on last edited by
    #1

    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>
    
    R D P J S 8 Replies Last reply
    0
    • M M dHatter

      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>
      
      R Offline
      R Offline
      Rage
      wrote on last edited by
      #2

      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.

      A S 2 Replies Last reply
      0
      • R Rage

        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.

        A Offline
        A Offline
        Albert Holguin
        wrote on last edited by
        #3

        ...he's gone.... mad.

        1 Reply Last reply
        0
        • R Rage

          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.

          S Offline
          S Offline
          S Houghtelin
          wrote on last edited by
          #4

          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.

          M 1 Reply Last reply
          0
          • S S Houghtelin

            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.

            M Offline
            M Offline
            M dHatter
            wrote on last edited by
            #5

            You're a power-load ;P

                           .'\\   /\`.
                         .'.-.\`-'.-.\`.
                    ...\_:   .-. .-.   :\_...
                  .'    '-.(o ) (o ).-'    \`.
                 :  \_    \_ \_\`~(\_)~\`\_ \_    \_  :
                :  /:   ' .-=\_   \_=-. \`   ;\\  :
                :   :|-..\_  '     \`  \_..-|:   :
                 :   \`:| |\`:-:-.-:-:'| |:'   :
                  \`.   \`.| | | | | | |.'   .'
                    \`.   \`-:\_| | |\_:-'   .'
                      \`-.\_   \`\`\`\`    \_.-'
                          \`\`-------'/xml>
            
            S 1 Reply Last reply
            0
            • M M dHatter

              You're a power-load ;P

                             .'\\   /\`.
                           .'.-.\`-'.-.\`.
                      ...\_:   .-. .-.   :\_...
                    .'    '-.(o ) (o ).-'    \`.
                   :  \_    \_ \_\`~(\_)~\`\_ \_    \_  :
                  :  /:   ' .-=\_   \_=-. \`   ;\\  :
                  :   :|-..\_  '     \`  \_..-|:   :
                   :   \`:| |\`:-:-.-:-:'| |:'   :
                    \`.   \`.| | | | | | |.'   .'
                      \`.   \`-:\_| | |\_:-'   .'
                        \`-.\_   \`\`\`\`    \_.-'
                            \`\`-------'/xml>
              
              S Offline
              S Offline
              S Houghtelin
              wrote on last edited by
              #6

              Enough to drive you nuts. :)

              It was broke, so I fixed it.

              1 Reply Last reply
              0
              • M M dHatter

                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>
                
                D Offline
                D Offline
                DaveAuld
                wrote on last edited by
                #7

                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

                1 Reply Last reply
                0
                • M M dHatter

                  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>
                  
                  P Offline
                  P Offline
                  Pete OHanlon
                  wrote on last edited by
                  #8

                  Errrm what? Node is async by default.

                  M 1 Reply Last reply
                  0
                  • P Pete OHanlon

                    Errrm what? Node is async by default.

                    M Offline
                    M Offline
                    M dHatter
                    wrote on last edited by
                    #9

                    Actually its both sync and async depending on the code you use.

                                   .'\\   /\`.
                                 .'.-.\`-'.-.\`.
                            ...\_:   .-. .-.   :\_...
                          .'    '-.(o ) (o ).-'    \`.
                         :  \_    \_ \_\`~(\_)~\`\_ \_    \_  :
                        :  /:   ' .-=\_   \_=-. \`   ;\\  :
                        :   :|-..\_  '     \`  \_..-|:   :
                         :   \`:| |\`:-:-.-:-:'| |:'   :
                          \`.   \`.| | | | | | |.'   .'
                            \`.   \`-:\_| | |\_:-'   .'
                              \`-.\_   \`\`\`\`    \_.-'
                                  \`\`-------'/xml>
                    
                    1 Reply Last reply
                    0
                    • M M dHatter

                      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>
                      
                      J Offline
                      J Offline
                      Jeremy Falcon
                      wrote on last edited by
                      #10

                      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

                      P M 2 Replies Last reply
                      0
                      • J 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

                        P Offline
                        P Offline
                        Pete OHanlon
                        wrote on last edited by
                        #11

                        Yes. I like it a lot.

                        J 1 Reply Last reply
                        0
                        • J 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

                          M Offline
                          M Offline
                          M dHatter
                          wrote on last edited by
                          #12

                          It's a whole new world of spaghetti goto code. But its fun :-\

                                         .'\\   /\`.
                                       .'.-.\`-'.-.\`.
                                  ...\_:   .-. .-.   :\_...
                                .'    '-.(o ) (o ).-'    \`.
                               :  \_    \_ \_\`~(\_)~\`\_ \_    \_  :
                              :  /:   ' .-=\_   \_=-. \`   ;\\  :
                              :   :|-..\_  '     \`  \_..-|:   :
                               :   \`:| |\`:-:-.-:-:'| |:'   :
                                \`.   \`.| | | | | | |.'   .'
                                  \`.   \`-:\_| | |\_:-'   .'
                                    \`-.\_   \`\`\`\`    \_.-'
                                        \`\`-------'/xml>
                          
                          J P 2 Replies Last reply
                          0
                          • M M dHatter

                            It's a whole new world of spaghetti goto code. But its fun :-\

                                           .'\\   /\`.
                                         .'.-.\`-'.-.\`.
                                    ...\_:   .-. .-.   :\_...
                                  .'    '-.(o ) (o ).-'    \`.
                                 :  \_    \_ \_\`~(\_)~\`\_ \_    \_  :
                                :  /:   ' .-=\_   \_=-. \`   ;\\  :
                                :   :|-..\_  '     \`  \_..-|:   :
                                 :   \`:| |\`:-:-.-:-:'| |:'   :
                                  \`.   \`.| | | | | | |.'   .'
                                    \`.   \`-:\_| | |\_:-'   .'
                                      \`-.\_   \`\`\`\`    \_.-'
                                          \`\`-------'/xml>
                            
                            J Offline
                            J Offline
                            Jeremy Falcon
                            wrote on last edited by
                            #13

                            Well good. Fun is fun. I like fun. It's fun and all.

                            Jeremy Falcon

                            1 Reply Last reply
                            0
                            • M M dHatter

                              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>
                              
                              S Offline
                              S Offline
                              StatementTerminator
                              wrote on last edited by
                              #14

                              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:

                              1 Reply Last reply
                              0
                              • P Pete OHanlon

                                Yes. I like it a lot.

                                J Offline
                                J Offline
                                Jeremy Falcon
                                wrote on last edited by
                                #15

                                I'll have to find an excuse to check it out then.

                                Jeremy Falcon

                                1 Reply Last reply
                                0
                                • M M dHatter

                                  It's a whole new world of spaghetti goto code. But its fun :-\

                                                 .'\\   /\`.
                                               .'.-.\`-'.-.\`.
                                          ...\_:   .-. .-.   :\_...
                                        .'    '-.(o ) (o ).-'    \`.
                                       :  \_    \_ \_\`~(\_)~\`\_ \_    \_  :
                                      :  /:   ' .-=\_   \_=-. \`   ;\\  :
                                      :   :|-..\_  '     \`  \_..-|:   :
                                       :   \`:| |\`:-:-.-:-:'| |:'   :
                                        \`.   \`.| | | | | | |.'   .'
                                          \`.   \`-:\_| | |\_:-'   .'
                                            \`-.\_   \`\`\`\`    \_.-'
                                                \`\`-------'/xml>
                                  
                                  P Offline
                                  P Offline
                                  Pete OHanlon
                                  wrote on last edited by
                                  #16

                                  Surely it's a whole new world of requires and module.exports.

                                  1 Reply Last reply
                                  0
                                  • M M dHatter

                                    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>
                                    
                                    A Offline
                                    A Offline
                                    Andy Brummer
                                    wrote on last edited by
                                    #17

                                    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

                                    1 Reply Last reply
                                    0
                                    • M M dHatter

                                      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>
                                      
                                      S Offline
                                      S Offline
                                      Shuqian Ying
                                      wrote on last edited by
                                      #18

                                      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[^].

                                      M 1 Reply Last reply
                                      0
                                      • S Shuqian Ying

                                        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[^].

                                        M Offline
                                        M Offline
                                        M dHatter
                                        wrote on last edited by
                                        #19

                                        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>
                                        
                                        S 1 Reply Last reply
                                        0
                                        • M M dHatter

                                          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>
                                          
                                          S Offline
                                          S Offline
                                          Super Lloyd
                                          wrote on last edited by
                                          #20

                                          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!

                                          S M 2 Replies Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups