用python3编写的xbus broker
xbus.broker的Python项目详细描述
xbus.broker
broker是xbus项目的核心部分。
- 相关项目:
- xbus.file_发射器https://bitbucket.org/xcg/xbus.file_emitter>;
- xbus.monitor<;https://bitbucket.org/xcg/xbus.monitor>;
- xbus_监视器_js<;https://bitbucket.org/xcg/xbus_monitor_js>;
- xbus.clearinghouse<;https://bitbucket.org/xcg/xbus.clearinghouse>;
xbus
Xbus是一种企业服务总线。因此,它旨在帮助IT部门 通过提供 使IT系统城市化。
-
城市化的目标是:
- 高相干性
- 低耦合
- 有关xbus的更多信息:
- 文档:<;http://xbusbroker.readthedocs.org/>;
- 网站:<;https://xbus.io/>;
安装
获取要求:python3 dev、0mq、python3和redis:
$ sudo apt-get install libzmq3-dev python3 python3-dev redis-server virtualenvwrapper
使用python 3设置virtualenv:
$ mkvirtualenv -p /usr/bin/python3 xbus
安装xbus.broker包:
$ pip install xbus.broker
配置
创建配置文件(例如用于0.1.3版本):
$ wget https://bitbucket.org/xcg/xbus.broker/raw/0.1.3/etc/config.ini-example -O config.ini $ wget https://bitbucket.org/xcg/xbus.broker/raw/0.1.3/etc/logging.ini-example -O logging.ini
根据里面写的注释编辑文件。 注意:确保日志文件的路径是绝对路径。
初始化数据库
运行“安装xbusbroker”程序:
$ setup_xbusbroker -c config.ini
< H3>迁移现有数据库
使用“migrate_xbus_broker”项目。指示灯亮起 <;https://bitbucket.org/xcg/migrate_xbus_broker/>;。
运行
运行“开始xbusbroker”程序:
$ start_xbusbroker -c config.ini
贡献者
按提交日期排序:
- Florent Aide, <florent.aide@xcg-consulting.fr>
- Jérémie Gavrel, <jeremie.gavrel@xcg-consulting.fr>
- Houzéfa Abbasbhay, <houzefa.abba@xcg-consulting.fr>
- Alexandre Brun, <alexandre.brun@xcg-consulting.fr>
- Vincent Hatakeyama, <vincent.hatakeyama@xcg-consulting.fr>
- Patrice Journoud, <patrice.journoud@xcg-consulting.fr>
更改日志
0.2.0(2016-06-27)
- Better message state tracking.
- Undelivered messages are re-sent when the recipient comes back.
- More logging.
- Documentation improvements.
- Upgrade step: Migrate the DB to version 1 using <https://bitbucket.org/xcg/migrate_xbus_broker/>.
0.1.5(2015-05-25)
- Update requirements.
0.1.4(2015-05-18)
- Update the setup script wrt permission changes.
- Define required package versions in setup.py and document why some are frozen.
0.1.3(2015-05-11)
- Improve the README and configuration file paths.
0.1.2初始版本(2015-05-11)
- Initial implementation of the Xbus broker in Python 3.