TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

SWAPDB Redis command

121 pointsby openmazeover 8 years ago

8 comments

koolbaover 8 years ago
Looks cool. What would be the prototypical use cases for something like this?<p>I&#x27;d imagine something like this would already have been possible with a proxy (i.e. hot swap upstream without closing client connections).<p>Also, any idea how this handles clients that execute scripts via EVALSHA? If a client already loaded the script, wouldn&#x27;t this break that expectation or does the client contract not allow caching that?
评论 #12708552 未加载
评论 #12711521 未加载
评论 #12708779 未加载
Beltirasover 8 years ago
I&#x27;m blown away by how small the implementation is.
评论 #12708710 未加载
jtmarmonover 8 years ago
Very interesting feature. Question: is it not standard protocol to add a test with a new feature like this?
评论 #12709001 未加载
pellej_sover 8 years ago
Amazing feature. Amazing product. Thanks antirez.
ixtliover 8 years ago
I thought that, with the introduction of redis cluster in 3.x, they were moving away from multiple logical &quot;dbs&quot; that had indicies. Are they going to continue to multiple databases in 4?
评论 #12711342 未加载
neovintageover 8 years ago
Interesting. I can think of a number of scenarios where this makes sense if you&#x27;re using Redis for caching and you don&#x27;t have a proxy in your architecture.<p>Does redis cluster only support one database? If that&#x27;s still the case, then this is probably not available for the larger redis deployments.
评论 #12708862 未加载
cbsmithover 8 years ago
Couldn&#x27;t one achieve the same thing simply by prefixing your DB keys with a blue&#x2F;green bit and just atomically swap out which prefix should be used for reads?
ing33kover 8 years ago
Nice !<p>would have saved us some time if this feature was there in an earlier release .