Targeting a CPU - parallel processing.

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Targeting a CPU - parallel processing.

    Ok, I have an application, forums software. 1000 users. Each has subscribe on
    to a given thread. Whenever anyone posts a new message, DURING the add
    routine, we have to send out notices to everyone via email that the new message
    has been posted. If we do this 'inline' it'll be Breakfast before the viewer
    is able to see anything again. How can we, using a 4 CPU server, instruct
    CPU's 3-4 or 3 or xx to process this email stream in PARALLEL? Another
    solution is to have a separate server using a 5 minute scheduler look for
    members who subscribe and unbroadcast messages, and have it do the work. But
    that's the same as a single CPU in the primary server. Any simple solutions.
    Hah! Nothing is THAT simple. Thanks, Robert

    cf_code_warrior Guest

  2. Similar Questions and Discussions

    1. LWP::Parallel::RobotUA
      Hi, I'm trying to get web documents returned for analysis using the RobotUA part of LWP::Parallel, but for some reason the callback function never...
    2. Parallel::Simple
      I just finished coding, testing, and documenting a module that I've written for CPAN. I wanted to get some feedback here on it before I upload it....
    3. parallel execution
      Hi. I would like to start from a PHP program another PHP program in such a way that the calling program can continue it's execution (after...
    4. [PHP] LWP::Parallel in PHP
      On Thu, 28 Aug 2003 20:25:05 +0300, you wrote: Think you're out of luck. Yes, it's a problem I've run up against more than once. There's no...
    5. Legacy Parallel PCI
      "Dale Stover" <dale@stpsoft.com> wrote in message news:vh86f0qplqnd56@corp.supernews.com... Check out...
  3. #2

    Default Re: Targeting a CPU - parallel processing.

    Actually, there is a simple solution now using CFMX 7. Using the
    asynchonous gateway you can have it fire off an event to the gateway using
    SendGatewayMessage. The function will immediately return and then gateway
    can take as long (or as little) as it needs because it will be in a separate
    thread. The user will never notice a slowdown.

    Dean

    "cf_code_warrior" <webforumsuser@macromedia.com> wrote in message
    news:d14rb3$qs1$1@forums.macromedia.com...
    > Ok, I have an application, forums software. 1000 users. Each has
    subscribe on
    > to a given thread. Whenever anyone posts a new message, DURING the add
    > routine, we have to send out notices to everyone via email that the new
    message
    > has been posted. If we do this 'inline' it'll be Breakfast before the
    viewer
    > is able to see anything again. How can we, using a 4 CPU server, instruct
    > CPU's 3-4 or 3 or xx to process this email stream in PARALLEL? Another
    > solution is to have a separate server using a 5 minute scheduler look for
    > members who subscribe and unbroadcast messages, and have it do the work.
    But
    > that's the same as a single CPU in the primary server. Any simple
    solutions.
    > Hah! Nothing is THAT simple. Thanks, Robert
    >

    Dean Harmon Guest

  4. #3

    Default Re: Targeting a CPU - parallel processing.

    What you need is to start a background CFM page that will send all those
    emails. You can do it by using CFHTTP without waiting on the result (small
    timeout) or by using this tag: [url]http://www.cftagstore.com/tags/cfxhttp5.cfm[/url]

    Mr Black Guest

  5. #4

    Default Re: Targeting a CPU - parallel processing.

    Thank you both for these helpful answers. Sarcasm NOT intended!

    cf_code_warrior 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