Github user medcv commented on the issue:

    https://github.com/apache/flink/pull/5996
  
    @StephanEwen I updated the code and used `ExecutionContext.global` which 
makes use of threadpool. 
    
    I tested it and results showed that the code sent off multiple requests 
concurrently (parallelism = 1). 
    
    Bellow result shows that waiting time was overlaying with sending other 
requests and receiving responses
    Output format: `(Quote Number, {Quote API response})` which `Quote Number` 
was sequential input. 
    
    <img width="1397" alt="screen shot 2018-05-27 at 7 26 40 pm" 
src="https://user-images.githubusercontent.com/9163132/40592122-6ea8ef5a-61e9-11e8-99d5-2deeffa3d9be.png";>
    
    Bellow result is when I called the external api within streaming API which 
shows the call is blocked until request got resolved 
    
    <img width="1401" alt="screen shot 2018-05-27 at 8 04 37 pm" 
src="https://user-images.githubusercontent.com/9163132/40592123-70b03d62-61e9-11e8-9068-eef2a102f19b.png";>
    



---

Reply via email to