473,659 Members | 2,651 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I need to develop a webservices monitoring .net Appl. What is best way to desing this

1 New Member
Need to develop a Webserver Monitoring system. There may be Hundreds of webserver running on different servers. This system need to keep monitoring of each webservice at a given interva and update the status in DB.

The current options designed.

Options1: Created class Monitorig it has Method1 which call the webservice dynamically on regular interval say 10 Min. And stores the status(Fail/Success) data to DB.

In a for loop I'm creating a new instance of monitoring class every time and a new Thread.

Example.
Expand|Select|Wrap|Line Numbers
  1. foreach(int i in idlist)
  2. {
  3.    Monitoring monObj = new Monitoring();
  4.    Thread workerT = new Thread(monObj.MonitorWebService);
  5.    workerT.Start(i);
  6. }
in the MonitorWebServi ce API there is a infinity for loop
which does calling of the given webservice at a given interval as 1 min or 10 min etc. To process this in a regular inverval I'm using EventWaitHandle .WaitOne(T1 * 1000, false) instead of Thread.Sleep(). Here T1 can be 1 min or 1 or 5 hours.

Oprion 2:

in the for loop open a new appdomain with new Name and open a new thread as given below.

Expand|Select|Wrap|Line Numbers
  1. foreach(int i in idlist)
  2. {
  3.  string appDNname = WSMonitor + i.ToString();
  4.  AppDomain WMSObj = AppDomain.CreateDomain(appDNname);
  5.  Type t= typeof(Monitoring);
  6.  Monitoring monWSObj = (Monitoring) WMSObj.CreateInstanceAndUnwrap(Assembly.GetExecutingAssembly().FullName, t.FullName);
  7. Thread WorkerT = new Thread(monWSObj.MonitorWebService);
  8. WorkerT.Start(i);
  9. }
in option2 I'm unloading the AppDomain when the time interval is more then 10 min. And when ever its required loading. I thought option 2 will release resource when its not required and reload when its required.

Which is the best/better approach? Do we have any better solution. A Quick Help is highly appreciated.

I’m in desperate need of help. Please respond.
Aug 6 '10 #1
0 926

Sign in to post your reply or Sign up for a free account.

Similar topics

3
1879
by: John | last post by:
Given table all_prices: product_id | company_id | price -----------+------------+------ 1 0 1 1 6 2 2 0 3 4 6 4 5 0 5 5 6 6
10
1621
by: Sam | last post by:
we are running windows 2003 server. it has NET framework installed, but doesn't have Visual Studio etc. installed on it. i created a new sulotion/project on my development pc and FTP'd it up to our server with all of the files from my dev. pc. i also created a \bin directory and copied tthose files as well. now i'm getting this error. do i need to install visual studio on the server and build it there? =====================
0
904
by: Dave Theese | last post by:
Hello all, Our organization is considering a move from C++ to C#. I've been asked to compile a list of the better C# references, but I am new to C# and so don't really know which references stand out... So, I'd like to solicit recommendations of the best books, magazines, web sites, etc... for the following topics: 1. The C# core language
1
1303
by: William Gower | last post by:
I need to develop a datagrid that uses columns from a table. In addition I need two columns (checkboxes) that the user will use to indicate that this record can be closed later. The checkboxed column is not a field in the table. It is just for the purposes of the Datagrid and I do not need to store whether it was checked or not. Do I use a Template Column for this?
2
1375
by: Jens Jensen | last post by:
Hello, I'm calling a webservice that returns data packed in an xml file.( System.Xml.XmlNode) I wrote the webservice myself. But users are not very experienced with xml. I'm therefore tempted to provide a general purpuse dll (.net assembly) that would have a method that: -Takes either an xml document or xmlnode as arguemt, a tag name and retrurn a string value of the tag.
9
1374
by: Peted | last post by:
Hi Looking for advice on best way to implement this idea I have a form with 10 text boxes, and one button. when user clicks button i want to transmit info in text boxes to a device, but i only want to transmit data from textboxes that user has changed data in since last button click How can i check if the text box contents have been changed by user, so
1
1061
by: dizzy | last post by:
My client application will have a set of varying business functions. These functions will be fullfiled via various 3rd party services (i.e. web services, http post/get, remote data access or socket to socket feeds). Some are action type services (i.e. create account or update some info about a given user), and others are read only, retrieval of data. What i intend to do is to define the functions in an interface so that the client code...
7
3382
by: SM | last post by:
Hello, I have an XML file that looks like this <?xml version="1.0" encoding="UTF-8"?> <discography> <CD> <title>Moonlight</title> <year>1974</year> <description>
4
1310
by: coolsti | last post by:
I have data in a MySQL database that I need to pull out into C# arrays (or hashes or whatever) and I cannot find the best way to do it, and also have some problems with syntax. The data represents a 2 dimensional mapping of chips on a relatively round wafer, and each row of the returned data will contain the following: x coordinate, y coordinate, and the chip type at this x-y position. When I do this in PHP, I simply create a two...
0
8851
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8535
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8629
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 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...
0
7360
agi2029
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...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5650
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();...
0
4338
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2757
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.