Skip to content

Add connection pools for Pinpoint SMS, Voice senders#7314

Merged
zachmargolis merged 1 commit intomainfrom
margolis-pinpoint-connection-pool
Nov 8, 2022
Merged

Add connection pools for Pinpoint SMS, Voice senders#7314
zachmargolis merged 1 commit intomainfrom
margolis-pinpoint-connection-pool

Conversation

@zachmargolis
Copy link
Contributor

@zachmargolis zachmargolis commented Nov 8, 2022

Hypothesis: similar to #7292, we might be able to save a lot of time in hot codepaths by making these API clients longer-lived,

Unfortunately, I don't think load testing will highlight changes from this because we mock SMS, Voice in our load tests but I do think a sandbox deploy will help confirm that these work.

One thing that this PR removes is graceful handling of "all clients failed to build" because it wasn't clear to me how to easily handle a nil value in a connection pool (because it's hard to evict/clear out items). For the time being we'll go with an Erlang-style "just let it fail" and we can look at different ways to recover from this effectively.

Recommended: view with whitespace changes hidden (?w=1)

* Removed graceful handling of "all clients failed to build"

[skip changelog]
@zachmargolis
Copy link
Contributor Author

Confirmed that this worked on my sandbox, merging

@zachmargolis zachmargolis merged commit 4222bc1 into main Nov 8, 2022
@zachmargolis zachmargolis deleted the margolis-pinpoint-connection-pool branch November 8, 2022 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants