PC Review


Reply
Thread Tools Rate Thread

Architecture: Web Service as Management Console for Windows Service

 
 
Vincent Mouton
Guest
Posts: n/a
 
      10th Nov 2003
Hi,

I have two, slightly related questions.

First, some background information:
I am working on a tiny e-mail campaign app. It consists of A) a
web/mail-server sending out the e-mails, and B) a windows forms client,
installed on another machine, that does the administration (create new
e-mails, create new campaigns, launch campaigns,...).
Each campaign has a number of users in a table to send e-mails to.

Right now, I was thinking of this structure:
A Windows Service running on the web/mail-server, so the campaigns that are
running can continue after rebooting, etc...
A 'Server' component, that actually dispatches the e-mails. This component
holds a collection of campaigns that are running. After a series of e-mails
has been sent, lets say a batch of 100 messages, it checks for each campaign
the e-mails to start sending, etc...

1)
Here I have two options, and this is my first question:
When the Service starts, it creates an instance of the Server component,
that holds the campaigns collection that are running, and starts the events
needed to send out the e-mails.
or
The service itself holds all the logic (i.e. the methods to refresh the
campaign list, the campaign collection, what event to call to send out
e-mails,...)

2)
In both scenario's, I'd like the Windows Client to communicate with the
Service (put it on hold,...) and/or Server Component (Set a campaign on
hold, add a campaign,...)

Or am I looking too far? Maybe I ought to just make that Service run, let it
instaniate the Server component, and make the Service call, every X minutes,
an event on the Server component, that checks the database for running
campaigns. That way, I don't need to communicate with the service.

What seems to be the best solution?

thanks for any insights, especially on the one where I want a web service to
communicate with the Windows Service

cheers,
Vincent


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nightly job... a Console App? Windows Service? Other? rcook349 Microsoft C# .NET 5 16th Sep 2008 07:16 PM
Windows management service. =?Utf-8?B?SGFzLW5lZWRlcg==?= Windows XP Help 3 24th Oct 2006 11:29 PM
Windows service management =?Utf-8?B?Tmlyb24ga2Fn?= Microsoft C# .NET 3 9th Aug 2006 12:41 PM
A recommended Windows Service architecture with a single timed thread? benmorganpowell@gmail.com Microsoft C# .NET 1 14th Nov 2005 03:11 PM
Windows service with console =?Utf-8?B?Um9iIFdoaXRl?= Microsoft Dot NET Framework 3 12th May 2005 09:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:50 PM.