2

Our application SLA is to send 25,000 emails per hour. We use AWS SES, so use success simulates email provided by AWS SES as in here instead of sending actual emails:

http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mailbox-simulator.html

Do we have any best way to do load testing other than this?

2 Answers 2

3

Load testing is typically a traffic consumption problem, i.e. determining how much traffic your server can process. Your brief description seems to describe the opposite problem: determining how much traffic your application can generate.

How you proceed may depend on your goals and your budget. The easiest test would be to measure how long it takes for your application to send 25000 emails to a single address. I assume you asked the question because you already ruled that out.

If your budget is limited, you might break the problem into two parts: (1) measuring how many queued emails Amazon SES can process, and (2) measuring how many email requests you can send to Amazon SES.

Amazon probably makes claims about how quickly they can send emails. You can trust their claims, or you can measure that for yourself. Either way, your testing approach should reflect that you do not need to test Amazon SES's performance every time you change your application.

Depending on how you structure your application, you might choose to decompose the part (2) further. For example, the process that decides that an email needs to be sent might write that information to a queue, and a separate process might read the queue and send the request to Amazon SES. You might benefit by measuring the performance of those processes separately. Moreover, if it is possible that the queue-reading process is non-linear (e.g. because it sorts the queue entries first), or has problems scaling (e.g. because it reads the entire queue into memory), you might also want to measure how quickly the queue-reading process can compose an email, and then separately measure how quickly the queue-reading process can send emails. The latter measurement might lead to decisions about whether to use an API that can queue multiple emails to Amazon SES simultaneously.

0

Please check this approach Load Testing Your Email Server: How to Send and Receive E-mails with JMeter - http://blazemeter.com/blog/load-testing-your-email-server-how-send-and-receive-e-mails-jmeter

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.