Skip to content

feat: establish TCP connection to endpoint in advance#1

Draft
Sleavely wants to merge 1 commit intomainfrom
preconnect
Draft

feat: establish TCP connection to endpoint in advance#1
Sleavely wants to merge 1 commit intomainfrom
preconnect

Conversation

@Sleavely
Copy link
Copy Markdown
Member

In order to speed up the delivery of our HTTP payloads we can take advantage of the fact that the SQS+Lambda integration will occassionally return messages a bit early. In the margin between SQS and actual scheduledAt we can resolve DNS and open a socket to reduce the amount of work that needs to happen once the job is meant to make its HTTP call.

Use the EXECUTION_MARGIN_IN_SECONDS to resolve DNS and open a socket to reduce latency once the time is up
@Sleavely Sleavely marked this pull request as draft February 10, 2023 11:57
@Sleavely
Copy link
Copy Markdown
Member Author

Marking as draft since I think the SQS timings could be tweaked to ensure we always have a little bit of leftover time to preconnect

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.

1 participant