, 8 tweets, 2 min read
I just merged SSL support into Redis unstable. This feature has an interesting story that I want to tell you. It was kinda of a "process" to reach the right solution, or at least a solution that looks a lot better than the alternatives.
Many wanted SSL in the past, however the first very serious effort at providing a concrete pull request that implemented SSL in all the channels, including Replication, Redis Sentinel, Redis Cluster, was from AWS. The work of two smart folks there.
Thanks to this work, we understood that to implement SSL just as a "minimal code change" effort was not going to work. SSL is very different from normal sockets, and has different assumptions, certain things are asynchronous where sockets are synchronous, N bytes may become M.
After this experience and a revision of the PR, my friend Yossi at Redis Labs said he wanted to test a different approach. To create a new "connection" abstraction to abstract away normal sockets and SSL connections. But once he started working, he continued.
So after the prototype he went implementing also a mechanism to fix the worst problem with replication, the fact that SSL sockets could not easily change owner (different process). We (including the original PR authors at AWS) discussed it and found a solution we liked.
Yossi, with a big help from Oran, another Redis "veteran" from Redis Labs, implemented this remaining part. The result is an SSL patch that was actually a pleasure to read: I could never have imagined this happening.
SSL in Redis remains "opt in", you have to compile Redis with SSL support if you want it, so normal users will not have extra dependences. All in all I'm very happy about the process. Here is the link at the PR: github.com/antirez/redis/…
I want to say a big thank you to my colleagues at Redis Labs that wrote the patch, and to the folks at AWS that wrote the initial implementation, that was also very useful to understand how to imagine the v2 design and implement it.
Missing some Tweet in this thread? You can try to force a refresh.

Enjoying this thread?

Keep Current with ANTIREZ

Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!