[flag] I do believe we got a slideshow

59 views
Skip to first unread message

Itamar Haber

unread,
Apr 29, 2015, 1:00:34 PM4/29/15
to Cameron Peron, Vishakha Gupta, redi...@googlegroups.com, Tracey Workman
http://www.itbusinessedge.com/slideshows/five-key-takeaways-for-developing-with-redis.html

--

Itamar Haber | Chief Developers Advocate
Redis Watch Newsletter - Curator and Janitor
Redis Labs - Enterprise-Class Redis for Developers

Mobile: +1 (415) 688 2443
Mobile (IL): +972 (54) 567 9692
Email: ita...@redislabs.com
Skype: itamar.haber

Blog  |  Twitter  |  LinkedIn


Sam Fang

unread,
Apr 30, 2015, 3:53:14 AM4/30/15
to redi...@googlegroups.com, cam...@redislabs.com, tracey....@lewispr.com, vish...@redislabs.com
Hi,

In "Use SCAN, Never Use KEYS" description: "The SCAN command enables you to retrieve keys .... The KEYS command should only be used in production environments and with extreme caution, as it can ruin performance."

Did you actually want to say KEYS command should only be used in *non-production* enviornments?

Thanks,
Sam

Itamar Haber

unread,
Apr 30, 2015, 4:04:20 AM4/30/15
to redi...@googlegroups.com
Hi Sam and all,

First, let me apologize for sending out what should have been an internal memo to the entire Redis mailing list - isn't this thing being moderated anyway? ;)

As to your question Sam, I'd go further and say that unless you **really** need to use `KEYS`, don't - even on non-production environments. Why? (the evil) `KEYS` is a double-edged sword that has the potential for double jeopardy: a) it can keep your server busy for (relatively) a long time, thus potentially denying service from clients and b) depending on the pattern and the keyspace, it can quickly consume the response buffer and - in some cases - result in OOM.

So running `KEYS` in production is a really bad idea, but even running it in your development/testing/staging should be frowned upon - not only because of the above, but also because of the habit you'll be forming and unknowingly carrying subconsciously into production at the wrong time.

Cheers,
Itamar

Greg Andrews

unread,
Apr 30, 2015, 10:45:22 AM4/30/15
to redi...@googlegroups.com
Hi Itamar,

I was thinking of asking the same as Sam.  The phrase "The KEYS command should only be used in production environments" is the strongest part of the sentence.  It's the first statement, and the "should only" wording gives it the weight of authority.  However, the meaning that comes across is, "KEYS should be used in production".  The second half of the sentence, "and with extreme caution, as it can ruin performance", is much weaker and doesn't really modify the first statement to communicate that the KEYS command should be avoided, especially in production.  May I suggest you review the wording to see if it says what you want?

The slides are a very good presentation of the fundamentals for making good use of Redis.  Thanks for creating them.

  -Greg



--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.

Itamar Haber

unread,
Apr 30, 2015, 12:22:36 PM4/30/15
to redi...@googlegroups.com
Yip! I see the error now - slide 4. I'll shoot an email to the editor to have it fixed (at least the wording is much clearer in the original post). Thanks a bunch for hammering it in and for the great feedback :)

If no one objects too profusely, I think I will remove this self-shaming post from the mailing list :)

Josiah Carlson

unread,
May 2, 2015, 1:11:07 AM5/2/15
to redi...@googlegroups.com
I'm sorry Itamar, you can't delete something once it's on the internet. But I promise, you will remember this more than anyone else within the next month.

 - Josiah

Reply all
Reply to author
Forward
0 new messages