Solved

In doGet() and doPost(), which is Fast?

Posted on 2009-06-27
2
421 Views
Last Modified: 2013-11-24
In doGet() and doPost() methods ,which is the fastest method, and tell me why?
0
Comment
Question by:haneefnb
2 Comments
 
LVL 6

Accepted Solution

by:
Ravi Kalla earned 500 total points
ID: 24728359
Theoretically, DoGet might be slightly faster if we set the response content length since the same connection is used - thus increasing the performance. DoPost is slower compared to doGet since doPost does not write the content length.

Also remember that the speed with which a servlet container responds to doGet and doPost mainly depends on how much data is submitted with the request and also on the statements your servlet methods contain. HTTP post forms are often designed to submit longer free-form text content. If any servlet request handler does a great deal of data retrieval, network communication and processing it will take longer to execute, regardless of the submission method.
0
 

Author Closing Comment

by:haneefnb
ID: 31597495
Thanks..
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
linearIn  challenge 23 81
wordmultiple challenge 12 116
Java asynchronous logging 4 50
Windows 10 and JDK 7 7u85 4 31
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now