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

Using threads in ASPX objects

Hello,

I am working on a web application, where I should generate at some scenarios
large amounts of emails. I noticed that the mailing process is pretty slow,
hence the page loading when these emails are generated is slow too.

If I will use threads to execute the mailing process the page will load
quickly, and the thread will run in the background producing emails.

I know that in Java environment (Servlets) developers are not encouraged to
use threads in the servlets code, since all threading issues are handled by
the Servlet Container.

What are the ASP.NET methodologies regarding this matter?

Thanks,
David.
Nov 17 '05 #1
4 2498
..Net is not limited in this way as java.
..About the only thing you need to be concerned about is the usual threading
concurrency issues. Remember too, that thread management gets expensive
after about 15-20 threads are running simultaneously negating the benefits
of threading. The usual rules of touching window objects with the created
thread still applies.

"David Travis" <dw***@macam.ac.il> wrote in message
news:#$*************@TK2MSFTNGP09.phx.gbl...
Hello,

I am working on a web application, where I should generate at some scenarios large amounts of emails. I noticed that the mailing process is pretty slow, hence the page loading when these emails are generated is slow too.

If I will use threads to execute the mailing process the page will load
quickly, and the thread will run in the background producing emails.

I know that in Java environment (Servlets) developers are not encouraged to use threads in the servlets code, since all threading issues are handled by the Servlet Container.

What are the ASP.NET methodologies regarding this matter?

Thanks,
David.

Nov 17 '05 #2
Hi,

agree with previous post and add one more hint: Do not use System.Web.Mail
for this, its painfully slow, because its using COM Interop to CDONTS (which
are slow notoriously). Best way is to have MS SMTP installed and generate
message files directly to Mail Pickup folder, its lots faster.

I wrote free component for this (QuickMail, see
http://software.altaircom.net/HomePa...d=quickmailer),
but it's easy DYI. I build upon that list manager software
(http://palehorse.altaircom.net, <ad>available for sale or rent ;-)</ad>,
and its working fine for huge lists.

--
Michal A. Valasek, Altair Communications, http://www.altaircom.net
Please do not reply to this e-mail, for contact see http://www.rider.cz
Nov 17 '05 #3
Ok, thanks for your replies, you were most helpful!

Thanks,
Dudi.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #4
Can it do Attachments?
What is the .dll written in, what language?

Thanks

"Michal A. Valasek" <ne**@altaircom.net> wrote in message
news:eZ**************@tk2msftngp13.phx.gbl...
Hi,

agree with previous post and add one more hint: Do not use System.Web.Mail
for this, its painfully slow, because its using COM Interop to CDONTS (which are slow notoriously). Best way is to have MS SMTP installed and generate
message files directly to Mail Pickup folder, its lots faster.

I wrote free component for this (QuickMail, see
http://software.altaircom.net/HomePa...d=quickmailer), but it's easy DYI. I build upon that list manager software
(http://palehorse.altaircom.net, <ad>available for sale or rent ;-)</ad>,
and its working fine for huge lists.

--
Michal A. Valasek, Altair Communications, http://www.altaircom.net
Please do not reply to this e-mail, for contact see http://www.rider.cz

Nov 17 '05 #5

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

Similar topics

2
by: fishfry | last post by:
I'm learning about threads and I noticed there are two different ways I can implement a runnable object. In one way, I have one object and two threads; in the other way, I have two objects and two...
22
by: Jeff Louie | last post by:
Well I wonder if my old brain can handle threading. Dose this code look reasonable. Regards, Jeff using System; using System.Diagnostics; using System.IO; using System.Threading;
3
by: Alex | last post by:
I'm having a problem porting an ASP solution to ASPX. In the ASP solution I'm accessing a DCOM server, create sub DCOM objects and call functions from VB script on the ASP pages. The DCOM object...
10
by: Markus P | last post by:
Hi! I am trying to write an asp.net app (page/class) which is going to make several calls to distibuted objects (com+/serviced componentes) which in turns talks to other distributed computers....
3
by: Jerry Spence1 | last post by:
How can I gain access to all the threads running in my application? I'm looking for something like: Application.Threads.count Application.threads(item).IsAlive Application.threads(item).Name ...
9
by: jdlists | last post by:
I have inheirted some existing code, that i will explain in a moment, have needed to extend and ultimately should be able to run in threads. I've done a bunch of work with python but very little...
4
by: gsimmons | last post by:
I've been researching multi-threaded WinForms apps and thread synchronization stuff for a couple days since I'm working on refactoring a multi-threaded GUI app at work and want to be sure it's...
20
by: greg.johnsen80 | last post by:
I have been struggling with the following problem: In my console application I have function1 calling function2 which in turn uses threads to do computationally intensive tasks. Some of the...
167
by: darren | last post by:
Hi I have to write a multi-threaded program. I decided to take an OO approach to it. I had the idea to wrap up all of the thread functions in a mix-in class called Threadable. Then when an...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.