Hi Oleg, This is a sample program to demonstrate the behavior. Actual application is a servlet (Which internally uses HTTPClient APIs to access different server interfaces including but not limited to file servers i.e., this is a frontend high secure server available to a team of people who doesn't have internet access). We wanted to support accessing HTTP/2 only servers using this Application which is why we are trying the new Classic Facade API.
On Tue, Sep 2, 2025 at 9:34 PM Oleg Kalnichevski <[email protected]> wrote: > On Tue, 2025-09-02 at 21:18 +0530, sreenivas somavarapu wrote: > > Hi Team, > > > > We are trying to use the new Classic API facade (i.e., > > HttpAsyncClients.classic) to download a 100 MB file from the internet > > Why would anyone in their sane mind want to do that? > > Oleg > > > > and we are seeing it is taking more time (approximately 10x more > > time) to download than Async / Sync APIs (Multiple times ran the test > > and observed same results). Attached is the program we are using for > > testing. Is there any setting which we need to specifically perform > > in case of the new Classic API facade? > > Note: Time calculation includes API instance creation and downloading > > of file > > > > sync4x - Classic Synchronous 4.5 APIs being used > > > > > > sync - Classic Synchronous 5.5 APIs being used > > > > > > async - ASynchronous 5.5 APIs being used > > > > > > syncasync - Classic API facade 5.5 APIs being used > > > > Sample run results > > > > C:\>java -jar FileDownloadTesting.jar sync4x > > downloadFileSync - Code execution took 27880 ms for downloading > > https://mmatechnical.com/Download/Download-Test-File/(MMA)-100MB.zip > > > > C:\>java -jar FileDownloadTesting.jar sync > > downloadFileSync - Code execution took 22431 ms for downloading > > https://mmatechnical.com/Download/Download-Test-File/(MMA)-100MB.zip > > > > C:\>java -jar FileDownloadTesting.jar syncasync > > downloadFileSyncAsync - Code execution took 316865 ms for > > downloadinghttps:// > mmatechnical.com/Download/Download-Test-File/(MMA)-100MB.zip > > > > C:\>java -jar FileDownloadTesting.jar async > > downloadFileASync - Code execution took 21446 ms for downloading > > https://mmatechnical.com/Download/Download-Test-File/(MMA)-100MB.zip > > > > C:\>java -jar FileDownloadTesting.jar syncasync > > downloadFileSyncAsync - Code execution took 283624 ms for > > downloadinghttps:// > mmatechnical.com/Download/Download-Test-File/(MMA)-100MB.zip > > > > -- > > Cheers, > > S. Sreenivas > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Cheers, S. Sreenivas
