Removing the email_send bottleneck (Lasso 8.6)

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Removing the email_send bottleneck (Lasso 8.6)

Stephen Smiroldo-4
H All,

Is there a decent way to perform an email_send asynchronously in Lasso 8.6? I found the below article but it was written over 4 years ago for 8.5  and I'm not sure if it applies to 8.6...

http://www.lassosoft.com/Speeding-up-Email-Sending-with-Asynchronous-Tags

We are experiencing between 2 and 60 second delays on some emails being sent out. This is causing issues with a 3rd party performing HTTP post calls to this page (with only ONE email address to send to). I need all process times to stay within 1-3 seconds (which it does without sending emails).

It would be great if the -Asyc option works with 8.6 and removes that delay. If not, maybe a scheduled event sending the email 1 minute into the future would remove the bottleneck? However, you all may have better ideas.

Thanks,

Stephen Smiroldo
http://www.national-college.edu

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Removing the email_send bottleneck (Lasso 8.6)

stevepiercy
See:

-Immediate

If specified then the email is sent immediately without using
the outgoing message queue.

--steve


On 5/17/12 at 3:21 PM, [hidden email] (Stephen
Smiroldo) pronounced:

>H All,
>
>Is there a decent way to perform an email_send asynchronously
>in Lasso 8.6? I found the below article but it was written over
>4 years ago for 8.5  and I'm not sure if it applies to 8.6...
>http://www.lassosoft.com/Speeding-up-Email-Sending-with-Asynchronous-Tags
>
>We are experiencing between 2 and 60 second delays on some
>emails being sent out. This is causing issues with a 3rd party
>performing HTTP post calls to this page (with only ONE email
>address to send to). I need all process times to stay within
>1-3 seconds (which it does without sending emails).
>
>It would be great if the -Asyc option works with 8.6 and
>removes that delay. If not, maybe a scheduled event sending the
>email 1 minute into the future would remove the bottleneck?
>However, you all may have better ideas.
>
>Thanks,
>
>Stephen Smiroldo
>http://www.national-college.edu
>
>#############################################################
>This message is sent to you because you are subscribed to
>the mailing list Lasso
>[hidden email]
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Removing the email_send bottleneck (Lasso 8.6)

Stephen Smiroldo-4
Hi Steve. I am already using -immediate. It's consistently faster than not using, but some requests still hang between 2-60 seconds. It seems using "-immediate" still has to wait on sending the message to an SMTP server (and possibly recipient download)?

Stephen


On May 17, 2012, at 3:42 PM, Steve Piercy - Web Site Builder wrote:

> See:
>
> -Immediate
>
> If specified then the email is sent immediately without using the outgoing message queue.
>
> --steve
>
>
> On 5/17/12 at 3:21 PM, [hidden email] (Stephen Smiroldo) pronounced:
>
>> H All,
>>
>> Is there a decent way to perform an email_send asynchronously in Lasso 8.6? I found the below article but it was written over 4 years ago for 8.5  and I'm not sure if it applies to 8.6...
>> http://www.lassosoft.com/Speeding-up-Email-Sending-with-Asynchronous-Tags
>>
>> We are experiencing between 2 and 60 second delays on some emails being sent out. This is causing issues with a 3rd party performing HTTP post calls to this page (with only ONE email address to send to). I need all process times to stay within 1-3 seconds (which it does without sending emails).
>>
>> It would be great if the -Asyc option works with 8.6 and removes that delay. If not, maybe a scheduled event sending the email 1 minute into the future would remove the bottleneck? However, you all may have better ideas.
>>
>> Thanks,
>>
>> Stephen Smiroldo
>> http://www.national-college.edu
>>
>> #############################################################
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso
>> [hidden email]
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Steve Piercy               Web Site Builder               Soquel, CA
> <[hidden email]>                  <http://www.StevePiercy.com/>
>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

RE: Removing the email_send bottleneck (Lasso 8.6)

Rick Draper-2
Hi Stephen,

I will take a stab here and suggest the issue lies in something else and not specifically email_send.  Do these emails have large attachments?  Where / what is the SMTP server?  2 seconds is a ridiculously long time for an email send action.

> seems using "-immediate" still has to wait on sending the message to an SMTP server (and possibly recipient download)?

The code on the page will have to finish negotiating with the SMTP server before it moves on, but the download of the email is completely independent and handled by the recipient's own mail server.  If it is real issue of giving the user back the page, spin the email call off into an async process.

Very best regards,

Rick


#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Removing the email_send bottleneck (Lasso 8.6)

fletcher sandbeck-2
In reply to this post by Stephen Smiroldo-4
On May 17, 2012, at 12:51 PM, Stephen Smiroldo wrote:

> Hi Steve. I am already using -immediate. It's consistently faster than not using, but some requests still hang between 2-60 seconds. It seems using "-immediate" still has to wait on sending the message to an SMTP server (and possibly recipient download)?

The -Immediate keyword makes the tag synchronous.  You have to wait for the SMTP session to complete before you can continue processing the page.  If you want the page to return faster then simply removing -Immediate should do the trick.  Plus, you'll get the benefit of automatic retries which are essential for delivering email to some SMTP servers.

Otherwise, the advice in that article should be applicable to 8.6.  

You can probably combine the Custom Asynchronous Option with the -Immediate parameter if you want to avoid the queue and send asynchronously.

[fletcher]

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Removing the email_send bottleneck (Lasso 8.6)

Wade Maxfield
In reply to this post by Rick Draper-2
On 18/05/2012, at 8:11 AM, Rick Draper wrote:

> I will take a stab here and suggest the issue lies in something else and not specifically email_send.  Do these emails have large attachments?  Where / what is the SMTP server?  

Expanding on that, are you sending all mail via your own SMTP server (relaying) or have you got your site set to Send Directly to SMTP Servers?

 - Wade


#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Removing the email_send bottleneck (Lasso 8.6)

Stephen Smiroldo-4
We have our own SMTP server (Exchange) and we're sending all email through that.

I added the -Async option to the Email_send tag and most requests this 3rd party is sending are now taking 1 second or less. Strangely, a few are still taking from 30-50 seconds. After I added the -Async option yesterday afternoon, there have been a little over 100 requests. Approximately 15-18 of the 100+ took 30-50 seconds to perform the email_send. BTW... I am not using the -immediate option.

I'm recording the server time at the start of the request, then right before the emails are sent, and then right after the emails. Time before the email_send tag is consistently 1 second (or less) -- EVERY SINGLE request takes 1 second or less BEFORE the email_send tag... and most are still 1 second or less AFTER the email_send tag. Attachments for the response email being sent out are only a few small images (adding up to less than 50 KB).

Fletcher, since the process times have become much faster in most cases after adding the -Async option, is it safe to assume the -Async option is now built into 8.6? Since the article said to download the "Email_Async.lasso" file and place in the LassoStartup folder for Lasso 8.5, I wanted to make sure this isn't necessary for 8.6.


-Stephen



On May 17, 2012, at 6:28 PM, Wade Maxfield wrote:

> On 18/05/2012, at 8:11 AM, Rick Draper wrote:
>
>> I will take a stab here and suggest the issue lies in something else and not specifically email_send.  Do these emails have large attachments?  Where / what is the SMTP server?  
>
> Expanding on that, are you sending all mail via your own SMTP server (relaying) or have you got your site set to Send Directly to SMTP Servers?
>
> - Wade
>
>
> #############################################################
> This message is sent to you because you are subscribed to
>  the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>