473,666 Members | 2,634 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Scheduler in ASP.NET Application

Dear Friends,

please read the following scenario...

- A website which invites different users to register/participate in an
initiative
- Intial time period will be given to the user to access the
site(consider an year to start with)
- at the end of the registrtaion period, an auto generated email should
be sent to the registered user( say on 11th month after registration)
- It can cater to any number of users who participate in the initiative
Any possible ways of sending autogenerated emails to the user with most
efficient design is appreciated... Can it be a windows service or SQL
Job or Windows Scheduler?...
regards,
Vijay Kumar

Apr 10 '06 #1
4 1663
> Any possible ways of sending autogenerated emails to the user with most
efficient design is appreciated... Can it be a windows service or SQL
Job or Windows Scheduler?...


I would probably use a long-running service. Just use .NET to create
and install a basic service with a Timer object that fires once per day
[or thereabouts], and have the event-handler check for the relevant
conditions and send the email (probably using the built-in
System.{Net/Web}.Mail classes). If there's lots of code in the main
website that you wouldn't want to duplicate in the service, either use
a shared assembly, or make the service access a restricted page on the
website, which performs the required actions. The overhead of having a
timer running with such a long delay is negligible, and this method
means that there is no extra load in creating a process to handle the
data [as there would be if you used the Windows scheduler].

Apr 10 '06 #2
Dear Mr. Paul,
Think you suggested suitable solution which I conceived in my mind
before...
Your given advice is appreciated...
Vijay Kumar

Apr 11 '06 #3

Is it a wise idea to perform operations from windows service like
database query to retrieve the data, send the email notifications to
the users,
updating the database etc...?

Instead of windows service doing it, can we have a web service do the
detailed operations mentioned above and windows service just calling
the methods of the web service...?

Would like to get suggestions to keep the windows service and
webservice in single system or different system...? (Windows Service in
Web Application System and Web Service in Database server System...)
Efficient suggestions are appreciated...
Vijay Kumar

Apr 11 '06 #4
> Is it a wise idea to perform operations from windows service like
database query to retrieve the data, send the email notifications to
the users, updating the database etc...?
There is no particular reason not to, except if you want to keep all
such code centralised in the web application, rather than having some
data access code in the website and some in a service. Putting all such
code in the web application would probably make maintenance easier.
Instead of windows service doing it, can we have a web service do the
detailed operations mentioned above and windows service just calling
the methods of the web service...?
Yes, that is certainly feasible, and would be a fairly neat way of
doing it.
Would like to get suggestions to keep the windows service and
webservice in single system or different system...? (Windows Service in
Web Application System and Web Service in Database server System...)


If the web application needs access to the database anyway, there seems
to be no real advantage in putting the web service (which also needs
the database) on the data server, if it is still going to be accessed
by the web application from its server. Also, if the windows service
does just call methods of the web service, then it would have so little
overhead or attack surface that it could go on either server, with no
real difference in performance or maintainability , although putting it
on the same server as the web service it calls would mean that the web
service does not need to accept remote connections, making it more
secure.

It is still probably best to keep the database on a separate server
(mainly for performance reasons); I would probably have it so the
database server did nothing but the database, and did not host either
of the services or the main application.

Apr 13 '06 #5

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

Similar topics

1
9658
by: Faiz | last post by:
We have developed an application in VB6 (say AA.exe). We wish to schedule the execution of this application (AA.exe) through Windows Task Scheduler. Is there a way through which we can add this application (AA.exe) to Task Scheduler by using another application (say BB.exe), which is also developed using VB6? The operating systems can be Windows 2000, Windows XP or any later version of Windows... We also wish that whenever the second...
19
5814
by: Eric | last post by:
I'm trying to have some scripts run periodically on Windows XP and found the "Task Scheduler" did not execute my scripts. My scripts are of the form scriptName.py, and will run just by invoking that name in the Command Prompt. Has anyone used the Windows Task Scheduler to run .py scripts, and if so isthere some intracacy to it? Is there a more UNIX version of a cron program one can run on Windows? Has anyone written a simple cron...
11
4075
by: Codemonkey | last post by:
Hi, I am writing an App in .Net that involves some scheduling of tasks. I was wondering if anybody has come accross any components or examples of how to implement a schedule manager like the one in the Task Scheduler for Windows? Basically I'm after something that'll allow me to specify a "recurring" or "once off" schedule with advanced options like "the first monday in the month" etc.
4
10614
by: keepyourstupidspam | last post by:
Anyone know of a reliable design for a Windows C++ Task Scheduler Class. The scheduler will expose a member function that will add schedules, its parameters will be an interval to run the tasks and a function pointer. This function pointer will be a void* function in other objects that will use the scheduler. So when another object calls the addSchedule function the scheduler will run these tasks at each interval provided. There may...
3
2233
by: mayur_hirpara | last post by:
Hi, I am writing a VB.NET application. It is a Windows application at the moment. The application contains a button. the click event of button perform a long running task. It needs to be started by windows task scheduler to carry out some operation. When I am testing the application I want to differentiate if the "differentiate between a program launched manually and launched by a
4
2703
by: Sid Price | last post by:
Is there a .NET (2003) class available somewhere that might provide a comprehensive task scheduler with a better granularity than the one minute of the built-in scheduler on XP? Even down to 15 seconds would be better than one minute. Sid.
1
5051
by: kplkumar | last post by:
Hi all I am fairly new to windows scheduler. I have an .exe console application that needs to be run 1st of every month. I created a scheduled task in Windows Schduler and called the .exe.
1
1127
by: =?Utf-8?B?QW5keSBTLg==?= | last post by:
I have an application written in Visual Basic .NET in Visual Studio 2005 that runs on a server and simply uses the filesystem.copydirectory to backup folders from my pc to a server. The problem I have is when I run it manually on the server it works fine, but when it runs from the scheduler it can't access my pc. I sign on to the server as the user it runs as when its ran from the scheduler, but it just can't access my pc when ran from...
5
1754
by: greg | last post by:
sokol wrote: The sched module is *not* designed for multithreading. It assumes that the thread waiting for events is the only one putting events into the queue, so it's impossible for an event to get scheduled while in the midst of a sleep. It also doesn't take any measures to protect its data structures from concurrent access.
1
4490
by: Cupric | last post by:
I have a python script that runs fine from the command line or from within IDLE, but doesn't work through the Vista Task Scheduler. The script downloads some csv files and then uses pywin32 to combine the csv files into a single document. When I run it through the task scheduler, it downloads the csv files, but then doesn't seem to launch excel. I can't figure out what is wrong or how to add enough logging to tell. I'm using Python...
0
8440
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8863
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8780
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...
1
8549
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5661
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
4192
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...
1
2765
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
2005
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1763
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.