3 ms·
One issue I found with writing early is handling error condition(s). On the server side, you may run into an error after you started writing out your reply. Th
by reddit_clone 13y ago
One issue I found with writing early is handling error condition(s).
On the server side, you may run into an error after you started writing out your reply. That may cause an incomplete reply. It may require more involved error handling between the server and client. 'Gather first write later' approach gives you a simpler error propagation between server and client.