Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #40041

Node.js: asynchronous input, and sequential processing

From Anton Shepelev <anton.txt@g{oogle}mail.com>
Newsgroups comp.lang.javascript
Subject Node.js: asynchronous input, and sequential processing
Date 2021-05-12 11:05 +0300
Organization A noiseless patient Spider
Message-ID <20210512110556.f2eb1917c4c2897f137dac40@g{oogle}mail.com> (permalink)

Show all headers | View raw


Hello, all

I hope questions about Node.js are allowed in this group. Is
it possible in Node.js to write a server that will accept
incoming packets asynchronously and at maximum speed, save
them in a queue (say in a database), and process that queue
sequentially in the order of packet arrival. That is, I seem
to need two processes: one to store packets in the queue, and
the other to process that queue. But since JavaScript is all
asynchronous and single-threaded, I do not understand
whether and how it this architecture implementable in Node.js .

-- 
()  ascii ribbon campaign - against html e-mail
/\  http://preview.tinyurl.com/qcy6mjc [archived]

Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Node.js: asynchronous input, and sequential processing Anton Shepelev <anton.txt@g{oogle}mail.com> - 2021-05-12 11:05 +0300
  Re: Node.js: asynchronous input, and sequential processing Jon Ribbens <jon+usenet@unequivocal.eu> - 2021-05-12 10:28 +0000
    Re: Node.js: asynchronous input, and sequential processing Anton Shepelev <anton.txt@g{oogle}mail.com> - 2021-05-12 14:26 +0300
      Re: Node.js: asynchronous input, and sequential processing Jon Ribbens <jon+usenet@unequivocal.eu> - 2021-05-12 11:30 +0000
  Re: Node.js: asynchronous input, and sequential processing The Natural Philosopher <tnp@invalid.invalid> - 2021-05-12 12:56 +0100
    Re: Node.js: asynchronous input, and sequential processing Anton Shepelev <anton.txt@g{oogle}mail.com> - 2021-05-13 18:59 +0300
      Re: Node.js: asynchronous input, and sequential processing The Natural Philosopher <tnp@invalid.invalid> - 2021-05-13 17:35 +0100
      Re: Node.js: asynchronous input, and sequential processing Jon Ribbens <jon+usenet@unequivocal.eu> - 2021-05-13 16:45 +0000
        Re: Node.js: asynchronous input, and sequential processing The Natural Philosopher <tnp@invalid.invalid> - 2021-05-13 17:49 +0100
          Re: Node.js: asynchronous input, and sequential processing Jon Ribbens <jon+usenet@unequivocal.eu> - 2021-05-13 17:20 +0000
            Re: Node.js: asynchronous input, and sequential processing The Natural Philosopher <tnp@invalid.invalid> - 2021-05-14 09:15 +0100
  Re: Node.js: asynchronous input, and sequential processing "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-05-13 09:53 -0700

csiph-web