I wrote a python program and its Dockerfile:
import time
print("Begin")
time.sleep(100);
print("End")
The image for it was created,and it was run using docker run <image-id>
and the behaviour that surprises me is,
after giving the run command in the console, it waits for sleep(100) seconds and prints "Begin"
and "End"
together.
Why are we not getting the intermediate results while running it?
Also how can I write a streaming app (in kafka or so), in this manner if it wont send the data immediately after it produces?