Polling in the cloud

眉间皱痕 提交于 2019-12-24 19:55:49

问题


I am creating an app, which will poll a rabbitmq queue for messages. I have three choices:

  1. Console app, which listens for new messages

  2. Windows service, which listens for new messages

  3. Web API, which listens for new messages

In normal circumstances I would choose a windows service because it is a long running process and a TCP connection is available to the RabbitMQ server. However, how would this work if we decided to move the application to the cloud in future? The way that I understand it is that I can create a web job for a console app, however this is not possible for a windows service.

Q1) As I am thinking about the cloud, then should I be using a web api for this?

Q2) Is a console app more suitable than a windows service in the cloud?

I am specifically asking if the options I have chosen are available in the cloud.

来源:https://stackoverflow.com/questions/55039226/polling-in-the-cloud

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!