MySQL ZeroMQ PluginMySQL 插件
ZeroMQ / ØMQ for MySQL
Build
cmake . make && make install
Install & uninstall
drop function zmq_client; drop function zmq_publish; create function zmq_client returns string soname 'libzeromq.so'; create function zmq_publish returns string soname 'libzeromq.so'; mysql> SELECT * FROM `mysql`.`func` LIMIT 1000; +--------------+-----+--------------+----------+ | name | ret | dl | type | +--------------+-----+--------------+----------+ | image_crc32 | 0 | image.so | function | | image_rename | 0 | image.so | function | | image_move | 0 | image.so | function | | image_remove | 0 | image.so | function | | image_check | 0 | image.so | function | | fifo_write | 0 | fifo.so | function | | fifo_read | 0 | fifo.so | function | | fifo_remove | 0 | fifo.so | function | | fifo_create | 0 | fifo.so | function | | zmq_publish | 0 | libzeromq.so | function | | zmq_client | 0 | libzeromq.so | function | +--------------+-----+--------------+----------+ 11 rows in set (0.00 sec)
Test
编译zeromq server 测试程序
cd test cmake . make ./server
在mysql终端中运行测试SQL
mysql> select zmq_client('tcp://localhost:5555','Hello world!'); +---------------------------------------------------+ | zmq_client('tcp://localhost:5555','Hello world!') | +---------------------------------------------------+ | Hello world! OK | +---------------------------------------------------+ 1 row in set (0.01 sec) mysql> select zmq_client('tcp://localhost:5555',mobile) from demo; +-------------------------------------------+ | zmq_client('tcp://localhost:5555',mobile) | +-------------------------------------------+ | 13113668891 OK | | 13113668892 OK | | 13113668893 OK | | 13322993040 OK | | 13588997745 OK | +-------------------------------------------+ 5 rows in set (0.03 sec)
评论
ZeroMQ实例程序
ZeroMQ(以下简称ZMQ)是一个简单好用的传输层,像框架一样的一个socketlibrary,他使得Socket编程更加简单、简洁和性能更高。是一个消息处理队列库,可在多个线程、内核和主机盒之间弹
ZeroMQ实例程序
0
jcabi-mysql-maven-pluginMaven 的 MySQL 插件
jcabi-mysql-maven-plugin是一个Maven的MySQL插件,该插件可在pre-integration-test阶段启动一个本地的MySQL服务,并在post-integratio
jcabi-mysql-maven-pluginMaven 的 MySQL 插件
0
ZeroMQ轻量级消息内核
0MQ(ZeroMQ)是一个轻量级消息内核。它可用于C、C++、Python、.NET/Mono、Fortran和Java语言。它运行在AIX,FreeBSD的,基于HP-UX,Linux和MacOS
ZeroMQ轻量级消息内核
0
actiontech zabbix mysql monitorMySQL 监控插件
perconamonitoringpluginszabbix的Go语言版本,是由爱可生公司开源的MySQL监控插件。Zabbix是一套非常优秀的开源监控系统,其强大灵活的功能,在国内拥有众多的用户群。
actiontech zabbix mysql monitorMySQL 监控插件
0
aiozmq集成 ZeroMQ 的 Python 扩展
aiozmq 是 Asyncio (pep 3156) 与 ZeroMQ 的集成。高级 客户端-服务
aiozmq集成 ZeroMQ 的 Python 扩展
0