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

Implement load feedback mechanism #170

Open
igorshapiro opened this issue Aug 28, 2017 · 0 comments
Open

Implement load feedback mechanism #170

igorshapiro opened this issue Aug 28, 2017 · 0 comments
Assignees
Labels

Comments

@igorshapiro
Copy link
Contributor

Allow providing feedback to the message puller on the load of the service. Example:

Suppose we have 3 types of messages (A, B, C) with the following resources required to process the messages:

  • message A requires 4Gb RAM
  • message B requires 1Gb RAM
  • message C requires 10Mb RAM

Currently the puller will try to handle up to concurrency messages simultaneously, but if we have a 32Gb RAM machine and already handling 8 messages of type A - we just don't have capacity for any other message.

Instead of replying to all the events with OutOfCapacityError - it'd be better if the puller will hold the messages until the capacity is available.

@igorshapiro igorshapiro self-assigned this Aug 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant