Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2009-06-27
2
Medium Priority
?
433 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
Ravi Kalla earned 1500 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

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…
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.
Suggested Courses

636 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