kefirfromperm / grails-asynchronous-mail

The Grails Asynchronous Mail plugin
http://grails.org/plugin/asynchronous-mail
21 stars 36 forks source link

Speed improvement and workaround for GPASYNCHRONOUSMAIL-27 #3

Closed ilopmar closed 11 years ago

ilopmar commented 11 years ago

Speed improvement and workaround for GPASYNCHRONOUSMAIL-27. All the information is at http://jira.grails.org/browse/GPASYNCHRONOUSMAIL-27

This commit c1d65be include more optimizations sending the emails in parallel using GPars.

Regards, Iván.

ilopmar commented 11 years ago

Additional info for the GPars commit: c1d65be

I've added GPars but configured by default only with a pool of 1 thread. The user can configure this pool with a new property to improve the speed of send the emails.

Regards, Iván.

ilopmar commented 11 years ago

Thank you :-)

Could you release a new version of the plugin? At least a snapshot?

I think it would be great to update the documentation to include the new configuration options.

Regards, Iván.

kefirfromperm commented 11 years ago

Haré la versión nueva el fin de semana próximo. Quiero hacer un refactoring y crear unos testes.

ilopmar commented 11 years ago

Perfecto, muchas gracias.

P.D: Muy buen español :-)

ilopmar commented 11 years ago

Some performance results in case you're interested.

All these tests has been executed in my local machine (Intel Core i5 12 GB RAM with Linux) against a fake local smtp server that only counts the emails.

Now I've uploaded a test version to our preproduction environment that send emails using Amazon SES API and the results hasn't been so good. I've sent approximately 250 emails per minute using a 10 pool gpars size. I think I've reached our instance or Amazon SES limitation. For the moment this improvement is enough for us because we were sending arround 40 emails per minute.

Regards, Iván.