zeromq

php-zmq is not shown on phpinfo() page

南楼画角 提交于 2020-01-13 10:43:29
问题 I am using Wamp Server on Windows and I installed zmq library. When I write php --info on console, I see that zmq is shown as intalled. zmq ZMQ extension => enabled ZMQ extension version => 1.1.2 libzmq version => 3.2.2 But when I create a php page with phpinfo() function to show php configuration, it does not show anything about zmq. Plus, it is unable to find ZMQContext and other ZMQ classes, like ZMQSocket. I guess it's not fully installed, but I don't know what to do anymore. I have

php-zmq is not shown on phpinfo() page

时间秒杀一切 提交于 2020-01-13 10:43:08
问题 I am using Wamp Server on Windows and I installed zmq library. When I write php --info on console, I see that zmq is shown as intalled. zmq ZMQ extension => enabled ZMQ extension version => 1.1.2 libzmq version => 3.2.2 But when I create a php page with phpinfo() function to show php configuration, it does not show anything about zmq. Plus, it is unable to find ZMQContext and other ZMQ classes, like ZMQSocket. I guess it's not fully installed, but I don't know what to do anymore. I have

php-zmq is not shown on phpinfo() page

可紊 提交于 2020-01-13 10:43:00
问题 I am using Wamp Server on Windows and I installed zmq library. When I write php --info on console, I see that zmq is shown as intalled. zmq ZMQ extension => enabled ZMQ extension version => 1.1.2 libzmq version => 3.2.2 But when I create a php page with phpinfo() function to show php configuration, it does not show anything about zmq. Plus, it is unable to find ZMQContext and other ZMQ classes, like ZMQSocket. I guess it's not fully installed, but I don't know what to do anymore. I have

PyZMQ PUSH socket does not block on send()

∥☆過路亽.° 提交于 2020-01-13 06:51:10
问题 The ZMQ_PUSH section in ZMQ socket documentation say that calling send() on PUSH socket, which has no downstream nodes should block until at least one node becomes available. However, running the following code does not seem to block on send() . Also, the process does not exit until I run a matching PULL socket and receive the messages: import zmq import time zmq_context = zmq.Context() print '> Creating a PUSH socket' sender = zmq_context.socket(zmq.PUSH) print '> Connecting' sender.connect(

ZMQ socket connection timeout

我怕爱的太早我们不能终老 提交于 2020-01-13 04:44:08
问题 I'm using C++ binding for ZMQ (cppzmq) and I'm trying to set the connection timeout of TCP socket using a .setsockopt() -method like this: int connectTimeout = 1000; socket.setsockopt(ZMQ_CONNECT_TIMEOUT, &connectTimeout, sizeof(connectTimeout)); socket.connect(clientConfiguration.uri); However, I dont see anything (exception thrown?) happening until code reaches actual .send()/.recv() on the socket. Just to make sure the socket has a chance to throw I put a sleep between .connect() and .send

Using Protocol Buffers for implementing RPC in ZeroMQ

送分小仙女□ 提交于 2020-01-12 03:52:11
问题 I have a simple setup of one client and one server. The client wants to execute a method in the server using ZeroMQ for communications. I am going to use the REQ and REP sockets because they are suitable for this use case. Nevertheless I have a doubt about the protobuf definitions. I think these two options can be used for achieving the goal: message ControlService{ string control = 1; int32 serverId = 2; bool block = 3; double temperature = 4; } Where "control" contains the name of the

Using ZeroMQ with C# with inproc transport

点点圈 提交于 2020-01-12 03:27:13
问题 I'm experimenting with ZeroMQ and trying to get something working. My first thought was to set up a REP/REQ using the inproc transport to see if I could send messages between two threads. Most of the below code is taken from the clzmq examples, but it doesn't seem to work. Both the server and the client are bound to the transport, but when the client tries to do a Send it blocks and just sits there. I have no ZeroMQ experience so I'm not sure where to look first, any help would be greatly

How can someone send data from MetaTrader 4/5 Terminal to external server?

血红的双手。 提交于 2020-01-11 07:39:06
问题 this is somehow intended to (maybe) be(come) a guideline post in terms of MetaTrader 4/5 and its corresponding language MQL4 both set into context with sending data to external servers. In my special case I am building a Django/Python based web application that will process FOREX trading data for further use. Thus, I am in search for a proper solution to send data from the MetaTrader 4/5 Terminal to an external server periodically (e.g. every 60 seconds) formatted as json or csv (if possible)

Kafka知识点汇总

北城以北 提交于 2020-01-07 17:40:26
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1、 Kafka是一种分布式的,基于发布/订阅的消息系统。 2、 常用Message Queue对比 RabbitMQ RabbitMQ是使用Erlang编写的一个开源的消息队列,本身支持很多的协议:AMQP,XMPP, SMTP, STOMP,也正因如此,它非常重量级,更适合于企业级的开发。同时实现了Broker构架,这意味着消息在发送给客户端时先在中心队列排队。对路由,负载均衡或者数据持久化都有很好的支持。 Redis Redis是一个基于Key-Value对的NoSQL数据库,开发维护很活跃。虽然它是一个Key-Value数据库存储系统,但它本身支持MQ功能,所以完全可以当做一个轻量级的队列服务来使用。对于RabbitMQ和Redis的入队和出队操作,各执行100万次,每10万次记录一次执行时间。测试数据分为128Bytes、512Bytes、1K和10K四个不同大小的数据。实验表明:入队时,当数据比较小时Redis的性能要高于RabbitMQ,而如果数据大小超过了10K,Redis则慢的无法忍受;出队时,无论数据大小,Redis都表现出非常好的性能,而RabbitMQ的出队性能则远低于Redis。 ZeroMQ ZeroMQ号称最快的消息队列系统,尤其针对大吞吐量的需求场景

How to extract data from message in C# ZeroMQ?

烂漫一生 提交于 2020-01-07 06:34:32
问题 I need to send data from C++ to C# . On C++ side, under Linux, I am using ZMQ library version 4.1.4 . C# side is using clrzmq4 library based on 4.1.5 version . So the part where I send message in C++ : char tempStr[] = "ABCD"; zmq_msg_t zmsg; zmq_msg_init_size(&zmsg, 4); memcpy(zmq_msg_data(&zmsg), tempStr, 4); int rc = zmq_send(reqSocket, &zmsg, sizeof(zmsg), 0); zmq_msg_close(&zmsg); C# code to retrieve message: ZFrame request = responder.ReceiveFrame(); byte[] reqBytes = new byte[100]; int