Back to News
Advertisement
Advertisement

⚡ Community Insights

Discussion Sentiment

67% Positive

Analyzed from 286 words in the discussion.

Trending Topics

#redis#set#rust#real#server#production#sounds#reddit#lines#why

Discussion (9 Comments)Read Original on HackerNews

sudowood0about 4 hours ago
> 25,000 lines of Rust

I'd really like to understand why they didn't just also have a small container for this running. The only reasoning given in the article is "another container to run and manage" which Docker compose, TestContainers, etc will make trivial.

If a dev came to me and suggested we go this route I would need to seriously be convinced. They even explicitly call out this is only for local development meaning it's not like this was piggy-backing off of a secondary need for a Rust redis anyways. Insanity.

pramabout 4 hours ago
Yeah I agree completely, especially because Redis is one of the easiest things to set up. This feels like the wages of tokenmaxxing lol
luckystarrabout 3 hours ago
There is a difference between easy to set up and not having to set up anything. It's an improvement in operational UX.
jagged-chiselabout 2 hours ago
There's a difference between easy to set up and (creating 25,000 lines of code to maintain so that we're) not having to set up anything.

I'd call it a net loss.

drdexebtjl28 minutes ago
> Tests exercise a real Redis server rather than a mock, so the command behavior a test depends on is the behavior it will meet in production.

No, they don’t. They exercise an alternative in-process implementation that is supposed to behave like a real Redis, but will not.

> In production Encore provisions a real, managed Redis, because the embedded server is a development fixture and is not built to scale.

Ah! So you do see how it does not behave identically to a real Redis.

This sounds like a terrible idea. Now they’re stuck forever maintaining an alternative Redis implementation, and it isn’t even useful in production.

iwantitez31 minutes ago

  const cache = {}
Look I made a redis server
sshineabout 4 hours ago
Rewriting Redis in Rust sounds genuinely useful when you want to rely on it as a library.

Maintaining byte-for-byte parity with newer versions of Redis sounds like being in debt; why not rely on your fork instead?

khursabout 3 hours ago
If you look at what CloudFlare did - when they were unhappy with Nginx, they re-wrote their own proxy in Rust, one wonders if this company could instead have 'porting' reddit, started afresh?

Reddit is from 2009 so must have lots of technical debt over the years? and could have been an opportunity to start afresh? They may have have ended up with a better product!!

kralljaabout 3 hours ago
> Reddit

Redis?