提问 HN:在 TS/JS 中使用 Protobuf,可怕吗?
1 分•作者: joeycumines•5 个月前
我想快速地、嗯,进行一次“尖叫检查”,因为我对这个生态系统感到担忧。
从我所见的情况来看,protobuf-es 在 API 和整体可用性方面显然是赢家。 我还花了整整两天时间来解决一个典型的差一错误解析问题:https://github.com/bufbuild/protobuf-es/pull/1183,这严重影响了生产环境。 如果这个实现正如它所声称的那样是最合规的,那么,我表示担忧。
最近的这次经历与我过去的经验一致——JavaScript 是这个生态系统中的异类。 我只是希望它不必如此。
查看原文
I'm asking for a quick, well, scream check, because the ecosystem concerns me.<p>From what I've seen, protobuf-es is the clear winner in terms of API and general usability. I also burnt two full days resolving an off-by-typically-1 parsing error: https://github.com/bufbuild/protobuf-es/pull/1183, which impacted production significantly. If that implementation is the most compliant as it claims, well, I have concerns.<p>This recent experience is consistent with my past experience - that JS is the oddball of the ecosystem. I'm just hoping it doesn't have to be.