All Projects → netkiller → mysql-zmq-plugin

netkiller / mysql-zmq-plugin

Licence: BSD-3-Clause License
ZeroMQ / ØMQ for MySQL

Programming Languages

c
50402 projects - #5 most used programming language
PHP
23972 projects - #3 most used programming language
CMake
9771 projects

Projects that are alternatives of or similar to mysql-zmq-plugin

distributedRL
A framework for easy prototyping of distributed reinforcement learning algorithms
Stars: ✭ 93 (+322.73%)
Mutual labels:  zeromq
jsonrpc2-zeromq-python
JSON-RPC 2.0 over ZeroMQ in Python
Stars: ✭ 52 (+136.36%)
Mutual labels:  zeromq
MQL5-JSON-API
Metaquotes MQL5 - JSON - API
Stars: ✭ 183 (+731.82%)
Mutual labels:  zeromq
notification-thing
Python-based implementation of Desktop Notifications Specification (notification-daemon)
Stars: ✭ 24 (+9.09%)
Mutual labels:  zeromq
pony-zmq
Pure Pony implementation of the ZeroMQ messaging library. 🐴 0️⃣ Ⓜ️ 🍀
Stars: ✭ 64 (+190.91%)
Mutual labels:  zeromq
Westworld-Style-Behavior-Pad-Interface
UPDATE 20210705: Adding ZeroMQ functions in to allow full-duplex comms with deep parts of the hosts' cognitive processes, and expose speech recognition background processes, visual processes, etc. ORIGINAL DESCRIPTION >>>This is a working version of the iconic Behavior Pad "Rose Graph" Interface that the Westworld Techs use to set Host Behaviora…
Stars: ✭ 25 (+13.64%)
Mutual labels:  zeromq
dynamic-queue
The dynamic queue
Stars: ✭ 17 (-22.73%)
Mutual labels:  zeromq
tormq
Push messages via websocket, based on Tornado and ZeroMQ
Stars: ✭ 37 (+68.18%)
Mutual labels:  zeromq
paStash
pastaʃ'ʃ = Spaghetti I/O Event Data Processing, Interpolation, Correlation and beyond 🍝
Stars: ✭ 89 (+304.55%)
Mutual labels:  zeromq
ZMQ.jl
Julia interface to ZMQ
Stars: ✭ 114 (+418.18%)
Mutual labels:  zeromq
napalm-logs
Cross-vendor normalisation for network syslog messages, following the OpenConfig and IETF YANG models
Stars: ✭ 131 (+495.45%)
Mutual labels:  zeromq
zlink
making conversation between languages
Stars: ✭ 23 (+4.55%)
Mutual labels:  zeromq
re-gent
A Distributed Clojure agent for running remote functions
Stars: ✭ 18 (-18.18%)
Mutual labels:  zeromq
distmq
Distributed Message Queue based on Raft
Stars: ✭ 32 (+45.45%)
Mutual labels:  zeromq
zmosq
MQTT/Mosquitto / ZeroMQ proxy
Stars: ✭ 22 (+0%)
Mutual labels:  zeromq
Bynar
Server remediation as a service
Stars: ✭ 53 (+140.91%)
Mutual labels:  zeromq
zmq
ZeroMQ based distributed patterns
Stars: ✭ 27 (+22.73%)
Mutual labels:  zeromq
spark-streaming-visualize
Simple demonstration of how to build a complex real time machine learning visualization tool.
Stars: ✭ 16 (-27.27%)
Mutual labels:  zeromq
OpenLogReplicator
Open Source Oracle database CDC written purely in C++. Reads transactions directly from database redo log files and streams in JSON or Protobuf format to: Kafka, RocketMQ, flat file, network stream (plain TCP/IP or ZeroMQ)
Stars: ✭ 112 (+409.09%)
Mutual labels:  zeromq
zerorpc-dotnet
A .NET implementation of ZeroRPC
Stars: ✭ 21 (-4.55%)
Mutual labels:  zeromq

mysql-zmq-plugin

Join the chat at https://gitter.im/netkiller/mysql-zmq-plugin

ZeroMQ / ØMQ for MySQL

http://zeromq.org/event:zeromq-for-mysql

Build

# yum install zeromq3-devel

# 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)

手工编译

gcc -O3  -g  -I/usr/include/mysql -I/usr/include  -fPIC -lm -lz -shared -o libzeromq.so zeromq.c
sudo mv libzeromq.so /usr/lib/mysql/plugin/

Bitdeli Badge

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].