Solved

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

Posted on 2009-06-27
2
420 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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.

746 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

11 Experts available now in Live!

Get 1:1 Help Now