openresty / lua-resty-memcached

Lua memcached client driver for the ngx_lua based on the cosocket API
210 stars 63 forks source link

Clusters / Multiple Memcache Hosts #38

Closed shortcord closed 2 years ago

shortcord commented 2 years ago

We are planing on using OpenResty in production for dynamic configuration of caching. Currently we have a POC using MySQL but I would like to cache the query results in Memcached to prevent stress on the MySQL host.

This whole setup will be in AWS so naturally we are using AWS's ElastiCache service. AWS provisions multiple hosts that should be all used in a cluster configuration.

I can't seem to find any information regarding to connecting to a cluster of Memcache hosts, is this something supported or should we just pick one of the hosts and roll with it.

Also sorry for #37, fat fingered the enter key and that created the empty issue.

zhuizhuhaomeng commented 2 years ago

do not support memcached cluster by default. you need to implement it as your business needed.

shortcord commented 2 years ago

Alright, thanks.