我正在绘制一组程序的体系 struct ,这些程序共享存储在数据库中的各种相互关联的对象.我希望其中一个程序充当服务,为这些对象上的操作提供更高级别的接口,而其他程序则通过该服务访问这些对象.
我目前的目标是用Python和Django框架作为实现该服务的技术.我很确定我知道如何在Linux中对Python程序进行后台监控.但是,系统应支持Windows是可选的规范项.我对Windows编程几乎没有经验,对Windows服务也没有任何经验.
我不一定要实现这一部分,但我需要一个粗略的 idea ,以便决定是否按照这些思路进行设计.
Edit: Thanks for all the answers so far, they are quite comprehensive. I would like to know one more thing: How is Windows aware of my service? Can I manage it with the native Windows utilities? What is the equivalent of putting a start/stop script in /etc/init.d?