I use swift to send 1 email per batch with 6 connections to rotate between. Each time a page is called one email is sent.
Conceptually, how does this effect the rotator? If at all?
Also...
Say Connection 1 reaches the hourly limit and sends unsuccessfully....
Will Connection 1 always be called for the remainder of the hour?
And is there a EmailSuccess variable to know for SURE that it has gone through?
Also...
What's the harm in never calling the disconnect()?
Swift Connection Rotator
Moderators: Chris Corbyn, General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: Swift Connection Rotator
The rotator works on a per-request basis. PHP is stateless so when the page request has ended Swift doesn't know anything about previous requests. From your wording it seems you may have misunderstood what the rotator connection does...
If in a single page request you send 3 emails then the rotator will rotate 3 times. If you send 1 email using 3 separate page requests the rotator will just be at the first connection each time.
If in a single page request you send 3 emails then the rotator will rotate 3 times. If you send 1 email using 3 separate page requests the rotator will just be at the first connection each time.
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: Swift Connection Rotator
Connection rotation. That genius.
Might I ask: Does this actually improve performance of a bulk email sending engine? Say if I had several SMTP accounts, like GMail, my ISP * 3, etc and I rotated those connections.
It just seems that iterating through a list of connections like that would be expensive, no? I assume caching is employed to prevent much performance loss.
Very cool idea though...
Might I ask: Does this actually improve performance of a bulk email sending engine? Say if I had several SMTP accounts, like GMail, my ISP * 3, etc and I rotated those connections.
Hmmm...is there any way to parition that? Meaning, send the first 1000 emails with connection one, then switch to 2 for the next 1000, etc?If in a single page request you send 3 emails then the rotator will rotate 3 times. If you send 1 email using 3 separate page requests the rotator will just be at the first connection each time.
It just seems that iterating through a list of connections like that would be expensive, no? I assume caching is employed to prevent much performance loss.
Very cool idea though...
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: Swift Connection Rotator
Not speed if compared wit using the AntiFlood plugin (or at least neglible), but load, yes.Hockey wrote:Connection rotation. That genius.
Might I ask: Does this actually improve performance of a bulk email sending engine? Say if I had several SMTP accounts, like GMail, my ISP * 3, etc and I rotated those connections.
You can specify a threshold before the rotation occurs yes, and once a connection is established it is maintained until disconnect() is called on the rotator.Hockey wrote:Hmmm...is there any way to parition that? Meaning, send the first 1000 emails with connection one, then switch to 2 for the next 1000, etc?If in a single page request you send 3 emails then the rotator will rotate 3 times. If you send 1 email using 3 separate page requests the rotator will just be at the first connection each time.
It just seems that iterating through a list of connections like that would be expensive, no? I assume caching is employed to prevent much performance loss.
Very cool idea though...
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: Swift Connection Rotator
First there was C, then came C shell, around that same time frame I assume C++ and in the new millenium came C# (which I initially thought was pronounced C pound)...
Now we have a C^2 -- thats you (^2 = Squared or CC).
Software is always better when its powered by two.
I will certainly keep that rotator in mind as I re-implement my script in the next coming weeks. sweet.
Now we have a C^2 -- thats you (^2 = Squared or CC).
Software is always better when its powered by two.
I will certainly keep that rotator in mind as I re-implement my script in the next coming weeks. sweet.
Re: Swift Connection Rotator
How do I specify this threshold?? I'd really like to use it.Chris Corbyn wrote:You can specify a threshold before the rotation occurs yes, and once a connection is established it is maintained until disconnect() is called on the rotator.
Another irrelevant question, does connection rotator works with antiflood and throttler plug-in? How?
Thanks!
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: Swift Connection Rotator
I got my facts mxied up. You actually can'teverisk wrote:How do I specify this threshold?? I'd really like to use it.Chris Corbyn wrote:You can specify a threshold before the rotation occurs yes, and once a connection is established it is maintained until disconnect() is called on the rotator.
I'm going to add this feature.
Yes it does. You just register all 3 plugins and it will "just work"Another irrelevant question, does connection rotator works with antiflood and throttler plug-in? How?