dovzrfr0506 2010-10-15 09:54
浏览 90
已采纳

在同一台机器上进行通信的两个应用程序的最佳方式

I have an ASP.NET app running on a webserver. A third party is created another app in PHP which needs to send data to my app for processing.

Initially it was assumed that the PHP app would be deployed elsewhere so we agreed that the communication would occur over the internet via HTTP (over SSL). My app would simply use a generic handler (ashx) file to recieve the data and send confirmation back.

Now it seems that the PHP app might be deployed on the same machine as my app. I like the fact that using HTTP (as opposed to say direct database access), the PHP app needs to know nothing at all about how my app works. But using the public internet seems silly for communication between two apps on the same machine.

If the PHP app simply used a localhost address, would this ensure that all the data stays within the machine? Is there a better way to do this?

  • 写回答

4条回答 默认 最新

  • drzb7969753 2010-10-15 09:58
    关注

    If the PHP simply used a localhost address, would this ensure that all the data stays within the machine?

    Yes

    Is there a better way to do this?

    Makes sense to me. It's a common architectual choice, and it makes it easier should the two apps be deployed on separate machines again in future.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序