How to chat with Azure webjob before Azure webapp?

I am launching an Azure website next to an Azure webapp. The work is done periodically, and the result of the work is needed in webapp. How do I get the result?

I tried with WCF netNamedPipeBinding, but since there are no startup tasks for Azure webapps, I cannot add the net.pipe binding to the IIS website and I cannot enable the net.pipe protocol.

Now I work with basicHttpBinding, but this binding extends to the entire Internet, which I absolutely do not want. I just want the same machine running between the machine and the local connection between webjob and webapp.

CORRECTION . I thought I was working on Azure, but that is not the case. When starting on Azure, I get an error message from webjob: An attempt was made to access a socket in a way forbidden by its access permissions 127.0.0.1:80(using basicHttpBinding). Webapp probably has an internal port number that I don't know.

+4
source share
3 answers

You have several options:

  • Use file system to send messages
  • Use Azure storage queues to transfer messages between two
  • Use the Azure Service Bus Queue for messaging
  • Use any shared storage (database, Azure storage, etc.) for messaging

, , , , (- -) .

+2

WebJob -. .

WebJob -, , .

: localhost Azure ( WebJobs) , 80/443.

+2

azure, (-) .

0
source

All Articles