Is there a Python Memcached library with support for AWS ElastiCache's auto-discovery feature?

StackOverflow https://stackoverflow.com/questions/14924586

문제

Recently, AWS announced ElastiCache's auto-discovery feature, although they only officially released a client for Java. Does anyone know of a Python Memcached library with support for this feature?

도움이 되었습니까?

해결책

As far as I know, ElastiCache cluster is just a bunch of memcached servers, so you need to give your memcached client the list of all of your servers and have the client do the relevant load balancing.

For Python, you have a couple of options:

  • pylibmc - which is a wrapper around libmemcached - one of the best and fastest memcached clients there is

  • python-memcached - a native Python client - very basic, but easy to work with, install and use

They haven't provided a client yet in python to deal with the new auto-discovery feature unfortunately.

다른 팁

There is library for django: django-elasticache.

You can find more details in my answer on same question here.

I wrote a package, it can do elasticache auto discovery: https://github.com/yupeng820921/elasticache_pyclient

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top