473,781 Members | 2,683 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Assistance with design issue.

Hi,
I have a component that validates data with external parties and then return
the results to the calling webservice. Currently it logs every response to a
darabase on a remote server. The issue I have is that if the database server
is offline it would wouldn't be able to log anything. It is important to log
everything. How would you guys suggest we handle this.

Thanks

Oct 6 '05 #1
8 1265
how about logging it locally instead, and then using a windows service to
periodically update the remote database. As long as the log entry is
timestamped you should have no problem with synchronisation .

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:3E******** *************** ***********@mic rosoft.com...
Hi,
I have a component that validates data with external parties and then
return
the results to the calling webservice. Currently it logs every response to
a
darabase on a remote server. The issue I have is that if the database
server
is offline it would wouldn't be able to log anything. It is important to
log
everything. How would you guys suggest we handle this.

Thanks

Oct 6 '05 #2
You mean in event log or an xml file?

"John Timney (ASP.NET MVP)" wrote:
how about logging it locally instead, and then using a windows service to
periodically update the remote database. As long as the log entry is
timestamped you should have no problem with synchronisation .

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:3E******** *************** ***********@mic rosoft.com...
Hi,
I have a component that validates data with external parties and then
return
the results to the calling webservice. Currently it logs every response to
a
darabase on a remote server. The issue I have is that if the database
server
is offline it would wouldn't be able to log anything. It is important to
log
everything. How would you guys suggest we handle this.

Thanks


Oct 6 '05 #3
Do you mean the event log or an xml file?

Thanks

"John Timney (ASP.NET MVP)" wrote:
how about logging it locally instead, and then using a windows service to
periodically update the remote database. As long as the log entry is
timestamped you should have no problem with synchronisation .

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:3E******** *************** ***********@mic rosoft.com...
Hi,
I have a component that validates data with external parties and then
return
the results to the calling webservice. Currently it logs every response to
a
darabase on a remote server. The issue I have is that if the database
server
is offline it would wouldn't be able to log anything. It is important to
log
everything. How would you guys suggest we handle this.

Thanks


Oct 6 '05 #4
just use a text file of some sort - xml would be fine, or a local database
instance. Something you can cycle through and easily update the remote
database from. Dont use event log, its not the easiest to work with.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:47******** *************** ***********@mic rosoft.com...
You mean in event log or an xml file?

"John Timney (ASP.NET MVP)" wrote:
how about logging it locally instead, and then using a windows service to
periodically update the remote database. As long as the log entry is
timestamped you should have no problem with synchronisation .

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:3E******** *************** ***********@mic rosoft.com...
> Hi,
> I have a component that validates data with external parties and then
> return
> the results to the calling webservice. Currently it logs every response
> to
> a
> darabase on a remote server. The issue I have is that if the database
> server
> is offline it would wouldn't be able to log anything. It is important
> to
> log
> everything. How would you guys suggest we handle this.
>
> Thanks
>


Oct 6 '05 #5
"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:3E******** *************** ***********@mic rosoft.com...
Hi,
I have a component that validates data with external parties and then
return
the results to the calling webservice. Currently it logs every response to
a
darabase on a remote server. The issue I have is that if the database
server
is offline it would wouldn't be able to log anything. It is important to
log
everything. How would you guys suggest we handle this.

Thanks


I would use MSMQ. If the server is down, MSMQ will hold the message until
it is back up. Write a windows service (either on the local or remote
machine) that will attempt to connect to the db, and if that works, to read
from the queue and post to the database.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
Oct 7 '05 #6
Hi,
Is it recommended to put such service in the SQL database server (remote
server)? Or SQL Database Server should only be database and nothing else?

Thanks

"Nick Malik [Microsoft]" wrote:
"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:3E******** *************** ***********@mic rosoft.com...
Hi,
I have a component that validates data with external parties and then
return
the results to the calling webservice. Currently it logs every response to
a
darabase on a remote server. The issue I have is that if the database
server
is offline it would wouldn't be able to log anything. It is important to
log
everything. How would you guys suggest we handle this.

Thanks


I would use MSMQ. If the server is down, MSMQ will hold the message until
it is back up. Write a windows service (either on the local or remote
machine) that will attempt to connect to the db, and if that works, to read
from the queue and post to the database.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--

Oct 8 '05 #7
There are a couple of reasons why your app server cannot communicate with
the SQL DB server.
a) the power to the db server has been cut
b) the network connections between the app server and the db server are
disconnected, powered down, or misconfigured.
c) The SQL Server service is not accepting connections (for a couple of
reasons)
d) Someone deleted your database off of the server.

If the queue is on the app server, your app will be able to enqueue the
message in all four cases.
If the queue is on the db server, your app will not be able to enqueue the
message in case (a) or (b).

Therefore, if you want to reliably place your messages into the queue, make
the queue local.

The service to dequeue the message can live on either the db server or the
app server. However, if it is on the db server, then the queue needs to
allow credentials from the db server to access it. This usually means that
both machines are in the same domain. Many servers are not in a domain, so
this won't work well in that case. Therefore, for the sake of simplicity
and ease of testing, I'd put the service on the same machine as the queue.

That puts both the queue and the service on the app server.

HTH,
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:A2******** *************** ***********@mic rosoft.com...
Hi,
Is it recommended to put such service in the SQL database server (remote
server)? Or SQL Database Server should only be database and nothing else?

Thanks

"Nick Malik [Microsoft]" wrote:
"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:3E******** *************** ***********@mic rosoft.com...
> Hi,
> I have a component that validates data with external parties and then
> return
> the results to the calling webservice. Currently it logs every response
> to
> a
> darabase on a remote server. The issue I have is that if the database
> server
> is offline it would wouldn't be able to log anything. It is important
> to
> log
> everything. How would you guys suggest we handle this.
>
> Thanks
>


