Re: Euphoria website down, members being lost

new topic     » goto parent     » topic index » view thread      » older message » newer message
ghaberek said...

TLDR

Proposed long-term solution:

  1. Build an eval() function, or equivalent "Euphoria-in-a-shell" shared library (DLL/SO) for dynamically running Euphoria code within a single process.
  2. Build a web server in Euphoria that uses multitasking to accept and process each requesting users's TCP connection.
  3. Use each task to process the appropriate web server activities, which includes launching Euphoria CGI apps with what was built in #1.
  4. ...?
  5. Profit!

I have SCGI written in Euphoria. It is a single process that accepts requests via TCP/IP from a SCGI compliant server. It's pretty cool as the Euphoria process starts up, connects to the database, then sits idle waiting for a connection. Once it gets a connection, it processes the request and then starts waiting for another. This is a huge time saver as it does no parsing of Euphoria code for each request. It only does it once at start. It does not connect the database server each request, only each process that is run, which is once for every 5-6k requests.

My initial tests on a simple database app shows a CGI responding to about 80 requests a second. The same app run under a SCGI setting is nearing 1000 requests a second. The problem, again, is that our web host will not support such a process because it's really a daemon running, so, we are using CGI right now.

Jeremy

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu