开发者

Improvement on flag files and data files?

开发者 https://www.devze.com 2023-02-18 10:58 出处:网络
I have a existing project (non-web), with multiple components/programs running on different machines. The programs use flag files e.g. \"xxx.request\" \"xxx.done\" to signal each other. And also data

I have a existing project (non-web), with multiple components/programs running on different machines. The programs use flag files e.g. "xxx.request" "xxx.done" to signal each other. And also data files are created and put in a particular directory and passed to another program to process. The data files and flag files are all in a shared stor开发者_运维技巧age.

The pros of this approach is that it is really easy to implement. But I feel that this is not good in the long run.

What other alternatives do I have, so that I can make substantial improvement.


I suggest you use a messaging system for sending messages. Files don't make a good reliable, secure, mangageable, or fast protocol for sending data between applications. In Java I would use JMS which has many implementations which have C# and C++ clients.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号