简体   繁体   中英

Application requesting and Getting info from second application

Hi I'm busy with a project in C# that can provide the user with info.
The idea is that there is 2 application. 1. The user UI that has no connection to the DB.(WPF) 2. Has no User interface but has a connection to the DB and to a local cache.(C#)

So Application 1 communicates to application 2 only.
application 2 communicates with local cache and DB on the command of application 1

Any idea on how to set up the communication between both application?

Application 1 is called client, and App2 can be called a service. There are many implementations, eg

1. App2 is a publisher
2. App1 is a subscriber

You can use some queues (eg RabbitMQ ) as the bridge/broker. App2 writes some messages to a queue, and app1 subscribes to the message queue, whenever a message is published by App2, app1 will be notified and custom message handling can be fired.

在此处输入图片说明

在此处输入图片说明

Some tutorials to get started quickly:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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