News for hackers. Stuff that matters.

reconditerose

LuaJIT is mostly compatible with 5.1, our goal is to make it pluggable so you can run with either 5.4 or 5.1.
Seems similar in impact to https://nvd.nist.gov/vuln/detail/cve-2021-32626, I wonder why this has a CVE 10.

This code also looks generally fixed in Lua5.4, https://github.com/lua/lua/blame/9ea06e61f20ae34974226074fc6.... Valkey and Redis really need to move to Lua that isn't so old.

Re:Redis is open source again on Thursday May 01, 2025 @03:17PM (#43862156)
Google is well known for having banned AGPL (https://opensource.google/documentation/reference/thirdparty...).
Re:Redis is open source again on Thursday May 01, 2025 @02:06PM (#43861247)
The tl;dr is it's just a lockless hashmap attached to a TCP server with a log. Simple Get/Set operations are highly optimized, so with high batching they are able to efficiently fetch a lot of data efficiently. The architectures scales very well when you add threads and data access that is uniform.

It struggles a bit on certain types of workloads like hot keys, think heavy hitting a single sorted set. It's a cool architecture.

Re:Redis is open source again on Thursday May 01, 2025 @01:51PM (#43861050)
> So, you are practically saying you were using, at Amazon, all the BSD code we provided, provide an important part of the code to us? You see how broken such model was? At least stop defending it.

I'm not defending it, I'm trying to fix it. I want Amazon to contribute back. That's what I spend most of my time doing, but I can't just sit in a meeting and tell people we should give away code. It takes time to convince people that we should collaborate on the core and just compete on what we want to differentiate on. It takes time to convince people that building open-source in a vendor neutral space makes software that is better for everyone.

I hope that makes sense.

Re:Redis is open source again on Thursday May 01, 2025 @12:57PM (#43860317)
My guess is they are making it up. AWS has no public information, but there are some high profile customers that have migrated https://aws.amazon.com/elasticache/customers/.
Re:Redis is open source again on Thursday May 01, 2025 @12:56PM (#43860299)
Do you have data to back up your claims? I see a lot of customer claims for Valkey here, https://aws.amazon.com/elasticache/customers/. Neither of the AWS or GCP offerings are in preview.
Re:Redis is open source again on Thursday May 01, 2025 @12:53PM (#43860273)
The Valkey implementation of multi-threading is fundamentally different than what existed in Redis. The history dates back to work done in ElastiCache that was released as "Enhanced IO", https://aws.amazon.com/about-aws/whats-new/2019/03/amazon-el.... The version released in Redis could only do about 350k RPS because of poor memory locality of operations, the inability to do command processing while handling I/O, and the inability to offload much of the TCP read path. The new version in Valkey can achieve 1.2M RPS.

"They made certain improvements later", should be "we threw away the old implementation and built a better one."

Re:Redis is open source again on Thursday May 01, 2025 @12:41PM (#43860105)
It's not just a fork, there have been two releases on Valkey that improved performance and memory efficiency. There is a lie that Redis likes to spread that only their own employees were working on the core engine at the time of the fork, but most of the engineers on Valkey came directly from having worked on Redis OSS. A recent example is we modernized the hash table a bit: https://valkey.io/blog/new-hash-table/.
Re:Redis is open source again on Thursday May 01, 2025 @12:28PM (#43859906)
Yeah, there has been a lot of stuff like performance [1] and efficiency improvements [2]. A lot of the contributors, that didn't work for Redis labs but worked on Redis OSS before the fork, moved to Valkey and they continued to contribute.

[1] https://valkey.io/blog/unlock-one-million-rps-part2/ [2] https://valkey.io/blog/new-hash-table/

Re:From where I left on Wednesday December 11, 2024 @05:59PM (#42394004)
Everything we do is open-source, so you're free to take it and incorporate it back into Redis. (Although I'm more into rewriting the data structures to more efficient on modern CPU hardware). Keep some comments out in the open like your discussion about vector sets to keep the conversation going. For the record, I really don't like the vector set idea, but I'm not one to dish out hot takes on hacker news.
Re:From where I left on Wednesday December 11, 2024 @05:53PM (#42393946)
As one of those 12 other people, number of commits is not a good metric in this context. When you have a single maintainer, like antirez was for a long time, he could commit 10+ commits for a single small feature but I needed to get someone else to approve my commit before merging.
Re:From where I left on Tuesday December 10, 2024 @03:28PM (#42381081)
I know this doesn't mean much, but I spent a lot of time outside of work helping to maintain the Redis codebase. I attended our meetings and responded to issues on vacation because I cared about the community, it was more than just a paycheck for me. I don't regret doing any of that.
Re:From where I left on Tuesday December 10, 2024 @01:49PM (#42380006)
Valkey maintainer here. ¯\_(ツ)_/¯

I worked with antirez a bit before he left the project in 2020, and I still look fondly back on that time since he was a wonderful person and he helped me learn a lot. I wish he had considered coming to work with Valkey instead of Redis, but maybe we'll find some some way to work together that benefits both communities.

The only public record I've seen him talking about it was in https://github.com/valkey-io/valkey/issues/544, where he mentioned having sold the copyright.
Re:The Fastest Redis Ever on Thursday November 21, 2024 @01:50PM (#42207357)
We're working on it, you can follow the progress here: https://github.com/valkey-io/valkey/issues/640.
Re:The Fastest Redis Ever on Thursday November 21, 2024 @01:48PM (#42207333)
It was always, and still is, a license issue. Redis stack had a proprietary license and now Redis has a proprietary license.
You might be able to get near 100% of Redis performance without a lot of tuning. Redis has a lot of overhead to make it a production ready system like performance counters, safety checking, and conditionals for features like replication/clustering/etc which slows it down.

Hell, you might even be able to use a concurrent hash map implementation and show multi-threaded performance much better than Redis :).

Re:Redis users considering alternatives after licensing move on Sunday September 22, 2024 @07:07AM (#41616238)
> Fair point. Was that foreseeable in 2009? A lot of the actions we take now are based on what's reasonably foreseeable in the future. I honestly don't recall.

The company now known as Redis didn't acquire the redis trademark until 2018, and didn't change their name to include redis until after that. That is probably the better timeframe to think about.

Re:Redis users considering alternatives after licensing move on Sunday September 22, 2024 @06:39AM (#41616121)
The other is the company that bought the trademark https://github.com/valkey-io/valkey/issues/54.
Re:Valkey 8.0.0 Is Out on Wednesday September 18, 2024 @04:05PM (#41584813)
* Google added support to Valkey: https://cloud.google.com/memorystore

* AWS says they are moving: https://aws.amazon.com/blogs/opensource/why-aws-supports-val...

* Aiven added Valkey: https://aiven.io/blog/introducing-aiven-for-valkey

* Instaclustr mentioned moving: https://www.instaclustr.com/blog/redis-to-valkey/

* Oracle indicated support: https://blogs.oracle.com/cloud-infrastructure/post/oracle-su...

Azure is the main one sticking with Redis: https://azure.microsoft.com/de-de/blog/redis-license-update-...

I might edit this if I remember some more.

Re:Valkey 8.0.0 Is Out on Wednesday September 18, 2024 @03:59PM (#41584753)
I'm from the project.

There shouldn't be any caveats of replacing Redis 7.2 and early to Valkey 8.0. I've talked with a few folks who have migrated and none so far have hit any issues, one even migrated from Redis 2.6.

Yeah, right now the valkey project is trying to keep full compatibility with the lass oss version of redis but improving where we can. There are plenty of concurrent hash maps attached to a tcp server that can out perform it on raw throughput, but they're usually missing a lot of features. One day valkey might be fully multithreaded, but not anytime soon. (Unless someone has a good idea for it)
Haha, we definitely used profiling tools. :) Perf is great and definitely the first tool to use. I know vtune has been used as well.

Older »