Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-04-2009, 01:23 PM
Member
 
Join Date: Jan 2009
Posts: 3
Rep Power: 0
Minu is on a distinguished road
Default question on j2ee design pattern
which one of the two is a characteristic of the Transfer Object design pattern?
a. It increases the complexity of the design due to remote synchronization and version control issues.
b. It increases network performance introducing multiple fine-grained remote requests which return very small amounts of data.

The correct answer is (a) but i think it should be (b).

Could somebody figure out which one is correct?
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 01-06-2009, 08:50 PM
fishtoprecords's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 571
Rep Power: 2
fishtoprecords is on a distinguished road
Default
Originally Posted by Minu View Post
b. It increases network performance introducing multiple fine-grained remote requests which return very small amounts of data.
Disclaimer, I hate J2EE and know nothing about the Transfer Object design pattern.

But the idea of sending many many fine grained requests, each with very small amounts of data as "better" or "increase performance" is wrong from the start.

Networks are slow. You want to minimize the number of requests, and get as much information as you can in each request.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
The Observer Design Pattern(II) JavaForums Java Blogs 0 03-10-2008 07:00 PM
The Facade Design Pattern (II) JavaForums Java Blogs 0 03-10-2008 02:41 AM
The Facade Design Pattern (I) JavaForums Java Blogs 0 03-09-2008 10:35 PM
Adapter design pattern (II) JavaForums Java Blogs 0 03-08-2008 10:00 PM
Adapter design pattern JavaForums Java Blogs 0 03-08-2008 10:00 PM


All times are GMT +2. The time now is 05:58 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org