英文:
Java spring combined with a Go web server?
问题
我正在考虑使用Go作为我的Web服务器:
https://golang.org/doc/articles/wiki/
实际上,我本来打算使用Spring:
因为它提供了许多用于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:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论