This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Performance and the fly likes What is meant by avoiding  roundtrips to the server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "What is meant by avoiding  roundtrips to the server " Watch "What is meant by avoiding  roundtrips to the server " New topic
Author

What is meant by avoiding roundtrips to the server

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi ,

while designing an Architecture , for a Application , people always suggest to avoid round trips to the server .

could anybody please tell me what is meant by round trip and if possible any such scenario .

Thanks .


Save India From Corruption - Anna Hazare.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6657
    
    5

This should help -> server round trip


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

This should help ->


didn't helped man.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29233
    
138

Ravi,
Network calls are expensive especially if you have a lot of them. For example, suppose I need to get 20 items a table in the database. And assume my database and application server are on different machines. I could send 20 SQL queries by primary key to get the data. This is 20 round trips. Or I could send one SQL query to get all 20 things. This is one roundtrip.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

I got it , THANK YOU .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is meant by avoiding roundtrips to the server
 
Similar Threads
What is meant by publishing to the server?
SMTP Server
Query
Types of Multi Threading !!
Preventing url hacking in a Spring/Struts application