473,386 Members | 1,793 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,386 software developers and data experts.

conceptual question about webservice vs. webapp

Hi There,

I'm currently building a webservice using a class library which encapsulates
all business logic and a cache mechanism as well to hold recently used
objects. Lets call this "core.dll". I'm accessing the cache using
HttpContext.Current.Cache within this assembly. My question is, if I now
start build a standard asp.net application using the same core.dll, will
objects placed in the cache duplicate? Say, core.dll has a NewsItem object.
My user requests this object through the webservice method GetNews().
Core.dll instanciates the object and stores it in the Cache. The next time
someone coming over the public website requests the news.aspx, is the object
retrieved from cache (because this is a different application) or will be
stored in a "different" cache?

If this is the case, can I build my webapp with my aspx pages and just have
an myservice.asmx service as well in the same project?

Thanks for any help!
Aug 29 '07 #1
2 1708
"matthias s" <postamt__add__kieferfrost__dodd__dewrote in message
news:eh**************@TK2MSFTNGP02.phx.gbl...
Hi There,

I'm currently building a webservice using a class library which
encapsulates all business logic and a cache mechanism as well to hold
recently used objects. Lets call this "core.dll". I'm accessing the cache
using HttpContext.Current.Cache within this assembly. My question is, if I
now start build a standard asp.net application using the same core.dll,
will objects placed in the cache duplicate? Say, core.dll has a NewsItem
object. My user requests this object through the webservice method
GetNews(). Core.dll instanciates the object and stores it in the Cache.
The next time someone coming over the public website requests the
news.aspx, is the object retrieved from cache (because this is a different
application) or will be stored in a "different" cache?

If this is the case, can I build my webapp with my aspx pages and just
have an myservice.asmx service as well in the same project?
There will be one instance of the Cache per web application. If you keep the
web site and web service in the same web application, then they will share
the Cache.
--
John Saunders [MVP]

Aug 29 '07 #2
thanks john!

kind regards, matthias
"John Saunders [MVP]" <john.saunders at trizetto.comschrieb im Newsbeitrag
news:eV****************@TK2MSFTNGP04.phx.gbl...
"matthias s" <postamt__add__kieferfrost__dodd__dewrote in message
news:eh**************@TK2MSFTNGP02.phx.gbl...
>Hi There,

I'm currently building a webservice using a class library which
encapsulates all business logic and a cache mechanism as well to hold
recently used objects. Lets call this "core.dll". I'm accessing the cache
using HttpContext.Current.Cache within this assembly. My question is, if
I now start build a standard asp.net application using the same core.dll,
will objects placed in the cache duplicate? Say, core.dll has a NewsItem
object. My user requests this object through the webservice method
GetNews(). Core.dll instanciates the object and stores it in the Cache.
The next time someone coming over the public website requests the
news.aspx, is the object retrieved from cache (because this is a
different application) or will be stored in a "different" cache?

If this is the case, can I build my webapp with my aspx pages and just
have an myservice.asmx service as well in the same project?

There will be one instance of the Cache per web application. If you keep
the web site and web service in the same web application, then they will
share the Cache.
--
John Saunders [MVP]

Sep 5 '07 #3

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

Similar topics

4
by: Daniel Ladd | last post by:
Hi, I have a problem with a conceptual graph in c++. I have a oist of structures like this: typedef struct Conceptual { char* Name;//Rappresenta la parola da mettere nel grafo Conceptual* Next;...
6
by: Sandman | last post by:
Ok, not sure how I should explain this, but I'll give it a try. When a browser requests any given page from my webapp, it include()'s lots of other smaller scripts that has functions that does...
0
by: John | last post by:
We are doing integration with an AS400 running websphere - webservices. When the customer (AS400) calls the .Net webservice the customers java code (every other request or so) throws the following...
3
by: Chinedu | last post by:
Please help guys, I wondering if there is a way to test a web service for availability. i.e a simple test to see if the webservice is up and running or available before I make the actual method...
12
by: Mats Lycken | last post by:
Hi, I'm creating a CMS that I would like to be plug-in based with different plugins handling different kinds of content. What I really want is to be able to load/unload plugins on the fly without...
0
by: jhooper71 | last post by:
Hello any who has some insight to this. In .net 1.1 it was recommended to me by a MS ASP instructor to pass data from a webservice via XML (vs. a Micorosoft data structure (ie. dataset)). The...
6
by: jhooper71 | last post by:
It's been recommended to me to use a webservice and XML for the data manipulation layer for web applications in .NET 1.1. I was thinking I could use the web service to extend the database...
0
by: dev | last post by:
I have a website that dynamically instantiates an instance of a class using Reflection from another Assembly. Within that class there is a method that calls a webservice. The webservice is a...
2
by: joer.banno | last post by:
Hi, In a webapp I'm writing I need to know if another webapp is running (both of which are asp.net), is there a way that you can check for the presence of another webapp? The problem is that...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.