Closed
Description
We are planning to use the AWS SES C# SDK for sending emails coming from a background service / windows service that runs 24/7.
In the official documentation: https://aws.amazon.com/blogs/messaging-and-targeting/getting-started-with-amazon-ses-and-net/
The example was
using (var client = new AmazonSimpleEmailServiceClient(awsAccessKey, awsSecretKey))
{
client.SendEmail(request);
}
it looks like it is instantiating everytime it will send an email, do we really need to do this for our scenario? Or it would be better to instantiate it in a singleton? Just like in c# httpclient and httpclient factory.