I am setting up a grpc service that will upload images in chunks to the server. What I am trying to understand in trying to setup the server logic is how the grpc service handles multiple clients streaming at the same time.
I assume that streaming events will collide meaning client 1 starts uploading an image, the grpc server gets the events and starts saving the image to file. Then client 2 starts uploading and client 2's upload requests will be mixed in with client 1's upload requests.
How do you handle out of order uploads on the server so that the image data does not get mixed up with the wrong file?
Also while streaming can a single clients requests come in out of order too?