Live data from Hacker News

Redis site now implements interactive examples with embedded live Redis cli

redis.io

1–9 of 9 posts

Re: Redis site now implements interactive examples with embedded live Redis cli

#2
Thanks to Pieter Noordhuis (that started from the work of Alex McHale in try.redis-db.com) for implementing this awesome thing.

I hope other sites will follow this approach of a "live" documentation where the user can type commands. This makes a lot of sense for dynamic programming languages as well.

Re: Redis site now implements interactive examples with embedded live Redis cli

#3
post #2

Thanks to Pieter Noordhuis (that started from the work of Alex McHale in try.redis-db.com) for implementing this awesome thing. I hope other sites will follow this approach of a "live" documentation where the user can type commands. This makes a lot of sense for dynamic programming languages as well.

amazing! thanks for that. curious, how is this implemented on the server? seems like each command is posted to /session/ url.

Re: Redis site now implements interactive examples with embedded live Redis cli

#4
post #2

Thanks to Pieter Noordhuis (that started from the work of Alex McHale in try.redis-db.com) for implementing this awesome thing. I hope other sites will follow this approach of a "live" documentation where the user can type commands. This makes a lot of sense for dynamic programming languages as well.

It's a bit more difficult with programming languages where you can thrash the server its hosted on with simple commands.

Redis on the otherhand is designed for exactly this kind of insane throughput.

On another note, I'm loving that you are putting the time complexity of the commands right on the page.

Re: Redis site now implements interactive examples with embedded live Redis cli

#5
post #2

Thanks to Pieter Noordhuis (that started from the work of Alex McHale in try.redis-db.com) for implementing this awesome thing. I hope other sites will follow this approach of a "live" documentation where the user can type commands. This makes a lot of sense for dynamic programming languages as well.

amazing! thanks for that. curious, how is this implemented on the server? seems like each command is posted to /session/ url.

All keys are namespaced to a unique session identifier, so parallel sessions are isolated. You can check out the code for the interactive stuff here: https://github.com/antirez/redis-io/tree/master/lib/interact...