Using threads in ASPX objects

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Re: Using threads in ASPX objects

    ..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" <dwork@macam.ac.il> wrote in message
    news:#$N8Hy3VDHA.484@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.
    >
    >

    Alvin Bruney Guest

  2. Similar Questions and Discussions

    1. passing a token from pageA.aspx to pageB.aspx
      I am trying to get pageA.aspx gridView to pass a key (say deptID) to pageB.aspx which will use the value passed as a filter in it's own griView...
    2. Accessing a aspx page using HttpWebRequest from another aspx page on the same webapp
      Did you have any luck on this as I have the same problem. Maybe you can help me out of you solved your problem.
    3. Newbie Question? Aligning Objects to other Objects?
      Hi, I think this a newbie question and I will try to explain it as best as possible! I have a hollow circle (no fill, or stroke) and x amount of...
    4. Storing Objects/Arrays in Stored Objects
      Hello All, I recently came across a very frustrating issue when trying to create and store arrays within objects in a Shared object. It took me...
    5. Objects, threads and so on
      Hi all, I'm quite new to Perl so please bear with me :) I've experience in Delphi so I thought I knew about objects... it seems I don't :( ...
  3. #2

    Default 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.


    David Travis Guest

  4. #3

    Default Re: Using threads in ASPX objects

    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
    [url]http://software.altaircom.net/HomePage.aspx?template=prdinfo&xsl.productid=quick mailer[/url]),
    but it's easy DYI. I build upon that list manager software
    ([url]http://palehorse.altaircom.net[/url], <ad>available for sale or rent ;-)</ad>,
    and its working fine for huge lists.

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


    Michal A. Valasek Guest

  5. #4

    Default Re: Using threads in ASPX objects

    Ok, thanks for your replies, you were most helpful!

    Thanks,
    Dudi.


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    David Treves Guest

  6. #5

    Default Re: Using threads in ASPX objects

    Can it do Attachments?
    What is the .dll written in, what language?

    Thanks

    "Michal A. Valasek" <news@altaircom.net> wrote in message
    news:eZlgYb5VDHA.3220@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
    >
    [url]http://software.altaircom.net/HomePage.aspx?template=prdinfo&xsl.productid=quick mailer[/url]),
    > but it's easy DYI. I build upon that list manager software
    > ([url]http://palehorse.altaircom.net[/url], <ad>available for sale or rent ;-)</ad>,
    > and its working fine for huge lists.
    >
    > --
    > Michal A. Valasek, Altair Communications, [url]http://www.altaircom.net[/url]
    > Please do not reply to this e-mail, for contact see [url]http://www.rider.cz[/url]
    >
    >

    MS News Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139