-
Notifications
You must be signed in to change notification settings - Fork 24
Processes batching and event threshold #117
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
Conversation
ArtursKadikis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"stopping the process" none of this
potentially:
process -> processing
tests need to be updated for setting the value after init. That should work
examples/example_integration.cpp
Outdated
| ct.start("YOUR_APP_KEY", "https://try.count.ly", 443, true); | ||
| ct.SetMaxEventsPerMessage(10); | ||
| ct.setAutomaticSessionUpdateInterval(5); | ||
| ct.setMaxRequestQueueProcessingSize(2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need a comment here and a not that this isn't needed for production
src/countly.cpp
Outdated
| * @param requestQueueProcessingSize: max size of requests to process at a time | ||
| */ | ||
| void Countly::setMaxRequestQueueProcessingSize(unsigned int requestQueueProcessingSize) { | ||
| if (is_sdk_initialized) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be usable before or after init
src/request_module.cpp
Outdated
| processedRequestsCounter++; | ||
|
|
||
| if (processedRequestsCounter > impl->_configuration->requestQueueProcessingThreshold) { | ||
| impl->_logger->log(LogLevel::DEBUG, cly::utils::format_string("[RequestModule] processQueue: Processing limit has been reached, stopping the process.")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Processing limit -> Processing max batch size
tests/config.cpp
Outdated
| ct.setAutomaticSessionUpdateInterval(5); | ||
| ct.setSalt("salt"); | ||
| ct.setMaxRequestQueueSize(10); | ||
| ct.setMaxRequestQueueProcessingSize(10); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't belong here. is false
No description provided.