Java Spring与Go Web服务器结合使用?

huangapple go评论85阅读模式
英文:

Java spring combined with a Go web server?

问题

我正在考虑使用Go作为我的Web服务器:

https://golang.org/doc/articles/wiki/

实际上,我本来打算使用Spring:

https://spring.io/

因为它提供了许多用于Web服务器的模块,如安全性、数据等。

在处理流量/请求方面,使用Go作为Web服务器,并在后端/MVC的实际构建中使用Spring,这样做有意义吗?

还是通常需要在Go和Spring之间做出选择?

英文:

I am looking at using Go for my web server:

https://golang.org/doc/articles/wiki/

I was actually going for:

https://spring.io/

since it comes with tons of modules for a web server, like security, data, etc.

Would it make sense to use Go as the Web Server for handling traffic/request and have Spring behind for the actual building of the back-end/MVC?

Or would you typically needs to make a decision between either Go or Spring?

答案1

得分: 2

使用Go作为处理流量/请求的Web服务器,并在后端/ MVC的实际构建中使用Spring,这样做有意义吗?

不,我认为不是这样。最好使用nginx,并在其后面使用带有Spring应用程序的Tomcat服务器。

还是说通常需要在Go和Spring之间做出决策?

是的,根据当前任务选择更好的选项。您可以将Spring用于整个Web应用程序,将Go用于某些部分等等。

英文:

> Would it make sense to use Go as the Web Server for handling traffic/request and have Spring behind for the actual building of the back-end/MVC?

No, I don't think so. It's better to take nginx and have Tomcat server with Spring application behind it.

> Or would you typically needs to make a decision between either Go or Spring?

Yes, choose what's better for your current task. You can use Spring for the entire web application, Go for some parts, etc.

huangapple
  • 本文由 发表于 2017年6月10日 16:50:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/44471389.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定