top | item 44652598

(no title)

hecturchi | 7 months ago

Localhost benchmarks are pretty meaningless on code that is expected to deal with network latencies orders of magnitude larger.

It's ok that it runs faster, but much better if it's easier, safer, or more painless than the alternatives. The amount of code for a hello-world doesn't seem to indicate so, but maybe it pays off on more complex usecases.

discuss

order

ymz_ncnk|7 months ago

Totally fair, the 3x is based on local throughput benchmarks focused on protocol overhead. It doesn’t reflect full network latency, but gives a baseline for serialization and transport cost.

I think for simple scenarios, the Command Pattern can indeed be an overhead. It’s more suited to systems where structure, composition, or replayability matter.