Preventing data loss is one of the benefits of using network streams, especially since you can account for temporary network outages.
To tolerate temporary network outages, consider the following:
Determine the minimum average rate of data transfer your network stream performs.
Determine how long of a network outage you want to account for.
Using those two figures, multiply them to determine your minimum endpoint buffer size.
For example, if you continuously acquire 100 kB/s of voltage data from a measurement device, you may find that you only need 10 kB endpoint buffers to sustain the data transfer under ideal conditions. However, if you want to tolerate outages of up to 10 seconds without losing data from your measurement device, you'll need a minimum writer endpoint buffer size of 1 MB.