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

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 1238
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***@discussions.microsoft.com> wrote in message
news:3E**********************************@microsof t.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***@discussions.microsoft.com> wrote in message
news:3E**********************************@microsof t.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***@discussions.microsoft.com> wrote in message
news:3E**********************************@microsof t.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***@discussions.microsoft.com> wrote in message
news:47**********************************@microsof t.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***@discussions.microsoft.com> wrote in message
news:3E**********************************@microsof t.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***@discussions.microsoft.com> wrote in message
news:3E**********************************@microsof t.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***@discussions.microsoft.com> wrote in message
news:3E**********************************@microsof t.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***@discussions.microsoft.com> wrote in message
news:A2**********************************@microsof t.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***@discussions.microsoft.com> wrote in message
news:3E**********************************@microsof t.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.......need 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***@discussions.microsoft.com> wrote in message
news:A2**********************************@microsof t.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***@discussions.microsoft.com> wrote in message
news:3E**********************************@microsof t.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
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...
3
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
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...
8
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...
0
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...
0
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...
9
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...
5
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...
4
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...
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: 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: 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
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
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,...

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.