Live data from Hacker News

Auto Complete with Redis (2010)

oldblog.antirez.com

1–10 of 25 posts

Re: Auto Complete with Redis (2010)

#6
post #5

Is this not a perfect use case for a trie? Can you make a trie in Redis?

I think so, specifically a ternary search tree. While you can implement one on top of redis, I’m pretty sure it would be significantly slower than an in memory TST.

Re: Auto Complete with Redis (2010)

#8
While i deeply love redis and have used this exact article in the past to build an autocomplete— I’d really not recommend it to anyone. Using something like elastic search provides much better and robust results.

Yes it’s more work to setup but the maintenance and tweaking will be waaaay easier and more timely in the long run.

Re: Auto Complete with Redis (2010)

#10

While i deeply love redis and have used this exact article in the past to build an autocomplete— I’d really not recommend it to anyone. Using something like elastic search provides much better and robust results. Yes it’s more work to setup but the maintenance and tweaking will be waaaay easier and more timely in the long run.

IDK, having survived many ... MANY ES outages, I’d take REDIS in a heartbeat if it gives me the functionality I need.
Post reply on HN