TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Condor – A library for building scalable TCP servers in Erlang

65 点作者 s1n4超过 6 年前

3 条评论

toast0超过 6 年前
I&#x27;m not sure that a library is really the right way to do this. In my experience, socket handling is a key part of the application, adding a library layer will make it harder to deal with the inevitable cases where the abstraction doesn&#x27;t fit. An example of a simple, scalable TCP server (and a scalable client, so you can demonstrate the server), would be a better approach -- building a new server starting with the example would allow someone to make the changes they need when they need to. Avoiding unnecessary layers is a hallmark requirement of scalability, but this approach is adding one. One thing I can definitely see where the approach shown would be limiting is that often TCP servers would like to have a connection idle timeout, but if your peer is sending you a large application packet over a very slow connection, you wouldn&#x27;t want to consider it idle because you hadn&#x27;t received a complete application packet in some time -- having received partial packets should be enough to show that the connection continues to be alive (subject to concerns about slowloris).<p>Also, it&#x27;s frankly hard to judge your claim of scalability, when you haven&#x27;t provided any data. How many millions of connections can this handle (on which particular hardware), how many thousands of connections per second, how many gigabits of data transfer can you push, how many connections can you gracefully close per second, etc. What erlang settings did you have to tweak, what operating system limits did you have to tweak, etc to get there.
linkmotif超过 6 年前
There’s no Netty type thing for Erlang? Netty is so nice to have on the JVM, I don’t know much about TCP and it lets me be dangerous, asynchronously.
评论 #18005450 未加载
knv超过 6 年前
How Condor differentiate itself from Ranch?
评论 #17993596 未加载