English 中文(简体)
Scala中度量选择有何差别?
原标题:What are the differences between Scala middleware choices?

<><><><><>>><>>>><>>>不难解决该问题,但如果有人与<>相同,则Im试图予以保留。

我正在寻找一个好的解决办法,在Schala开发一个将在移动装置和现有网络服务之间坐机的服务。

现有可行的备选办法清单如下:

可能有更多的选择。 如何决定谁使用? 良好的Schala中级知识选择的特性是什么(用 p;-)。 一方面,我要谈谈Aka,因为它是Sfe Scala角的一部分,但另一方面,如Finagle公司有一套丰富的图书馆,很容易.。 Spray看起来是冰,而且很简单。

任何建议、见解或经验都将受到高度赞赏。 我确信,那里的人必须具备一些经验,以分享思想。

<><>UPDATE:

我热爱重新讨论这一问题。 对这一问题的妥善回答将有助于新的电梯避免相关陷阱。

<><>>>

These are my own experiences since asking this question:

Finagle - I used Finagle for a project and it s rock solid.

Spray - In my latest project I m using Spray and I m extremely happy. The latest releases are built on Akka 2 and you can run it directly with the Spray-can library which removes the need for a web server. Spray is a set of libraries, rather than a framework and is very modular. The Learn about Spray: REST on Akka video gives a great overview, and this blog at Cakesolutions shows a really nice development approach and architecture.

<><>>>>

人口流动快。 如果你不停,一劳永逸,你会错失。 - Ferris Bueller>。

These days the choice has become simpler. In my humble opinion Spray has won the battle. It is being integrated into Akka to become the next Akka HTTP. I have been using Spray now on multiple projects and can honestly say that it s fantastic and best supported software I have ever encountered.

这没有回答最初的问题,但至少在一定程度上说明了为什么Spray似乎在大多数情况下是最佳选择。 它极其灵活、没有锁定和非常稳定。 图书馆既有客户图书馆,也有服务器边图书馆,也有巨大的测试机。 此外,还对这些统计进行了研究,以了解业绩:Web Frameworks

问题回答

很久以前,我就开始喷洒,并尝试了在那里外出的一切。 虽然Schala、喷洒、ka子、形形形形形形色色的az子,一旦你开始挖掘和真正学习你应如何使用这些技术,他们就会感觉到,我立即看到,特别是对于现在从事的Im工作的那种工作,会带来好处。

我认为,从个人角度来说,没有任何东西可以用来喷洒服务器、休息台、网站客户以及你想要的任何其他东西。 我对喷洒的爱心是,他们是在心中建造的。 在我开始使用该项目时,它可能是一个真正的早期项目,但建筑具有意义。 这些名人知道他们在利用行为者模式的好处方面所做的工作,而且没有任何阻碍行动。

虽然行为者可能会被利用,但我与他们一样。 它们使我的系统变得非常可衡量和廉价,因为我不需要像过去那样做坏的硬件。 此外,喷洒具有这种喷洒路线的DSL,因此,只要你遵守规则,就更简单一些。 这当然意味着不会去掉,而是把客户从皮条或行为者那里提出要求,因为你将回到阻挡模式。

So far I am very happy with spray, typesafe, and akka. Their models just naturally lend themselves to building very resilient systems that come back up on their own if anything should happen and you take a fail-fast approach. The one beef that I have with spray (and it s not spray s fault) is the damn IDE support for the routing DSL. I absolutely despise Eclipse and have always been an IDEA user. When I started using the Scala plugin, everything seemed ok. Then my routing dsl naturally evolved into way bigger beasts. Something about the way IDEA parses that code makes it shit its pants anytime it encounters anything with spray-routing or shapeless. It s to the point where it s unusable (I type 2-3 letters and have to wait 5 minutes to regain control).

因此,对于任何喷洒路线或重形码,我用烟雾、烟雾和血管发射 em。 现在,如果我只能得到一个具有香蕉质量的Casses图书馆,并使用一个更非锁定的建筑。

Here you can find a great list of scala resources with a brief description of all the alternatives you listed.

根据我自己的经验,我使用Schalatra,对于像里图和打电话网络服务这样的东西来说,它非常简单、有效。





相关问题
How to flatten a List of different types in Scala?

I have 4 elements:List[List[Object]] (Objects are different in each element) that I want to zip so that I can have a List[List[obj1],List[obj2],List[obj3],List[obj4]] I tried to zip them and I ...

To use or not to use Scala for new Java projects? [closed]

I m impressed with Twitter and investigating to use Scala for a new large scale web project with Hibernate and Wicket. What do you think about Scala, and should I use it instead of Java? EDIT: And, ...

Why does Scala create a ~/tmp directory when I run a script?

When I execute a Scala script from the command line, a directory named "tmp" is created in my home directory. It is always empty, so I simply deleted it without any apparent problem. Of course, when I ...

Include jar file in Scala interpreter

Is it possible to include a jar file run running the Scala interpreter? My code is working when I compile from scalac: scalac script.scala -classpath *.jar But I would like to be able to include a ...

Scala and tail recursion

There are various answers on Stack Overflow which explain the conditions under which tail recursion is possible in Scala. I understand the limitations and how and where I can take advantage of tail ...

热门标签