This is a sort of a networking and servers question but could also fit in another category.
I'm using the Pi Zero as a USB serial gadget and am sending a trigger command over the USB cable to action an event on the device.
This is fine but I was thinking/wondering:
If I convert it to an ethernet gadget instead and send my message over TCP/IP (not UDP) would that give me any deliverabilty benefits for the message (in terms of retries, if necessary etc.) without needing to do anything (the protocol picking up resends of the message, etc. if missed somehow by a service listening on the pizero).
I don't actually have a problem that I'm trying to fix.
The question is around the best way of ensuring reliable messaging with minimal effort when considering options between listing on a serial terminal vs. listening on a TCP socket.
I'm doing this in python so have a slight but not proven concern about message deliverability when the garbage collector runs on the pi zero (am concerned the loop listening on the serial terminal may miss the message if stalled by the gc or similar at some point...)