PC Review


Reply
Thread Tools Rate Thread

Best practice? Managing concurrent access to Business Objects on the middle-tier

 
 
Robert Zurer
Guest
Posts: n/a
 
      5th Aug 2003
My architecture is, (ala Fowler PoEAA)

Presentation Layer
|
Service Layer
|
Problem Domain
(My Business Objects are held in memory)
|
Persistence Layer
|
Physical Storage

It is the aim that business objects be accessed by many threads at once.
There will be many more reads than writes. I will need to lock the object(s)
when they are being written but not when they are being read. I will also
need to provide some kind of transactional support.

One of my ideas was to derive all business objects from ContextBoundObject
and use the [Synchronized] attribute.

My question is this. Would this completely serialize access or is there some
way, still using ContextBoundObject, to effect something like the
ReaderWriterLock?

Also, on a different track, does anyone see problems with maintaining large
numbers of business objects in memory assuming RAM can be added if
necessary.

Robert Zurer


 
Reply With Quote
 
 
 
 
JD
Guest
Posts: n/a
 
      5th Aug 2003
If you can take a look at the book "Transactional COM+" by
Tim Ewald. He has some good advice in building scalable
architectures, it mostly is about COM+ but applies to
what you are trying to do.

Basically it goes against what you are trying to do. He is
not the only one I have read that goes against this
architecture either, in both the Java and MS world. You
have the ability for ReaderWriterLock at the DB level
using transactions and could even push it out to the COM+
level use its transactional capabilities, so there is no
reason for a developer to come along and duplicate it at
the object level with the use of threads.

- J

>-----Original Message-----
>My architecture is, (ala Fowler PoEAA)
>
> Presentation Layer
> |
> Service Layer
> |
> Problem Domain
>(My Business Objects are held in memory)
> |
> Persistence Layer
> |
> Physical Storage
>
>It is the aim that business objects be accessed by many

threads at once.
>There will be many more reads than writes. I will need to

lock the object(s)
>when they are being written but not when they are being

read. I will also
>need to provide some kind of transactional support.
>
>One of my ideas was to derive all business objects from

ContextBoundObject
>and use the [Synchronized] attribute.
>
>My question is this. Would this completely serialize

access or is there some
>way, still using ContextBoundObject, to effect something

like the
>ReaderWriterLock?
>
>Also, on a different track, does anyone see problems with

maintaining large
>numbers of business objects in memory assuming RAM can be

added if
>necessary.
>
>Robert Zurer
>
>
>.
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing business objects from business tier to data tier? grawsha2000@yahoo.com Microsoft VB .NET 2 11th May 2007 10:56 PM
Passing business objects from business tier to data tier? grawsha2000@yahoo.com Microsoft VB .NET 0 11th May 2007 10:13 PM
Best practice for n-tier data access in .NET 2.0 . Paul Aspinall Microsoft C# .NET 1 17th Mar 2006 05:19 AM
WebForm objects in Business Tier? Keith-Earl Microsoft ASP .NET 8 7th Dec 2004 09:12 PM
Best practice? Managing concurrent access to Business Objects on the middle-tier Robert Zurer Microsoft C# .NET 1 5th Aug 2003 05:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:40 AM.