Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

where to put bookflight() question

 
Tiny Star
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shoud i put bookflight logic at client side and
call lock() modify() unlock() at client side?
what's the reason so many people put these logic at client side ,is that to say the server is only
give the datainterface ?
why cann't i put bookflight logic at server side ?
help me please!!!
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

what's the reason so many people put these logic at client side ,is that to say the server is only
give the datainterface ?

The client requests a lock or a modification of the record, but the server (or a remote object originated fronm the server) does the job. Hope this clears your confusion.
Eugene.
 
Tiny Star
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why the server isn't provide a business logic called bookflight(int flightnum)???
if so the client can only call bookflight and this will be much safe for the record lock and unlock ,so why do you put bookflight at the client side.
i am waiting for your reply!
 
Sarita Gupta
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tiny Star,
Originally posted by Tiny Star:
why the server isn't provide a business logic called bookflight(int flightnum)???
if so the client can only call bookflight and this will be much safe for the record lock and unlock ,so why do you put bookflight at the client side.
i am waiting for your reply!

For me, i prefer the business logic to be on the server side for the same reason u mentioned. And Michael gave me the assurance that it's ok as long as we are a able to give a pretty convincing reason for our choice. So I guess u should not worry yourself too much.
Other's what do u say on this.
Sarita
 
Tiny Star
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what's your reason ?
can we say that we don't want to face the client crash problem and feel it boring to do timeout and put it at server side is much easier?
can you tell me the reason where logic should be put ,client side and server side ?
what their advantages and unadvantages ,thanks very much.
my answer is just like the B/S system,if logic at the client side is changed,every client MUST change there client ,is this good design?
i am really wanted to know why so many people put
bookflight() at client side .
 
Sarita Gupta
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
refer to posting
How to handle Data and RemoteData
[ September 30, 2002: Message edited by: Sarita Gupta ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic