Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Does Caching below in the business tier or data tier??

Reply
Thread Tools

Does Caching below in the business tier or data tier??

 
 
Nemisis
Guest
Posts: n/a
 
      08-22-2006
Hi everyone,

We are currently re-developing our software, to asp.net 2.0 and taking
a 3 tier architecture.

I have been thinking about it, and i think that it belongs in the
business tier.

Another thing is am thinking about is what sort of caching should be
done, because i really dont want to tie the business layer to only web
applications (although that is probably the onlyl place it will be used
at first), as i can see us developing possible Windows Applications
that may run on the server or clients machine, and i dont want to have
to hold two different business tiers, 1 for web apps and 1 for windows
apps.

Can you cache an object when using Windows Apps? I guess you can, but
can anyone tell me what sort of objects to use??

Thanks for your help and please provide any useful links to any helpful
articles.

 
Reply With Quote
 
 
 
 
sloan
Guest
Posts: n/a
 
      08-22-2006
If you look at my blog:

http://sholliday.spaces.live.com/
12/1/2005
Understanding the Simple Factory Pattern

I have a section where I talk about the #2 Environment Method.

Ok... you could write an interface ...
IStoreStuff

and have 2 concrete implementations ... one for the web, and one for the
winforms.
by programming to the Interface (in your applications) ... and using the
Factory, you can use the exact same syntax for either environment.

I would saying that Caching .. is not a application/biz tier object.
It is a Framework piece living outside of any specific application.

Now, your business logic can use the CachingFramework object ..

I usually write simple scenario 'getters'.

public MyCollection GetGoodEnoughEmployeeInfo( bool forceRefresh )



if the forceRefresh is true, I use a DataLayer ojbect to get fresh data.
then i use the IStoreStuff here.
if the item is in in the IStoreStuff object, and forceRefresh is false, I
return the object.

if forceRefresh is true, OR the object isn't in the cache object... I get
fresh values, and put them into the cache object.

}//end GetGoodEnoughEmployeeInfo


...
If you look at this blog entry:
10/24/2005
Web Session Wrapper for storing and retrieving objects

you're figure out the web version of the IStoreStuff.





"Nemisis" <> wrote in message
news: oups.com...
> Hi everyone,
>
> We are currently re-developing our software, to asp.net 2.0 and taking
> a 3 tier architecture.
>
> I have been thinking about it, and i think that it belongs in the
> business tier.
>
> Another thing is am thinking about is what sort of caching should be
> done, because i really dont want to tie the business layer to only web
> applications (although that is probably the onlyl place it will be used
> at first), as i can see us developing possible Windows Applications
> that may run on the server or clients machine, and i dont want to have
> to hold two different business tiers, 1 for web apps and 1 for windows
> apps.
>
> Can you cache an object when using Windows Apps? I guess you can, but
> can anyone tell me what sort of objects to use??
>
> Thanks for your help and please provide any useful links to any helpful
> articles.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Browser crashes with below code.What is wrong in below code. kiran Javascript 12 12-07-2011 02:38 PM
Could someone scan me a picture of the below? (Read Below) starlightvoyager@yahoo.com DVD Video 1 08-28-2006 05:42 AM
Setting up a new tier in a 3-tier system? Steve Kershaw ASP .Net 3 03-29-2006 01:09 AM
2 tier to 3 tier? NOSPAM ASP .Net 1 10-14-2004 10:51 PM
ASP v2 & 3-tier or 2-tier rob ASP .Net 1 08-13-2004 06:04 AM



Advertisments