WCF Duplex - Push different notifications to each client?

后端 未结 2 723
谎友^
谎友^ 2020-12-19 12:44

I am designing a 2 WCF services that all my clients will connect to. One of these services will be a notifications service.

I would like each client to connect to th

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-19 13:34

    What I meant to say is the following.

    Create a wcf service that will be called by each client for subscribing to filters once. The wcf service itself will simply add data to the database and include information such as client name and filters information in the data store. Then your worker thread which will be in a window service which will simply poll your db for data and when data is available it will read from the subscription tables. It will then push the data to the queue of each clients which could be a shared queue server like rabbitmq.

    On the client side assuming it is a window based app, it will simply poll the rabbitmq queue server for it data by looking for it in the queue with the name of itself(client1, e.t.c).

提交回复
热议问题