Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - prime

#1
newLISP in the real world / Re: Web app server
August 06, 2019, 04:47:54 AM
Hi Ralph,



Thank you very much for your quick and informative response ;o)



It is persistence I am seeking, I'm investigating if newLISP can act as a http web app server behind a proxy server, indeed I'd like to be able to spin up multiple newLISP 'servers' (on separate ports) and use nginx to load balance between them...allowing for concurrent connections.



I'd prefer not to use .cgi as I'd like to make MySQL connections once, not every time the script is called. I tried to download your 'ranwar.tgz' link earlier, thinking this may be what I am looking for....do you think it might be?



An alternative is to create a http server using the inbuilt socket library, however, there is clearly already http protocols going on...its how do I tap into those for a persistent web app server?



Best regards ;oD
#2
newLISP in the real world / Web app server
August 06, 2019, 01:44:24 AM
Hi all,



I'm very new to newLISP and this forum, so apologies if this has been answered before:



Can newLISP be used to create a standalone http web app server?

e.g. using the TCP sockets (in which case the html protocol would need implementing)

or does the -http mode already allow this, i.e. if I provide a .lsp file for the server entry point which can then call other .lsp scripts and implement routing etc. (as per node.exe)



Many thanks in advance.