I would use MSMQ. If the server is down, MSMQ will hold the message
until
it is back up. Write a windows service (either on the local or remote
machine) that will attempt to connect to the db, and if that works, to
read
from the queue and post to the database.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--

Oct 8 '05 #8
Thanks! Besides this, I am having a problem with another issue whiched I
posted in asp.net section.
http://msdn.microsoft.com/newsgroups...&lang=en&cr=US.
(Subject: Fellas.......ne ed help)Would you be able to assist?

"Nick Malik [Microsoft]" wrote:
There are a couple of reasons why your app server cannot communicate with
the SQL DB server.
a) the power to the db server has been cut
b) the network connections between the app server and the db server are
disconnected, powered down, or misconfigured.
c) The SQL Server service is not accepting connections (for a couple of
reasons)
d) Someone deleted your database off of the server.

If the queue is on the app server, your app will be able to enqueue the
message in all four cases.
If the queue is on the db server, your app will not be able to enqueue the
message in case (a) or (b).

Therefore, if you want to reliably place your messages into the queue, make
the queue local.

The service to dequeue the message can live on either the db server or the
app server. However, if it is on the db server, then the queue needs to
allow credentials from the db server to access it. This usually means that
both machines are in the same domain. Many servers are not in a domain, so
this won't work well in that case. Therefore, for the sake of simplicity
and ease of testing, I'd put the service on the same machine as the queue.

That puts both the queue and the service on the app server.

HTH,
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:A2******** *************** ***********@mic rosoft.com...
Hi,
Is it recommended to put such service in the SQL database server (remote
server)? Or SQL Database Server should only be database and nothing else?

Thanks

"Nick Malik [Microsoft]" wrote:
"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:3E******** *************** ***********@mic rosoft.com...
> Hi,
> I have a component that validates data with external parties and then
> return
> the results to the calling webservice. Currently it logs every response
> to
> a
> darabase on a remote server. The issue I have is that if the database
> server
> is offline it would wouldn't be able to log anything. It is important
> to
> log
> everything. How would you guys suggest we handle this.
>
> Thanks
>

I would use MSMQ. If the server is down, MSMQ will hold the message
until
it is back up. Write a windows service (either on the local or remote
machine) that will attempt to connect to the db, and if that works, to
read
from the queue and post to the database.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--


Oct 8 '05 #9

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

Similar topics

36
6401
by: Andrea Griffini | last post by:
I did it. I proposed python as the main language for our next CAD/CAM software because I think that it has all the potential needed for it. I'm not sure yet if the decision will get through, but something I'll need in this case is some experience-based set of rules about how to use python in this context. For example... is defining readonly attributes in classes worth the hassle ? Does duck-typing scale well in complex
3
1841
by: Endora | last post by:
Hello, The database I'm working with has these 2 fields: - "CD", which stands for "Consolidated Design Number" (not Compact DISC) and - "URL", which is the full URL (http://...)
0
1793
by: Jawahar | last post by:
All I had posted this in the remote assistance group and could not get any replies so I thought that I could try in the developer group Thanks One of the issues we face when helping our remote workers is that they are (9 out of 10 times) behind a router. So when they initiate a Remote assistance call they always do so via email and then our Help desk folk manually alter the file using notepad withe correct IP address and also default...
8
275
by: Chris | last post by:
Hi, I have a component that validates data with external parties and then return the results to the calling webservice. Currently it logs every response to a darabase on a remote server. The issue I have is that if the database server is offline it would wouldn't be able to log anything. It is important to log everything. How would you guys suggest we handle this. Thanks
0
1165
by: nkumar7377 | last post by:
Hi ... I need some assistance in the following question can anyone assist me ... a) . Design, create and test trigger(s) to implement the following new ‘business rule’ To allow changes to the Company table only on Weekdays (Mon-Fri) between 8am and 6pm, and on Saturday morning between 9am and 12.00 noon. b) Design, create and test a combination of triggers and procedures to implement the following new ‘business rule’ :...
0
1997
by: AMDRIT | last post by:
I am looking for better concrete examples, as I am a bit dense, on design patterns that facilitate my goals. I have been out to the code project, planet source code, and microsoft's patterns and practices site and it just isn't sinking in all that clearly to me. Currently we have code in production and it all works well, however it is not the way we want it. We know that we can implement a better design plan to improve performance,...
9
2765
by: OWeb | last post by:
Javascript and recursing subfolders assistance ------------------------- I have this script that is a free extra download from SlideShowPro. It's a great script but I feel it needs to be tweaked a bit and need some assistance. The script is not mine, it is actually: Copyright 2007 (c) Dominey Design Inc. All Rights Reserved. (I don't want anybody thinking I'm taking credit for the script.) Here's what it does and what it should do...
5
1740
by: pgrazaitis | last post by:
I cant seem to get my head wrapped around this issue, I have myself so twisted now there maybe no issue! Ok so I designed a class X that has a few members, and for arguments sake one of the members Y is the location of a file to be read. The original design assumes that this class will be instantiated and each instance will happily mange its own members. (ie One file location per instance...no thread-safety). Now another class A...
4
2468
by: Ken Fine | last post by:
I've been living with a frustrating issue with VS.NET for some months now and I need to figure out what the problem is. Hopefully someone has run into the same issue and can suggest a fix. I suspect some permissions problem. I'm running VS.NET 2008 in Vista. Symptoms and observations: * ASP.NET's native ImageMap and Image controls work just fine and provide a design-time preview of images that are referenced via the ImageUrl property *...
0
10143
jinu1996
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...
0
8964
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
7486
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
6729
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
5375
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...
0
5507
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4040
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
3633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2870
bsmnconsultancy
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...

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.