🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1697

Optimization

#1697
From: 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
Technical Details
Message-ID: <4564acdf$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!transit.news.xs4all.nl!xs4all!news2.euro.net!213.132.189.2.MISMATCH!multikabel.net!feed20.multikabel.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,1407bfec4c3041ed,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 22 Nov 2006 21:06:51 +0100
From: Frank Gruber <ZJQBBYSESPEZ@spammotel.com>
User-Agent: Thunderbird 1.5.0.2 (Windows/20060308)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Optimization
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 88.74.5.188
Message-ID: <4564acdf$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1164225759 88.74.5.188 (22 Nov 2006 12:02:39 -0700)
Lines: 26
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!transit.news.xs4all.nl!xs4all!news2.euro.net!213.132.189.2.MISMATCH!multikabel.net!feed20.multikabel.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail