Guy Royse @guy.dev · Mar 3

Redis 8 is gonna be out in just a few short weeks and—along with numerous performance improvements—it comes with a host of new data types. One of them is native JSON support which lets you store JSON as, well, JSON, rather than serializing it and shoving it in a string.

4 likes 2 replies

?

Replies

Guy Royse · Mar 3

Why would you want to use JSON over a string? Because race conditions. When you want to modify JSON that's stored in a string, you need to deserialize it, change it, and then reserialize it.

Will Gibbins · Mar 3

Oh this is so good! I’ve been bitten by this before