简体   繁体   English

Web服务器到应用程序服务器的通信

[英]web server to application server communication

I Need to pass request from web server to application server. 我需要将请求从Web服务器传递到应用程序服务器。

web server and application server lies in a separate box. Web服务器和应用程序服务器位于单独的框中。

so what is the best technology to use in this scenario ? 那么在这种情况下使用的最佳技术是什么?

Web Server : I have html page, i need to fill it and submit. Web服务器:我有html页面,我需要填写并提交。

Application server : I need to receive that submitted request with all the form values and need to perform some action. 应用服务器:我需要接收所有表单值的提交请求,并需要执行一些操作。

in application layer , i am planning to do mapping to spring controller , is it fine ? 在应用程序层中,我打算映射到spring控制器,这样可以吗?

please explain the best possible solution. 请说明最佳解决方案。

Personal experience is use service-oriented-architecture for communications between servers. 个人经验是使用面向服务的体系结构在服务器之间进行通信。

So if u have App Server that wants to communicate with Web Server then create services (eg WSDL) that will manage that communication. 因此,如果您有要与Web服务器通信的App Server,则创建将管理该通信的服务(例如WSDL)。

This will enable data management, consistency, security and potentially transformation (if you need it). 这将实现数据管理,一致性,安全性和潜在的转换(如果需要)。

The biggest benefit we have seen is the ability to remove the server and replace it without any other changes to code and still have it work off the bat. 我们看到的最大好处是能够删除服务器并替换它,而无需对代码进行任何其他更改,并且仍然可以立即使用它。

Hope that helps 希望能有所帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM