Is it time to replace REST with RPC?
Thomas Hunter II

Very interesting! Thank you!

These tests seem to be dealing with small messages. If the messages were larger the HTTP overhead might be negligible. I’d be interested in seeing the results with a larger payload involved.

A few ideas for more tests:

  • Testing with HTTP/2. It has header compression and some other performance optimizations.
  • Testing with GZIP or Brotli compression. A lot of servers are optimized to do compression and decompression very fast.
  • Using a language besides JavaScript. As you pointed out, JavaScript is so optimized for JSON, MessagePack can’t compete. But, that may not be true for other languages. You could also try CBOR instead of MessagePack.
  • Testing with GRPC (
  • Testing with Websockets
Like what you read? Give Adam Richeimer a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.