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.

Asynchronous Databases: DBSlayer and HTTP

26 pointsby igrigorikalmost 17 years ago

3 comments

ajrossalmost 17 years ago
FTA:<p><i>The problem is that dreaded dynamic request which cuts through the cache and requires a blocking database query, which has an unfortunate side effect of locking up the resources on your application server as well.</i><p>Come again? I'm not aware of any database technology where a synchronous request on one socket locks up the whole application server. What on earth are they talking about here? Sockets are cheap. Thread stacks are cheap. Just make the call and let the database sort out the locking and synchronization.<p>I don't even see how the linked library fixes the problem anyway. It just moves the blocking socket out of the web/app server and into a chunk of middleware that manages its own database connections.
评论 #273149 未加载
评论 #273143 未加载
评论 #273248 未加载
cosmo7almost 17 years ago
Fantastic. Instead of facing up to the crippling inadequacies of Ruby's single threaded implementation, we get a mad scientist solution.<p>I swear Ruby attracts bad thinking like a magnet.
评论 #273347 未加载
评论 #273327 未加载
mtwalmost 17 years ago
what's the use case for this? are you using it for aiderss?
评论 #273332 未加载