{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/48b79d17cd8a911327cbd88c122b1efb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"48b79d17cd8a911327cbd88c122b1efb","url":"https://api.github.com/users/Seldaek","login":"Seldaek","id":183678},"milestone":null,"assignee":null,"labels":[{"name":"feature request","color":"4940bd","url":"https://api.github.com/repos/nrk/predis/labels/feature+request"},{"name":"ongoing investigation","color":"91FFE7","url":"https://api.github.com/repos/nrk/predis/labels/ongoing+investigation"},{"name":"v0.7.x","color":"444444","url":"https://api.github.com/repos/nrk/predis/labels/v0.7.x"}],"updated_at":"2011-11-02T00:17:39Z","comments":7,"closed_at":null,"url":"https://api.github.com/repos/nrk/predis/issues/21","body":"I'm wondering if it would be possible to include this inside Predis, a way to create a virtual connection maybe, that would contain many sub-connections (lazy-initialized, we don't want to connect to every slave for nothing) to slave(s) and the master server.\r\n\r\nThen whenever you read stuff, it connects to one (round robin or preference list, not sure) of the slaves. If you write data, it connects to the master, writes it, and then uses the master for subsequent reads - to avoid replication lag issues.\r\n\r\nI think it would be great if this could be handled at the library level.","html_url":"https://github.com/nrk/predis/issues/21","number":21,"title":"Master/Slave replication handling","id":613056,"created_at":"2011-02-20T16:18:54Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/c0c02f41e098247f8781fa0516d07dfd?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c0c02f41e098247f8781fa0516d07dfd","url":"https://api.github.com/users/cj","login":"cj","id":1819},"updated_at":"2011-11-02T00:17:39Z","url":"https://api.github.com/repos/nrk/predis/issues/comments/2598074","body":"Any update on this?","id":2598074,"created_at":"2011-11-02T00:17:39Z"}}