redis-queue | 一个基于redis的队列项目,结合了symfony的console组件,采用命令创建队列、执行队列 cn
kandi X-RAY | redis-queue Summary
kandi X-RAY | redis-queue Summary
redis-queue
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create job file
- Work for a job
- Get the redis instance .
- Execute the job
- Get the job instance .
- Init Email object
- Get the next node in the list
- Init queue configuration
- Trigger an event
- Update the status of the job
redis-queue Key Features
redis-queue Examples and Code Snippets
Community Discussions
Trending Discussions on redis-queue
QUESTION
just want to ask what is the redisQueueInboundGateway.setReplyChannelName for
I got a log B and then a log.
1.My question is in what situation will the log C be printed when I set it to the RedisQueueInboundGateway.
- the doc in "https://docs.spring.io/spring-integration/reference/html/redis.html#redis-queue-inbound-gateway" seems incorrect for class name and class explanation such like:
2.1 the 'RedisOutboundChannelAdapter' is named in 'RedisPublishingMessageHandler'.
2.2 the 'RedisQueueOutboundChannelAdapter' is named in 'RedisQueueMessageDrivenEndpoint'.
2.3 the explanation of Redis Queue Outbound Gateway is exactly the copy of Redis Queue Inbound Gateway.
...ANSWER
Answered 2020-Sep-24 at 13:43Your concern is not clear.
2.1
There is a component (pattern name) and there is a class on background covering the logic. Sometime they are not the same.
So, Redis Outbound Channel Adapter
is covered by the RedisPublishingMessageHandler
, just because there is a ConsumerEndpointFactoryBean
to consume messages from the input channel and RedisPublishingMessageHandler
to handle them. In other words the framework creates two beans to make such a Redis interaction working. In fact all the outbound channel adapters (gateways) are handled the same way: endpoint plus handler. Together they are called adapter
or gateway
depending on the type of the interaction.
2.2
I don't see such a misleading in the docs.
2.3
That's not true. See difference:
Spring Integration introduced the Redis queue outbound gateway to perform request and reply scenarios. It pushes a conversation UUID to the provided queue,
Spring Integration 4.1 introduced the Redis queue inbound gateway to perform request and reply scenarios. It pops a conversation UUID from the provided queue
All the inbound gateways are supplied with an optional replyChannel
to track the replies. It is not where this type of gateways is going to send something. It is fully opposite: the place where this inbound gateway is going to take a reply channel to send a reply message into Redis back. The Inbound gateway is initiated externally. In our case as a request message in the configured Redis list. When you Integration flow does its work, it sends a reply message to this gateway. In most cases it is done automatically using a replyChannel
header from the message. But if you would like to track that reply, you add a PublishSubscribeChannel
as that replyChannel
option on the inbound gateway and both your service activator and the gateway get the same message.
The behavior behind that replyChannel
option is explained in the Messaging Gateway chapter: https://docs.spring.io/spring-integration/reference/html/messaging-endpoints.html#gateway-default-reply-channel
You probably right about this section in the docs https://docs.spring.io/spring-integration/reference/html/redis.html#redis-queue-inbound-gateway and those requestChannel
and replyChannel
are really a copy of the text from the Outbound Gateway section. That has to be fixed. Feel free to raise a GH issue so we won't forget to address it.
The C logs are going to be printed when you send a message into that C
channel, but again: if you want to make a reply correlation working for the Redis Inbound Gateway it has to be as a PublishSubscribeChannel
. Otherwise just omit it and your String bTesting(Message message) {
will send its result to the replyChannel
header.
QUESTION
I have a django app that uses redis-queue for managing long running tasks in the background. I have it set up and running (if in a stupid configuration), but I'm unclear what the appropriate namespace to store my queue is.
I set up the rq worker as recommended in the docs:
...ANSWER
Answered 2018-Feb-12 at 22:00Turns out django_rq
provides the queue namespace for you! settings.py
should have something like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install redis-queue
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page