473,406 Members | 2,549 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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

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.

Aug 22 '06 #1
1 1403
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" <da*********@hotmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr 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.

Aug 22 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jim Douglas | last post by:
My setup is web application, middle tier for business logic and data access. I have static data cached on the GUI and in the middle tier. The stuff cached in the web application is to populate...
1
by: Mythran | last post by:
Simple question, hopefully simple answer :) In a multi-tier application, when should I cache my data? Business Logic Layer or Data Access Layer? Thanks, Mythran
18
by: D Witherspoon | last post by:
I am developing a Windows Forms application in VB.NET that will use .NET remoting to access the data tier classes. A very simple way I have come up with is by creating typed (.xsd) datasets. For...
3
by: Jules | last post by:
Sorry for being contentious title, but I am confused and concerned over the level of MS infrastructure support to the business logic layer. MS have great support to Web services, for EAI and B2B...
2
by: George1776 | last post by:
All, I've recently upgraded our production ASP.NET/C# application from framework 1.1 to 2.0. Since then I've been plagued by out-of-memory errors and problems with the cache object (which may...
4
by: pratham | last post by:
Hi! I'm making a database application and i heard from a friend that it is more proffecional and easy to do this with bussines objects. Can anyone tell me where i can find more info on bussines...
2
by: grawsha2000 | last post by:
Greetings, I am developing this N-tier business app. The problem I'm facing is when I try to pass business objects (employees, dept..etc) from business tier to data tier,i.e., the add method in...
8
by: Charles Law | last post by:
This is a sort of pattern question, but relating to how components are coupled in a three-tier system. I have a presentation layer, business layer and data access layer, the first is the EXE,...
12
by: BillE | last post by:
I'm trying to decide if it is better to use typed datasets or business objects, so I would appreciate any thoughts from someone with more experience. When I use a business object to populate a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.