How to set TCP_NODELAY?

Hi

I have several micro services on the same OpenSuse 15.2 box and noticed that receiving data can take several seconds whereas sending data is instantaneous. The data is generally one or 2 kilobytes or less. So I was thinking I would like to try turning on the TCP_NODELAY flag to see if the performance increased. Since everything should be taking place in memory I figured the receiving should be fast just like the sending. So how do I set the flag? Any other suggestions about improving the speed would be appreciated.

Thanks,
Simon

TCP_NODELAY is socket option that can only be set by application using socket to send data. You should consult documentation for your application how to do it.

Okay thank-you.