C
Chris Marsh
All
I have a database table, changes to the data within which I am interested in
acting on. The approach that I'm taking is to have the database update a
file every time data is updated. This process is outside my domain - I can
rely on the file being updated when data changes.
Within my domain is the design of a Windows service to perform the
operations required when the data changes. I have not produced a Windows
service before (being mostly a web application .NET developer), but the
process seems fairly straightforward. My Windows service will poll the file
(using a Timer object), and when the file has been updated the Windows
service will access the database, fetch the data that has changed, and
perform the required operations on it. This involves contacting web services
provided by a different system.
My questions are as follows:
1. Are there any issues with this approach that anyone would care to draw to
my attention?
2. Since it is conceivable that more than one record has changed in the
database, should I perform my operations on each record concurrently using
different threads?
3. Given my lack of experience with Windows services, are there any specific
areas that anyone would recommend I study up on before proceeding?
I realise that these questions are fairly open ended, but I'm wary about
introducing problems into our system due to my lack of experience. I want to
ensure that I don't produce a subsystem that *appears* to work, but
introduces subtle problems at a later date that are perhaps difficult to
pick up immediately.
Any comments are appreciated; many thanks in advance one and all!
I have a database table, changes to the data within which I am interested in
acting on. The approach that I'm taking is to have the database update a
file every time data is updated. This process is outside my domain - I can
rely on the file being updated when data changes.
Within my domain is the design of a Windows service to perform the
operations required when the data changes. I have not produced a Windows
service before (being mostly a web application .NET developer), but the
process seems fairly straightforward. My Windows service will poll the file
(using a Timer object), and when the file has been updated the Windows
service will access the database, fetch the data that has changed, and
perform the required operations on it. This involves contacting web services
provided by a different system.
My questions are as follows:
1. Are there any issues with this approach that anyone would care to draw to
my attention?
2. Since it is conceivable that more than one record has changed in the
database, should I perform my operations on each record concurrently using
different threads?
3. Given my lack of experience with Windows services, are there any specific
areas that anyone would recommend I study up on before proceeding?
I realise that these questions are fairly open ended, but I'm wary about
introducing problems into our system due to my lack of experience. I want to
ensure that I don't produce a subsystem that *appears* to work, but
introduces subtle problems at a later date that are perhaps difficult to
pick up immediately.
Any comments are appreciated; many thanks in advance one and all!