lsbardel / python-stdnet

Object-data mapper and advanced query manager for non relational databases
http://lsbardel.github.com/python-stdnet/
BSD 3-Clause "New" or "Revised" License
120 stars 20 forks source link

Different database connection for reads and writes? #71

Closed AlecTaylor closed 10 years ago

AlecTaylor commented 10 years ago

In order to explicitly leverage replicas, I have designated some of my servers to be used externally for writes only, and others to be used externally for reads only.

I am using StrictRedis directly (redis-py).

Can Python-stdnet be used within my setup, without breaking explicit read/write specification?

AlecTaylor commented 10 years ago

Missed it in your documentation:

read_backend – Optional stdnet.BackendDataServer for read operations. This is useful when the server has a master/slave configuration, where the master accept write and read operations and the slave read only operations.