Zwillingssterns Weltenwald
Published on Zwillingssterns Weltenwald (https://www.draketo.de)

Startseite > JSON will bite us badly

JSON will bite us badly

JSON, the javascript object notation format, is everywhere nowadays. But there are 3 facts which will challenge its dominance.

  1. CPU cores are not getting much faster.
  2. You can rent VMs per core, and you pay per core.
  3. The network is still getting faster and cheaper, and HTTP/2 reduces the minimum cost per file.

Due to these changes, servers will become CPU bound again, and basic data structures on the web will become much more relevant. But the most efficient parsing of JSON requires guessing the final data structure while reading the data.

Therefore the changing costs will bring a comeback for binary data structures, and WebAssembly will provide efficient parsers and emitters in the clients.

Look at a typical website and count how much of the dynamic data it uses is structured data. Due to this I expect that 5 years from now, there will be celebrity talks with titles like

Scaling 10x higher with streams of structured data.

(And yes, that tech communication often works like this is a problem.)

If you have deep-rooted doubts, have a look at Towards a JavaScript Binary AST [1], which convinced me to finally publish this article.

(and parsing JSON is a minefield [2])

Werke von Arne Babenhauserheide. Lizensiert, wo nichts anderes steht, unter der GPLv3 or later und weiteren freien Lizenzen.

Diese Seite nutzt Cookies. Und Bilder. Manchmal auch Text. Eins davon muss ich wohl erwähnen — sagen die meisten anderen, und ich habe grade keine Zeit, Rechtstexte dazu zu lesen…


Source URL: https://www.draketo.de/english/json-will-bite

Links:
[1] https://yoric.github.io/post/binary-ast-newsletter-1/
[2] http://seriot.ch/parsing_json.php#41