473,387 Members | 1,705 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.

Windows service or windows scheduled tasks, which one to use?

Hi all- I know there are number of forums which already answered this question. But my case is little different. Let me explain the problem.

we have a windows service which currently is working fine. It checks the DB for requests in a particular status. upon finding one, it checks the action type for that request and process according to the action type. This processing includes taking text files and convert them to excel files using oledb, send the email to a set of users with the report as attachment. The created excel file sometimes will be 50-60 MB and it will take 4-5 minutes. All these are inside an infinite loop in the service so that we can check the DB continuously. Current process works fine. no issues.

We are planning to add couple of more action types and each action type needs to be processed in parallel. These action type may or may not have report creation , email sending or some other functionality. We have ended up with 2 methods to solve the above problem.

Method 1:- Implement the new action types in the existing windows service and use the new "task parallel library" in the dot net frame work to parallel process all the action types.

method 2:- create a console application which takes action types as parameters. Create scheduled tasks in windows scheduler for each action types and pass the action type as parameter in each scheduled task. Schedule each tasks to run every 1 minute. so we will have 3-4 scheduled tasks, each running every 1 minute parallel.

Please help me to choose the correct method.

Thanks

Bipin
Oct 18 '13 #1
0 1095

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

Similar topics

3
by: Greg Bryant | last post by:
I'm doing some work for a company that has an auction site running in coldfusion. They're not real happy with it, and it needs a major overhaul, so I'm looking at redoing it, and while I'm at it,...
5
by: Bart Simpson | last post by:
Hi, I want to control 'Scheduled Tasks' in Windows 2003 by python program. But I couldn't find any Python module about win32 'Scheduled Tasks'. I could find only Perl module about it. (see...
3
by: timb | last post by:
Hi, I have created a windows service which is responsible for running certain tasks when they are scheduled to run. The service monitors a sql table and runs a task when the task scheduled time...
0
by: Jason M | last post by:
I'm looking to write a windows service that will monitor scheduled tasks on a server and perform a bunch of operations after they complete(or fail). Does anyone have any good links on hooking or...
1
by: Murali | last post by:
Hi All, How to control(Start / Stop) a "Windows Service" (written in C#) from a windows application(.exe). Please send any URL/Solution which will guide me to solve this issue. Thanks in...
4
by: Kris | last post by:
I have a Windows Service in C# talking to a serial port and using Remoting. It also uses several COM objects. On customer's computer the service will occassionally hang somewhere - the service...
6
by: arun.hallan | last post by:
Hi, I want to run a webservice method every night at a specified time, say 10pm. The current way i thought of doing this is to have a windows service and a timer which checks the time every...
0
by: Derek Hart | last post by:
I have a vb.net winforms application that I want to run every time the server starts up (it will be running on a server, and it is okay to have a user interface). I have had a ton of trouble...
3
by: kj7ny | last post by:
How can I access and manipulate Scheduled Tasks in Windows using Python? I have a Windows XP workstation running Python 2.4.4 using the win32all modules to control the windows services on...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.