[Lazarus] Lazarus make me create better apps

Razvan Adrian Bogdan lightningflash at gmail.com
Fri May 7 15:11:17 CEST 2010


On Fri, May 7, 2010 at 5:06 AM, Michael Schnell <mschnell at lumino.de> wrote:

> > - Non persistent safe CGI,
> AKA doing a Command Line tool: Hard to debug with Lazarus.
>
Done this and works well in Delphi at work using PWU and custom HTML
templates and handwritten JavaScript (nice language for client side),
persistence is implemented using JSON as it's a common web format and our
app is quite interactive, i found a way to debug this using breakpoints in
Delphi doing a loop that is forced at the beginning and i change a variable
using the debugger after "Attach to process", not optimal but it works just
like services only for each user click you do this again, the debugger could
be detected on Windows instead of changing the variable, also done this in
Lazarus at home for a smaller project, logging was all i needed for the
smaller project.


> > - Persistent building a module/plugin (not safe), or using FastCGI,
> > SCGI or a small HTTP server behind a bigger one,
> A built-in HTTP server is nice for testing (EXTP provides this).
>
I don't mean building a full HTTP server just a "thin"  HTTP server that
serves the application page not the resources, more like a HTTP service just
like FastCGI but without the extra complexities of FastCGI, do you really
need FastCGI's authentication system ?
I think there is a healthy modproxy for doing this in Apache to link with
your tiny app server.


> FastCGI (communicating with pipes or TCPIP sockets with the WebServer)
> of course is the most "Linux standard" ways
>
It is OK but it is blamed for not having a updated Apache module.


> I don't know about SCGI.
>
Just like FastCGI but claims to be simpler.


> With Windows/IIS you additional have ISAPI. Here the SCI-program needs
> to be a DLL.
>


> A colleague of mine did the ISAPI thing with Delphi, doing just a
> miniature DLL that communicates with some message system with a free
> running program that does the real work. Now this program can be
> debugged in the normal way. Something like this can be used to convert
> ISAPI or standard CGI to FastCGI.
>
>  Writing DLLs is ok for if you don't do anything except forwarding but you
need to build them for every destination OS, 32/64 and each server you are
planning to support, wouldn't just be simpler to build the HTTP service
behind the real HTTP server and just run that, i understand that many Java
apps do this.

Razvan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20100507/86179728/attachment-0004.html>


More information about the Lazarus mailing list