I'm working with 4 websites running on the same box with seperate IIS sites
(I can't change this) - 3 that display information from a database, and one
that collects it and writes to the same database.
They all use the same DLL as a data layer, which also does database caching
using the Application object. The first problem I have is I have 4
instances of the DLL which dont talk to each other, so all information is
stored 4 times, and I have a far higher overhead than I feel is necessary.
I've been looking into putting the DLL into the GAC, but I get the
impression I'll still get 4 seperate instances of the data.
The second problem; when someone enters new data in the "collection " site, I
need to send data to the display sites to tell them to recache the changed
data. At present, I'm using either a web service (slow with high overhead)
or querystring (messy).
I'm sure my situation isn't unique; could someone please give me a few
suggestions for best practice for doing this type of thing?
Thanks in advance,
Duncan 2 2235
If you use the GAC you will still 4 copies of the data - you will have just
1 copy of the DLL on your box.
One idea is to have a file that has the data the sites need to display
(maybe in XML form).
Site #4 updates this file, and the other 3 sites have FileSystemWatch er
objects that watch for changes in the file. When the file is updated, they
update their local data cache.
If your data changes infrequently, this is OK. If your data changes
frequently, I would recommend each site just going after the data directly
in the database each time it is needed.
"Duncan Welch" <du**@ntpcl.f9. co.uk> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. . I'm working with 4 websites running on the same box with seperate IIS sites (I can't change this) - 3 that display information from a database, and one that collects it and writes to the same database.
They all use the same DLL as a data layer, which also does database caching using the Application object. The first problem I have is I have 4 instances of the DLL which dont talk to each other, so all information is stored 4 times, and I have a far higher overhead than I feel is necessary. I've been looking into putting the DLL into the GAC, but I get the impression I'll still get 4 seperate instances of the data.
The second problem; when someone enters new data in the "collection " site, I need to send data to the display sites to tell them to recache the changed data. At present, I'm using either a web service (slow with high overhead) or querystring (messy).
I'm sure my situation isn't unique; could someone please give me a few suggestions for best practice for doing this type of thing?
Thanks in advance,
Duncan
Thanks, unfortunately, there's a high number of tables being cached, and
some of the sites are getting quite high usage at peak times, so that
probably isn't the best option.
Duncan
"Marina" <so*****@nospam .com> wrote in message
news:ei******** *****@TK2MSFTNG P09.phx.gbl... If you use the GAC you will still 4 copies of the data - you will have just 1 copy of the DLL on your box.
One idea is to have a file that has the data the sites need to display (maybe in XML form).
Site #4 updates this file, and the other 3 sites have FileSystemWatch er objects that watch for changes in the file. When the file is updated, they update their local data cache.
If your data changes infrequently, this is OK. If your data changes frequently, I would recommend each site just going after the data directly in the database each time it is needed.
"Duncan Welch" <du**@ntpcl.f9. co.uk> wrote in message news:%2******** *******@tk2msft ngp13.phx.gbl.. . I'm working with 4 websites running on the same box with seperate IIS sites (I can't change this) - 3 that display information from a database, and one that collects it and writes to the same database.
They all use the same DLL as a data layer, which also does database caching using the Application object. The first problem I have is I have 4 instances of the DLL which dont talk to each other, so all information is stored 4 times, and I have a far higher overhead than I feel is necessary. I've been looking into putting the DLL into the GAC, but I get the impression I'll still get 4 seperate instances of the data.
The second problem; when someone enters new data in the "collection " site, I need to send data to the display sites to tell them to recache the changed data. At present, I'm using either a web service (slow with high overhead) or querystring (messy).
I'm sure my situation isn't unique; could someone please give me a few suggestions for best practice for doing this type of thing?
Thanks in advance,
Duncan
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: gary |
last post by:
Hi all,
According to you, what are the best tutorial / news PHP website ?
thx in advance,
--
gary
|
by: Craig Hardcastle |
last post by:
Hi,
How do you pass data between websites?
By this i mean say a users information was stored at a site, say "User
Info" and a website "TheLogin" wanted to get the users info from "User
Info", how would this be done?
This is probably an easy thing to do, but i'm a newbie!
|
by: HelLind |
last post by:
Hello everyone !
Is there any way to pass session variables between two websites ( diff domains) ?
I've two websites and I want to integrate them.
I used to use the querystring but there is a limit to length of the querystring.
I've tried ASP-TEAR but I doubt it can work.
|
by: darrel |
last post by:
I'm still trying to fully understand how best to pass variables between
pages/usercontrols/each other.
On a current site I've done, I've had one userControl do the logic and set
the variable, and then I had other usercontrols simply read this by
traversing the class structure: siteClass.userControlClass.specficVariable.
That worked fine.
The new site I'm working on is a bit different, as I'm using multiple
|
by: Anil Pundhir |
last post by:
What is the best way to pass data to a web service.
The client(to send data) has .net environment and also the server on which
the web service is hosted also has the .net environment.
Should I send dataset or an xml which will be created at the client and
parsed at the server, in the web service.
Which will have a better performance.
Thanks,
| |
by: ryang |
last post by:
I'm sure this is an easy one for you old pros?
I am using filemaker to browse some records, and I have created a button in my filemaker layout that launches a web browser with a certain url. Right know, I have to manually enter 3 numbers into 3 fields of a form on that webpage. Is there a way I could pass the info in the url so that when the page loads it will have the form already filled in with my data? I have figured out how to do this...
|
by: Joe |
last post by:
Is any one charting packing considered to be the "best"? We've used ChartFX
but wasn't too happy about the way data had to be populated along with some
other issues which slip my mind right now and Dundas has bugs and doesn't do
a good enough job displaying axis labels and is very slow to paint large
numbers of series and data points.
We're currently evaluating ProEssentials which we are happy with but it's
not a native .NET package.
...
|
by: =?Utf-8?B?YzY3NjIyOA==?= |
last post by:
Hi all,
Is there an easier way to handle that? I used Javascript to handle this when
our two domains are hosted on two different servers(on different networks)
and our search engine marketing people don't like the javascript links since
they think the links are not favorable to a search robot.
Now our company is thinking about hosting these two domians on the same
server,
So I am wodering if there is any easy way to do that. Would you...
|
by: Edson Manoel |
last post by:
I have some C++ unmanaged code that takes std::string& arguments (as
reference), and fills them (possibly growing the string).
I want to call this code through PInvoke (DllImport), possibly using
wrapper layers in unmanaged C++ and C#.
I've thought about two approaches:
1) To pass a StringBuilder, this is converted to a char* in C++, the
wrapper code converts the char* to a std::string (copy), and in the
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |