Once the client starts receiving data, kafka stream keep enqueuing data.
I just used increasing int value as a message.
enqueue 1, queue size: 1
enqueue 2, queue size: 2
enqueue 3, queue size: 3
enqueue 4, queue size: 4
enqueue 5, queue size: 5
enqueue 6, queue size: 6
enqueue 7, queue size: 7
enqueue 8, queue size: 8
enqueue 9, queue size: 9
enqueue 10, queue size: 10
enqueue 11, queue size: 11
enqueue 12, queue size: 12
enqueue 13, queue size: 13
enqueue 14, queue size: 14
enqueue 15, queue size: 15
enqueue 16, queue size: 16
enqueue 17, queue size: 17
.
.
.
enqueue 19482, queue size: 100
enqueue 19483, queue size: 100
enqueue 19484, queue size: 100
enqueue 19485, queue size: 100
enqueue 19486, queue size: 99
enqueue 19487, queue size: 100
enqueue 19488, queue size: 100
enqueue 19489, queue size: 100
enqueue 19490, queue size: 100
enqueue 19491, queue size: 100
enqueue 19492, queue size: 100
enqueue 19493, queue size: 100
enqueue 19494, queue size: 100
enqueue 19495, queue size: 100
enqueue 19496, queue size: 100
enqueue 19497, queue size: 100
enqueue 19498, queue size: 100
enqueue 19499, queue size: 100
enqueue 19500, queue size: 100
enqueue 19501, queue size: 0
enqueue 19502, queue size: 1
enqueue 19503, queue size: 1
enqueue 19504, queue size: 0
enqueue 19505, queue size: 0
enqueue 19506, queue size: 1
enqueue 19507, queue size: 2
enqueue 19508, queue size: 1
enqueue 19509, queue size: 2
enqueue 19510, queue size: 2
enqueue 19511, queue size: 1
enqueue 19512, queue size: 1
enqueue 19513, queue size: 1
enqueue 19514, queue size: 1
enqueue 19515, queue size: 1
enqueue 19516, queue size: 0
enqueue 19517, queue size: 0
enqueue 19518, queue size: 0
enqueue 19519, queue size: 0
enqueue 19520, queue size: 1
enqueue 19521, queue size: 0
enqueue 19522, queue size: 0
enqueue 19523, queue size: 0
enqueue 19524, queue size: 0
enqueue 19525, queue size: 0
enqueue 19526, queue size: 0
enqueue 19527, queue size: 0
enqueue 19528, queue size: 1
enqueue 19529, queue size: 1
enqueue 19530, queue size: 1
enqueue 19531, queue size: 2
enqueue 19532, queue size: 1
enqueue 19533, queue size: 2
enqueue 19534, queue size: 1
enqueue 19535, queue size: 2
enqueue 19536, queue size: 2
enqueue 19537, queue size: 2
enqueue 19538, queue size: 2
enqueue 19539, queue size: 1
enqueue 19540, queue size: 0
enqueue 19541, queue size: 0
enqueue 19542, queue size: 1
enqueue 19543, queue size: 0
enqueue 19544, queue size: 0
enqueue 19545, queue size: 1
enqueue 19546, queue size: 1
enqueue 19547, queue size: 2
enqueue 19548, queue size: 1
enqueue 19549, queue size: 1
enqueue 19550, queue size: 1
enqueue 19551, queue size: 1
enqueue 19552, queue size: 1
enqueue 19553, queue size: 1
enqueue 19554, queue size: 2
enqueue 19555, queue size: 3
enqueue 19556, queue size: 2
enqueue 19557, queue size: 3
enqueue 19558, queue size: 3
enqueue 19559, queue size: 3
enqueue 19560, queue size: 2
enqueue 19561, queue size: 3
enqueue 19562, queue size: 3
enqueue 19563, queue size: 3
enqueue 19564, queue size: 4
enqueue 19565, queue size: 4
enqueue 19566, queue size: 4
enqueue 19567, queue size: 5
enqueue 19568, queue size: 4
enqueue 19569, queue size: 4
enqueue 19570, queue size: 3
enqueue 19571, queue size: 3
enqueue 19572, queue size: 3
enqueue 19573, queue size: 3
enqueue 19574, queue size: 3
enqueue 19575, queue size: 4
enqueue 19576, queue size: 3
enqueue 19577, queue size: 4
enqueue 19578, queue size: 2
enqueue 19579, queue size: 2
enqueue 19580, queue size: 2
enqueue 19581, queue size: 2
enqueue 19582, queue size: 2
enqueue 19583, queue size: 2
enqueue 19584, queue size: 2
enqueue 19585, queue size: 2
enqueue 19586, queue size: 1
enqueue 19587, queue size: 1
enqueue 19588, queue size: 1
enqueue 19589, queue size: 1
enqueue 19590, queue size: 2
enqueue 19591, queue size: 1
enqueue 19592, queue size: 1
enqueue 19593, queue size: 2
enqueue 19594, queue size: 3
enqueue 19595, queue size: 4
enqueue 19596, queue size: 4
enqueue 19597, queue size: 5
enqueue 19598, queue size: 5
enqueue 19599, queue size: 5
enqueue 19600, queue size: 5
enqueue 19601, queue size: 5
enqueue 19602, queue size: 4
enqueue 19603, queue size: 4
enqueue 19604, queue size: 5
enqueue 19605, queue size: 4
enqueue 19606, queue size: 4
enqueue 19607, queue size: 5
enqueue 19608, queue size: 4
enqueue 19609, queue size: 5
enqueue 19610, queue size: 5
enqueue 19611, queue size: 5
enqueue 19612, queue size: 6
enqueue 19613, queue size: 6
enqueue 19614, queue size: 6
enqueue 19615, queue size: 7
enqueue 19616, queue size: 6
enqueue 19617, queue size: 5
enqueue 19618, queue size: 5
enqueue 19619, queue size: 6
enqueue 19620, queue size: 7
enqueue 19621, queue size: 8
enqueue 19622, queue size: 9
enqueue 19623, queue size: 9
enqueue 19624, queue size: 10
enqueue 19625, queue size: 11
enqueue 19626, queue size: 11
enqueue 19627, queue size: 12
enqueue 19628, queue size: 12
enqueue 19629, queue size: 12
enqueue 19630, queue size: 12
enqueue 19631, queue size: 11
enqueue 19632, queue size: 11
enqueue 19633, queue size: 11
enqueue 19634, queue size: 12
enqueue 19635, queue size: 12
enqueue 19636, queue size: 12
enqueue 19637, queue size: 12
enqueue 19638, queue size: 12
enqueue 19639, queue size: 13
enqueue 19640, queue size: 14
enqueue 19641, queue size: 14
enqueue 19642, queue size: 15
enqueue 19643, queue size: 16
enqueue 19644, queue size: 16
enqueue 19645, queue size: 17
enqueue 19646, queue size: 17
enqueue 19647, queue size: 18
enqueue 19648, queue size: 18
enqueue 19649, queue size: 18
enqueue 19650, queue size: 19
enqueue 19651, queue size: 19
enqueue 19652, queue size: 18
enqueue 19653, queue size: 18
enqueue 19654, queue size: 19
enqueue 19655, queue size: 20
enqueue 19656, queue size: 20
enqueue 19657, queue size: 21
enqueue 19658, queue size: 22
enqueue 19659, queue size: 21
enqueue 19660, queue size: 22
enqueue 19661, queue size: 22
enqueue 19662, queue size: 23
enqueue 19663, queue size: 23
enqueue 19664, queue size: 24
enqueue 19665, queue size: 23
enqueue 19666, queue size: 24
enqueue 19667, queue size: 24
enqueue 19668, queue size: 24
enqueue 19669, queue size: 24
enqueue 19670, queue size: 25
enqueue 19671, queue size: 24
enqueue 19672, queue size: 25
enqueue 19673, queue size: 25
enqueue 19674, queue size: 26
enqueue 19675, queue size: 27
enqueue 19676, queue size: 28
enqueue 19677, queue size: 27
enqueue 19678, queue size: 27
enqueue 19679, queue size: 28
enqueue 19680, queue size: 28
enqueue 19681, queue size: 29
enqueue 19682, queue size: 29
enqueue 19683, queue size: 30
enqueue 19684, queue size: 31
enqueue 19685, queue size: 30
enqueue 19686, queue size: 30
enqueue 19687, queue size: 31
enqueue 19688, queue size: 30
enqueue 19689, queue size: 30
enqueue 19690, queue size: 30
enqueue 19691, queue size: 30
enqueue 19692, queue size: 31
enqueue 19693, queue size: 31
enqueue 19694, queue size: 31
enqueue 19695, queue size: 32
enqueue 19696, queue size: 32
enqueue 19697, queue size: 32
enqueue 19698, queue size: 32
enqueue 19699, queue size: 32
enqueue 19700, queue size: 33
enqueue 19701, queue size: 34
enqueue 19702, queue size: 33
enqueue 19703, queue size: 33
enqueue 19704, queue size: 33
enqueue 19705, queue size: 33
enqueue 19706, queue size: 34
enqueue 19707, queue size: 34
enqueue 19708, queue size: 34
.
.
.
enqueue 19962, queue size: 95
enqueue 19963, queue size: 96
enqueue 19964, queue size: 97
enqueue 19965, queue size: 98
enqueue 19966, queue size: 99
enqueue 19967, queue size: 100
After this point, though I stop the server, the client keeps receiving data.
HelloReply(Backpressure required! 526)
HelloReply(Backpressure required! 527)
HelloReply(Backpressure required! 528)
HelloReply(Backpressure required! 529)
HelloReply(Backpressure required! 530)
HelloReply(Backpressure required! 531)
HelloReply(Backpressure required! 532)
HelloReply(Backpressure required! 533)
HelloReply(Backpressure required! 534)
HelloReply(Backpressure required! 535)
.
.
.
I suspect, HTTP/2 layer of Akka-grpc(or other thing) receives about 20K messages and populate them to the sink based on back-pressure.
Do I need a specific configuration to enable backpressure in HTTP layer?