server vs not server

Roger Eller roger.e.eller at sealedair.com
Wed Jan 20 10:31:04 EST 2016


Mike,

I like not having to leave a session logged in just to run a daemon, or a
LC instance.  If there is a power failure, my server reboots, and scripts
are available.  Otherwise, after a power failure, I have to log in and
start the daemons.  It is speedy, but for my applications (in-house), what
I found most advantageous is for network database access.  Previously, I
had to ensure that all my clients had the proper drivers, etc. but in this
configuration, only the server has to have access.  My LC client apps just
send http requests and sql data is returned, and no DSN or driver or even a
database command is ever sent from the client.  You could also communicate
with sockets, if that is your thing.

~Roger


On Wed, Jan 20, 2016 at 9:56 AM, Mike Kerner <MikeKerner at roadrunner.com>
wrote:

> Roger,
> But why do it in server instead of just having another instance of LC
> running, sitting off in its own space?  Since you don't have a message box,
> any output is going to require email, push, or writing to a file.  Is
> Server just a beast for speed?  You can't possibly save enough memory from
> avoiding the GUI to make it worth while.
>
> Server managing several other server instances is sexy, but I'm trying to
> gage when switching over is the thing to do.
>
> On Wed, Jan 20, 2016 at 9:36 AM, Roger Eller <roger.e.eller at sealedair.com>
> wrote:
>
> > Hey Mike,
> >
> > Most daemons I have built with LC will poll a folder at a set time
> > interval, and act accordingly dependent upon what it finds in the folder.
> > A polling interval set too short can make the server slower.  Setting it
> > too long makes the users complain about waiting 30 seconds or a minute.
> > Using LC Server for the same tasks makes it on-demand, and much more
> > efficient.  The only con is that some tasks may require elevated
> > privileges, and since it isn't being run by a normal user, this can be
> > tricky.  I have some of both, but my goal is to port all my daemons to LC
> > server scripts.
> >
> > ~Roger
> >
> > On Wed, Jan 20, 2016 at 8:55 AM, Mike Kerner <MikeKerner at roadrunner.com>
> > wrote:
> >
> > > I have a bunch of stacks that run, constantly, doing a variety of
> things.
> > > Some are even run as daemons by other processes.  So, I suppose they
> > could
> > > run in server, but I'm still unclear as to why I would choose to do
> that.
> > >
> > > --
> > > On the first day, God created the heavens and the Earth
> > > On the second day, God created the oceans.
> > > On the third day, God put the animals on hold for a few hours,
> > >    and did a little diving.
> > > And God said, "This is good."
> > > _______________________________________________
> > > use-livecode mailing list
> > > use-livecode at lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>    and did a little diving.
> And God said, "This is good."
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list