Welcome! Log In Create A New Profile

Advanced

Module Question

November 09, 2009 02:12PM
Hello All,

I'm considering writing a module that would provide javascript as a backend development language. I would like to get some advice on the best way to implement this. I was considering using a thread pool/queue combination to load and run scripts.

For example:

1. Initialize thread pool/queue on first run and stash pointer in module specific storage
2. Receive request
3. Queue request (queuing request wakes up thread to process)
4. Module returns
5. Thread sends response when processing is completed.

Note: threads take care of javasript related activities (ie; load, run, etc.).

Does this sound like a workable solution?

Thanks,
-G
Subject Author Posted

Module Question

gerryw November 09, 2009 02:12PM

Re: Module Question

Akins, Brian November 09, 2009 02:52PM

Re: Module Question

gerryw November 09, 2009 03:10PM

Re: Module Question

张立冰 November 09, 2009 08:46PM

Re: Module Question

张立冰 November 09, 2009 08:48PM

Re: Module Question

Peter A Leonov November 10, 2009 05:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 266
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready