I am thinking about creating an app using AngularJS, NodeJS , and SpringBoot WebServices.
我正在考虑使用AngularJS,NodeJS和SpringBoot WebServices创建应用程序。
Should I use NodeJS(Express) web services between AngularJS app and SpringBoot WebServices ? If yes or no, please tell why.
我应该在AngularJS应用程序和SpringBoot WebServices之间使用NodeJS(Express)Web服务吗?如果是或否,请说明原因。
Look forward to hearing your opinions !
期待听到您的意见!
AngularJS -> NodeJS(Express) -> SpringBoot WebServices -> DB
AngularJS - > NodeJS(Express) - > SpringBoot WebServices - > DB
1 个解决方案
#1
0
Note that Javascript
is NOT Java
.
请注意,Javascript不是Java。
It is rather strange to build your backend through two different kind of technologies. I would say you either go with just NodeJS (Javascript
) or only SpringBoot (Java
).
通过两种不同的技术构建后端是相当奇怪的。我会说你要么只使用NodeJS(Javascript),要么只使用SpringBoot(Java)。
Building a server using NodeJS's express
module as your middleware and then SpringBoot
as your web service simply doesn't make sense to me... Unless you are saying you are intending to build a NodeJS application to act as a proxy server to talk to another server that serves resources written in Java. Otherwise I don't see why you need to setup a NodeJS application and another Spring application on the same server to work together serving certain resources.
使用NodeJS的express模块作为中间件构建服务器,然后使用SpringBoot作为您的Web服务对我来说根本没有意义......除非您说您打算构建一个NodeJS应用程序作为代理服务器与另一个人交谈服务器,提供用Java编写的资源。否则,我不明白为什么你需要在同一台服务器上设置NodeJS应用程序和另一个Spring应用程序来共同服务某些资源。
Even if the combination make sense, using the 2 different technologies would mean that your server application will be running 2 different processes;
即使组合有意义,使用2种不同的技术也意味着您的服务器应用程序将运行2个不同的进程;
- a Java process for your
springboot
application - a Node process for your
nodeJS running express
springboot应用程序的Java进程
nodeJS运行express的Node进程
Since each process will have its own memory space, this means that for both processes to communicate they will have to use the TCP/IP networking stack (http request). Where this and many other complicated considerations could be avoided, if you just go fully with 1 of the techs.
由于每个进程都有自己的内存空间,这意味着对于两个进程进行通信,它们必须使用TCP / IP网络堆栈(http请求)。如果你完全与其中一个技术人员合作,可以避免这个和许多其他复杂的考虑因素。
#1
0
Note that Javascript
is NOT Java
.
请注意,Javascript不是Java。
It is rather strange to build your backend through two different kind of technologies. I would say you either go with just NodeJS (Javascript
) or only SpringBoot (Java
).
通过两种不同的技术构建后端是相当奇怪的。我会说你要么只使用NodeJS(Javascript),要么只使用SpringBoot(Java)。
Building a server using NodeJS's express
module as your middleware and then SpringBoot
as your web service simply doesn't make sense to me... Unless you are saying you are intending to build a NodeJS application to act as a proxy server to talk to another server that serves resources written in Java. Otherwise I don't see why you need to setup a NodeJS application and another Spring application on the same server to work together serving certain resources.
使用NodeJS的express模块作为中间件构建服务器,然后使用SpringBoot作为您的Web服务对我来说根本没有意义......除非您说您打算构建一个NodeJS应用程序作为代理服务器与另一个人交谈服务器,提供用Java编写的资源。否则,我不明白为什么你需要在同一台服务器上设置NodeJS应用程序和另一个Spring应用程序来共同服务某些资源。
Even if the combination make sense, using the 2 different technologies would mean that your server application will be running 2 different processes;
即使组合有意义,使用2种不同的技术也意味着您的服务器应用程序将运行2个不同的进程;
- a Java process for your
springboot
application - a Node process for your
nodeJS running express
springboot应用程序的Java进程
nodeJS运行express的Node进程
Since each process will have its own memory space, this means that for both processes to communicate they will have to use the TCP/IP networking stack (http request). Where this and many other complicated considerations could be avoided, if you just go fully with 1 of the techs.
由于每个进程都有自己的内存空间,这意味着对于两个进程进行通信,它们必须使用TCP / IP网络堆栈(http请求)。如果你完全与其中一个技术人员合作,可以避免这个和许多其他复杂的考虑因素。