J j_o_h_n Active Member Licensed User Longtime User Jul 20, 2021 #1 I have a jserver webserver. The b4j program that wraps(?) this will now also need to make http requests of its own based on what is in a database. What is the best way to set that up that won't interfere with it listening for incoming requests. I was thinking of a timer whose tick event made a call to a resumable sub. Is there a better way? Thank you.
I have a jserver webserver. The b4j program that wraps(?) this will now also need to make http requests of its own based on what is in a database. What is the best way to set that up that won't interfere with it listening for incoming requests. I was thinking of a timer whose tick event made a call to a resumable sub. Is there a better way? Thank you.
Erel B4X founder Staff member Licensed User Longtime User Jul 20, 2021 #2 j_o_h_n said: I have a jserver webserver. The b4j program that wraps(?) this Click to expand... jServer is a library. The B4J program is the server itself. j_o_h_n said: What is the best way to set that up that won't interfere with it listening for incoming requests. Click to expand... No need to do anything special. j_o_h_n said: I was thinking of a timer whose tick event made a call to a resumable sub. Is there a better way? Click to expand... Yes. Use background workers: [server] Background Workers Also relevant: Resumable Subs (wait for / sleep) in server handlers Upvote 0
j_o_h_n said: I have a jserver webserver. The b4j program that wraps(?) this Click to expand... jServer is a library. The B4J program is the server itself. j_o_h_n said: What is the best way to set that up that won't interfere with it listening for incoming requests. Click to expand... No need to do anything special. j_o_h_n said: I was thinking of a timer whose tick event made a call to a resumable sub. Is there a better way? Click to expand... Yes. Use background workers: [server] Background Workers Also relevant: Resumable Subs (wait for / sleep) in server handlers