Without knowing the specifics of what you're doing, its hard for anyone to
really make a judgment on that.
If your SBCL code will be pulling in data from various and sundry sources,
and the quality of that data is at all under question (i.e. syntax or
formatting errors, prone to human error or malicious intent, etc) or if the
information from the users is at all sensitive (financial?) I'd say its best
to separate things into individual SBCL instances.
If this isn't true, it may indeed be beneficial to thread in an individual
SBCL instance.
But again, it all depends on what you're doing. You haven't done it before,
so necessarily there will be some exploration and research needed on your
part. My suggestion is to just get coding. Find some examples - simple or
otherwise and just dig in. It's easy in Lisp to throw together the main
concepts of your application and make a mess. Somewhere in that process the
'right way' will come to you. Then throw everything out and do it the right
way.
2010/7/29 Slobodan Milnović <slobodan.milnovic@...>
> Hi.
>
> I've been planning one project for a while now, but I'm still
> undecided which direction to take.
>
> The project will be web based, using weblocks, under x86-64 linux
> (Debian, if that makes any difference). There will be three main
> logical parts. One part will be the listener/sender that will be
> collecting data and storing it in the postgresql and sending commands
> to the data sources, one for the web administration of the project and
> data sources, and one for the data processing with the web pages for
> the users that will display the collected and processed data.
>
> Since I'm not quite experienced in using common lisp and sbcl
> implementation (especially not using threads), and this will be my
> first project using weblocks, I haven't decided if it would be better
> to run it all in one sbcl instance as several threads, or to run each
> part in its own sbcl instance. I guess it would be best to run it all
> in one instance. On the other hand, in the case of problems, if one
> part breaks for some reason, other parts would still work in separate
> sbcl instances? I'd like to hear an experienced opinions and advices.
> How would you do it? I don't need source, but pointers and
> documentation would be great.
>
> Also, if someone has some nice links and documents that demonstrate
> and explain how to make an daemon written in the common lisp (with
> gotchas and stuff), especially for the sbcl of course, it would be
> very much appreciated. I know that there are already several projects
> written in CL that work as daemons (so I can read source, which I do),
> but I hope that there are some "simple" examples for the beginners to
> try also.
>
> Thanks in advance.
>
> --
> Poći ću s vama jer volim šalu, hoću da vidim ježa budalu.
> Put u Japan - http://ofcan.wordpress.com
>
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> Sbcl-help mailing list
> Sbcl-help@...
> https://lists.sourceforge.net/lists/listinfo/sbcl-help
>
|