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

Make periodic jobs service requests disabled by default #1529

Merged
merged 2 commits into from
Jan 22, 2021

Conversation

dan4thewin
Copy link
Contributor

To avoid possible throttling when scaling up code based on this demo, jobs polling and repeated job updates are tied to command line arguments and disabled by default. This PR also drops redundant subscriptions.

{
errx( 1, "fatal error" );
}
errx( 1, "fatal error" );
}

if( sendStartNext( h ) == false )

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sendStartNext is a POST api which scales separate from Describe Job with $next as the ID which is a GET api. sendStartNext transactions will compete with the Update api which might result in throttling at scale.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The jobs library only uses MQTT.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies - I meant to say that the category of the API is for modification instead of retrieval. SendStartNext and DescribeJob are handled and scaled differently.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll try to understand this better. Any such changes will merit a new PR.

@dan4thewin dan4thewin merged commit e1a5892 into aws:main Jan 22, 2021
@dan4thewin dan4thewin deleted the poll-rework branch January 27, 2021 23:59
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.

4 participants