我想将后端和前端分开,并让它们使用 HTTP 消息进行通信。哪些技术可以帮助我实现这一目标?
我使用 Java 和 Wicket 工作了大约一年,我不喜欢直接将服务器和前端绑定在一起的想法(速度慢,不灵活)。 我想将后端和前端分开,让它们使用HTTP进行通信。所以我想带着这个想法开始一个新项目,我想知道什么工具可以帮助我(Backbone.js?)实现这一点?什么服务器语言可以流利地处理 http/json(Scala、grovvy、Rails、Node.js...)并且具有高性能。
I worked with Java and Wicket for about a year and i dont like the idea of tying server and front side directly (slow, not flexible).
I want to separate the backend and frontend, and make them comunicate using HTTP. So i want to start a new project with this idea on mind, and i wonder what tools could help me (Backbone.js?) accomplish that? and what server language can talk http/json fluently (Scala, grovvy, Rails, Node.js...) and have a high performance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Akka 加上 Camel 可以很好地提供你想要的东西。请参阅此处的文档 http://akka.io/docs/akka-modules /1.1/modules/camel.html
与 Java 相比,Scala 对于大多数事情来说都非常简洁。至于 JSON 处理,这里有一个 Scala-Json https://github.com/stevej/scala-json
以下是 akka-camel 文档的摘录。
Akka plus Camel could provide what you want very nicely. See the documentation here http://akka.io/docs/akka-modules/1.1/modules/camel.html
Scala is wonderfully terse for most things compared with Java. As for JSON handling there is a Scala-Json found here https://github.com/stevej/scala-json
The following is an excerpt from the akka-camel documentation.
Blue Eyes 就是针对这样的用例。
Blue Eyes is targeted at use cases like that.
您还可以使用 lift 及其其余支持,
然后使用任何 javascript 库。
Lift 还有一个优秀的 json 库。 提升 json
You can also use lift and its rest support
And then any javascript library.
Lift also has an excellent json library. lift json