{"action":"closed","issue":{"url":"https://api.github.com/repos/ReactiveX/RxJava/issues/1927","labels_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/1927/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/1927/comments","events_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/1927/events","html_url":"https://github.com/ReactiveX/RxJava/issues/1927","id":51029586,"number":1927,"title":"Operator to call request(n) on behalf of its backpressure-unaware downstream?","user":{"login":"akarnokd","id":1269832,"avatar_url":"https://avatars.githubusercontent.com/u/1269832?v=3","gravatar_id":"","url":"https://api.github.com/users/akarnokd","html_url":"https://github.com/akarnokd","followers_url":"https://api.github.com/users/akarnokd/followers","following_url":"https://api.github.com/users/akarnokd/following{/other_user}","gists_url":"https://api.github.com/users/akarnokd/gists{/gist_id}","starred_url":"https://api.github.com/users/akarnokd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akarnokd/subscriptions","organizations_url":"https://api.github.com/users/akarnokd/orgs","repos_url":"https://api.github.com/users/akarnokd/repos","events_url":"https://api.github.com/users/akarnokd/events{/privacy}","received_events_url":"https://api.github.com/users/akarnokd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ReactiveX/RxJava/labels/Discussion","name":"Discussion","color":"5319e7"},{"url":"https://api.github.com/repos/ReactiveX/RxJava/labels/Enhancement","name":"Enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-12-04T21:11:33Z","updated_at":"2015-02-05T16:17:36Z","closed_at":"2015-02-05T16:17:36Z","body":"We have three strategies to apply backpressure to a source that doesn't itself support backpressure. Would it be useful to have some operator that calls request() on backpressure-aware upstream to feed a backpressure-unaware downstream? \r\n\r\nFor example, ```source.applyBackpressure(128, 16)``` would initially request 128 elements; when 16 elements have passed, it requests another 16. It doesn't buffer anything just calls request(n) on start and request(m) after each m elements have passed. What complicates things is that this operator should work if the downstream actually supports backpressure, i.e., a (256, 192) should not cause a ```MissingBackpressureException``` if ```observeOn``` is next in the chain, but this implies buffering or chosing the smallest what the operator uses and what downstream wants.\r\n\r\nThoughts?"}}