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

Fix potential MissingBackpressureException #45

Merged
merged 1 commit into from
Jan 30, 2020

Conversation

dariuszseweryn
Copy link
Collaborator

@dariuszseweryn dariuszseweryn commented Jan 9, 2020

In case notifications/indications come too quickly to be pushed through the bridge to non-native side there will be emitted a MissingBackpressureException from RxJava. To mitigate the problem a buffering backpressure strategy is added which should help in most common situations.

Pros:

  • No notifications will be discarded

Cons:

  • Potential OutOfMemoryException in case of prolonged, high speed notifications

Technically backpressure strategy should be exposed on the API level but can be introduced at a later moment.

In case notifications/indications come too quickly to be pushed through the bridge to non-native side there will be emitted a `MissingBackpressureException` from RxJava. To mitigate the problem a buffering backpressure strategy is added which should help in most common situations.

Pros:
- No notifications will be discarded
Cons:
- Potential `OutOfMemoryException` in case of prolonged, high speed notifications

Technically backpressure strategy should be exposed on the API level but can be introduced at a later moment.
@mikolak
Copy link
Collaborator

mikolak commented Jan 22, 2020

Does this issue occurs only on Android?

@mikolak
Copy link
Collaborator

mikolak commented Jan 22, 2020

Also: please create an issue for exposing it in the API.

@dariuszseweryn
Copy link
Collaborator Author

Does this issue occurs only on Android?

AFAIK — Yes

Also: please create an issue for exposing it in the API.

There are no API changes. Or I did not get the point. Could you explain?

@mikolak
Copy link
Collaborator

mikolak commented Jan 24, 2020

I meant this:

Technically backpressure strategy should be exposed on the API level but can be introduced at a later moment.

@mikolak mikolak merged commit 34991df into master Jan 30, 2020
@mikolak mikolak deleted the fix/android_missing_backpressure_exception branch January 30, 2020 14:19
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.

None yet

2 participants