English 中文(简体)
Node.js诉Twisted的使用案例是什么?
原标题:What are the use cases of Node.js vs Twisted?

假设一个开发商小组在服务器方面对Javascript书写同样感到欣慰,因为它们是Adhur & Twisted,当时Node.js比Twisted(反之亦然)更合适?

最佳回答

蒸气更成熟——它持续了很长时间,并且有这么多的lls子和告示,使你的头部变得精良(执行狂热协议、将反应堆与各种其他事件循环相结合等等)。

Node.js据说较快(我没有衡量过自己),或许更简单地使用(如果你不需要任何额外的信条或告示),正是因为这些外壳在那里(象“旋风”式”——我从未衡量过相对业绩)。

因此,如果我需要任何额外的特征,或者希望通过使用更成熟的一揽子方案,在更坚实的基础上感觉到,我就绝对使用过Twisted。 如果这些考虑因素不适用,但最高业绩是该项目的关键目标,那么我就在Twisted, Node.js, and上写了一个简单的基准(但代表至少一个或两个关键的业绩情况,用于我的实际项目)。 “旋风”式,在我决定整体前进道路之前进行许多仔细的测量。 用于“灰尘”的“外向特征”(第三方延伸和标准图书馆)也非常丰富,如果项目需要这种额外内容,可能是一个关键因素。

最后,如果这些问题中没有一个涉及具体适用情况,发展小组就三个候选人(Twisted, Node.js,“旋风”)的相对简单性和熟悉性进行表决,其中任何候选人都可能只是罚款,而且无论小组中大多数成员最舒适,他们都会被挑选!

问题回答

截至2012年,Node.js已证明是一个快速、可衡量、成熟和广泛使用的平台。 瑞安·达尔,Node.js的创建者引述:

These days, Node is being used by a large number of startups and established companies around the world, from Voxer and Uber to Walmart and Microsoft. It’s safe to say that billions of requests are passing through Node every day. As more and more people come to the project, the available third-party modules and extensions grow and increase in quality. Although I was once reserved about recommending it for mission-critical applications, I now heartily recommend Node for even the most demanding server systems.

更正式地说,诺德的优势可以归为:

  • www.un.org/Depts/DGACM/index_spanish.htm 大家庭: 可以说,在这么短的时间内,没有其他平台获得这种社区呼吁,它在Gite Hub有数百个捐助者和数千个观察者,而且诸如雅虎(Manhattan项目)、e-bay、LinkedIn、Microsoft和Voxer等巨头正在使用。

  • <>strong>NPM: 尽管其核心相对较小,但诺德还是拥有可将其功能扩大到你们可能认为的任何东西的一揽子计划>。 其所有自动化,正在积极开发和推广,考虑到PyPI(pip)。

  • <>Scalability andspe: No的建筑和单一透镜的特性使高尺度和速度成为可能。 在发行0.8之后,其速度实际上更快(benchmarks),可通过使用Node的许多大型企业加以确认。 由于目前的战火,这一战争的核心也不断得到改善。

  • www.un.org/Depts/DGACM/index_spanish.htm Javacast: Node(JS)的核心语言更适合这种服务器的附带使用,特别是Mlambda功能、动态物体和轻松的JSON序列化,是JS的重要内容,在速度和可扩展性计算的情况下,这些内容确实非常合适。 (Python有所有这些,但在联合材料中确实更好和更有力。)

  • 部署: 由于其广泛使用,许多真正良好的地点为方便和强大的诺德部署提供了工具,包括:赫库库、乔伊特、云盖和更多。

因此, Node似乎更强大,未来越小,因此,如果对使用它没有任何限制(如现有的密码、服务器、团队能力),建议对任何旨在高速度和可扩展性的新合作网络项目。





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...