[V4RB] Writing a simple server

Marcus Bointon marcus at synchromedia.co.uk
Mon Feb 10 16:36:17 CST 2003


on 10/2/03 16:17, jda at jda at his.com wrote:

> Hi all.
> 
> I'm thinking of creating a simple server using RB and V4RB to serve
> bibliographic data over the web. I've been playing with sockets and
> HTTP, and I think it will be rather easy to implement. Basically,
> I'll set up a "listener" and, when it receives a query, fetch the
> data, organize it, and send it back to the browser. FWIW, I'll
> probably wait for RB 5 to actually release this because the new
> ServerSocket class is a lot more robust than the Socket control
> offered in earlier versions.
> 
> I'm wondering if anyone else on this list has done something like
> this, and if so what their experience was. What are the problems that
> I should be anticipating (like multithreading -- I'm happy to have
> queries queued, because I don't intend this to be an
> industrial-strength solution, but even so might there be problems
> with concurrent hits)? Is there a limit on the amount of data one can
> return?

Would it not be a better idea to concentrate on dealing with the data and
leave the actual serving to something else, i.e. Apache? It's pretty easy to
write this kind of thing in PHP or similar, and these days you can use
Valentina there too (he says, not having got it actually working yet!)...

Marcus
-- 
Marcus Bointon
Synchromedia Limited: Putting you in the picture

marcus at synchromedia.co.uk | http://www.synchromedia.co.uk



More information about the Valentina mailing list