I have a simple NGINX router setup, where:
- If I first send the GET request (which contains HANG 10)
- And immediately send the POST request,
- The POST request waits until the GET request finishes (i.e., after 10 seconds), instead of executing independently.
Thank you very much for the detailed response.
I have set up a simple test system based on the documentation from https://github.com/chrisemunt/mg-dbx-napi to test the asynchronous execution of functions in Caché.
The Node.js router executes a long-running process via the GET method, by using the hang function in Cache. The POST method executes a simple method in Caché.
The connection to Caché is established via IP and 'do start^%zmgsi(0)'.
Given the following setup, I would expect that when calling in the order:
The POST method would return its result first. However, what happens is that the POST method is only executed after the GET method has finished.
The example with Fastify and qoper8-fastify does not seem to work on Windows, with node v18.17.0. Does it also work with Cache? What are the conditions or requirements for support?
"package.json"
And this is the output:
{"level":30,"time":1743005153761,"pid":15512,"hostname":"WIN-LK41IH4IP6C","reqId":"req-1","req":{"method":"GET","url":"/helloworld","hostname":"localhost:3000","remoteAddress":"127.0.0.1","remotePort":63889},"msg":"incoming request"}
1743005153765: try processing queue: length 1
1743005153765: no available workers
1743005153766: starting new worker
1743005153985: Unable to load onStartup customisation module mgdbx-worker-startup.mjs
1743005153992: {"stack":"Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'd:'\n at new NodeError (node:internal/errors:405:5)\n at throwIfUnsupportedURLScheme (node:internal/modules/esm/load:131:11)\n at defaultLoad (node:internal/modules/esm/load:82:3)\n at nextLoad (node:internal/modules/esm/loader:163:28)\n at ESMLoader.load (node:internal/modules/esm/loader:603:26)\n at ESMLoader.moduleProvider (node:internal/modules/esm/loader:457:22)\n at new ModuleJob (node:internal/modules/esm/module_job:64:26)\n at #createModuleJob (node:internal/modules/esm/loader:480:17)\n at ESMLoader.getModuleJob (node:internal/modules/esm/loader:434:34)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","message":"Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'd:'","code":"ERR_UNSUPPORTED_ESM_URL_SCHEME"}
1743005153997: response received from Worker: 0
Hi Rob,
I’ve sent the request to the support email on March 30th. Is the email address correct rtweed @ mgateway.com? Do you think there’s a chance to get this up and running for Cache and Windows?
thank you.
--
You received this message because you are subscribed to a topic in the Google Groups "Enterprise Web Developer Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/enterprise-web-developer-community/mPmD3PgFM4Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to enterprise-web-develope...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/enterprise-web-developer-community/9e5f8211-d41c-41bc-b987-7dba0839c045n%40googlegroups.com.