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.

Why Events Are A Bad Idea (for high-concurrency servers)

5 pointsby jpariseover 13 years ago

2 comments

prpatelover 13 years ago
"SEDA is a hybrid approach between events and threads, using events between stages and threads within them [17]. This approach is quite similar to the message-passing model discussed by Lauer and Needham [10], though Lauer and Needham advocate a single thread per stage in order to avoid synchronization within a stage. SEDA showed the value of keeping the server in its operating range, which it did by using explicit queues; we agree that the various queues for threads should be visible, as they enable better debugging and scheduling. In addition, the stage boundaries of SEDA provide a form of modularity that simplifies composition in the case of pipelines. When call/return patterns are used, such boundaries require stack ripping and are better implemented with threads using blocking calls."<p>The above is, IMO, the most important quote from the paper. Of course, this paper is from 2003, so I would like to think we have made some progress in understanding events vs/and/or threads, but I don't believe we really have.
simonwover 13 years ago
Previous discussions:<p><a href="http://news.ycombinator.com/item?id=1269090" rel="nofollow">http://news.ycombinator.com/item?id=1269090</a><p><a href="http://news.ycombinator.com/item?id=1355309" rel="nofollow">http://news.ycombinator.com/item?id=1355309</a><p><a href="http://news.ycombinator.com/item?id=2907415" rel="nofollow">http://news.ycombinator.com/item?id=2907415</a><p><a href="http://news.ycombinator.com/item?id=2910849" rel="nofollow">http://news.ycombinator.com/item?id=2910849</a>
评论 #3101598 未加载