string and bytes are the same on the wire but generate different application code. string is defined to be utf-8, so if you are planning to put arbitrary bytes in there, you can't use that type. in some languages string is checked for utf8 conformance, which is expensive. In some languages allocating strings is more expensive than allocating bytes.
jeffbee|5 years ago
Only use string when you really mean utf8.
unknown|5 years ago
[deleted]
rakoo|5 years ago