Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question - Sendgrid client - Singleton #695

Closed
alexmaie opened this issue May 17, 2018 · 1 comment
Closed

Question - Sendgrid client - Singleton #695

alexmaie opened this issue May 17, 2018 · 1 comment
Labels
status: duplicate duplicate issue

Comments

@alexmaie
Copy link

Issue Summary

Question, is the SendGridClient thread safe? I see that internally, a new HttpClient is created for each SendGridClient object. In theory, we should avoid creating too many HttpClients since this is could to socket exhaustion and also it's a documented antipattern

@thinkingserious
Copy link
Contributor

Hi @alexmaie,

Please follow this thread. Thanks!

With Best Regards,

Elmer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate duplicate issue
Projects
None yet
Development

No branches or pull requests

2 participants