🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.socket
2 messages
2 total messages Started by Frank Gruber Wed, 22 Nov 2006 20:06
Optimization
#1697
Author: Frank Gruber
Date: Wed, 22 Nov 2006 20:06
26 lines
1955 bytes
Hi.

Did not get a response in the language group so I will post the Indy 
sepcific parte here and hope to get an answer.

I'm trying to optimize performance of a x-tier app I have written. If I 
put the application server and presentation server on different machines 
latency of the application increases noticeably. I did not see this 
problem by moving the database server to a different machine.

What happens:

The presentation server is a TIdHttpServer decendant. If it receives a 
request from a browser it posts one or more xml encapsulated requests 
via TIdHTTP::Post to the application server. The application server 
sends back the xml encapsulated responses and the presentation server 
creates a HTML page out of it and sends it back to the client.

Any ideas why TIdHTTP::Post ist so much faster over a loopback 
connection than a LAN connection? I tested with 100-BaseT and 1000-BaseT 
which shows no difference at all (The amount of data transferred is 
quite small about 5k)

Thanks
Regards,
Frank
Re: Optimization
#1698
Author: Remy Lebeau (TeamB)
Date: Thu, 23 Nov 2006 08:51
11 lines
1129 bytes
"Frank Gruber" <ZJQBBYSESPEZ@spammotel.com> wrote in message
news:4564acdf$1@newsgroups.borland.com...

> Any ideas why TIdHTTP::Post ist so much faster over
> a loopback connection than a LAN connection?

Because the loopback connection is not going over the network at all.


Gambit
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads