mesosphere / mesos-rxjava

RxJava client for Apache Mesos HTTP APIs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve scheduling and backpressure of Mesos response stream

cruhland opened this issue · comments

In MesosSchedulerClient.openEventStream(), there are some comments regarding backpressure and custom schedulers. Investigate how to improve the code so that the comments can be removed.

commented

Thought I'd comment on this rather than creating a new issue.
I am getting the dreaded MissingBackpressureException with my rx-mesos based scheduler.
Where is the right place to chain .onBackpressureBuffer(...) ?
It seems like trying to chain it to the unicastEvents is not going to work since it uses buffer(timespan) which explicitly does not support backpressure.

Fixed in #81