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.

Serving configuration data at scale with high availability

10 pointsby rubikscubeabout 10 years ago

1 comment

latchabout 10 years ago
Easy to play armchair quarterback, but if each server is storing the complete list, why not just use a queue to push out the change?<p><pre><code> for { message = blockWaitingForMessage() if message.action == &quot;add&quot; { lock() blacklist[message.domain] = true unlock() } } </code></pre> On startup you&#x27;d need to bootstrap a server. Use a database as your source of truth, and wrap an internal-only api to fetch all domains.
评论 #9161568 未加载