Auto Complete with Redis (2010)
oldblog.antirez.com
Auto Complete with Redis (2010)
1–10 of 25 posts
Re: Auto Complete with Redis (2010)
#2I’m glad to learn of this, but note that it’s from 2010.
Re: Auto Complete with Redis (2010)
#3The good news, it more popular now than before... sigh.
https://hn.algolia.com/?query=Auto%20Complete%20with%20Redis...
Re: Auto Complete with Redis (2010)
#4I’m glad to learn of this, but note that it’s from 2010.
OP should put 2010 in the title.
Re: Auto Complete with Redis (2010)
#5Is this not a perfect use case for a trie? Can you make a trie in Redis?
Re: Auto Complete with Redis (2010)
#6Is 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)
#7Is this not a perfect use case for a trie? Can you make a trie in Redis?
I have not implemented a trie myself, but apparently the problem is they take up a lot of space: http://www.drdobbs.com/database/ternary-search-trees/1844105...
Re: Auto Complete with Redis (2010)
#8While 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)
#9Can we please put [2010] in the title?
Re: Auto Complete with Redis (2010)
#10While 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.