Redis Cluster-awareness


#1

Imported Google Group message. Original thread at: https://groups.google.com/forum/#!topic/tyk-community-support/a_BmWpk4X_g Import Date: 2016-01-19 21:08:12 +0000.
Sender:Ben King.
Date:Tuesday, 17 March 2015 17:57:08 UTC.

Hi Martin. (busy day with Tyk here!),

Just a quick question about Redis cluster-awareness.

I take it from the fact we only configure a single Redis endpoint that Tyk itself is not cluster-aware, and that we will need to implement a cluster-aware proxy like twemproxy ?

This feels less than ideal, as either I introduce the proxy as a single point of failure into the architecture, or I have to go out to an external router to handle twemproxy failover, which will add a few ms of unwanted latency.

Have I understood correctly, or is there a better architecture here?

Thanks again!

Ben


#2

Imported Google Group message.
Sender:Martin Buhr.
Date:Tuesday, 17 March 2015 18:51:52 UTC.

Hi Ben,

I’m afraid you are correct, the driver we use (redigo) doesn’t currently offer cluster awareness, so neither does Tyk, I believe it’s being worked on. We could switch the drivers out, but we’d need to find a good alternative that has the blessing of Redis :wink:

I think the external router may be the way to go…

Apologies, we’ll keep an eye on the feature and once it lands we’ll add support.

Thanks,
Martin

  • show quoted text -

#3

Imported Google Group message.
Sender:Ben King.
Date:Wednesday, 18 March 2015 15:40:04 UTC.

Thanks, Martin - we’ll keep looking into it. I’ll let you know what we come up with for an architecture!

  • show quoted text -