What are the steps to create redis pipeline using lettuce for bulk request in springboot - redis

What are the steps to create redis pipeline using lettuce for bulk request
Need code snippet, there is less documents about the posted question.

Related

Send data from kafka to s3 using python

For my current project, I am working with Kafka (python) and wanted to know if there is any method by which I can send the streaming Kafka data to the AWS S3 bucket(without using Confluent). I am getting my source data from Reddit API.
I even wanted to know whether Kafka+s3 is a good combination for storing the data which will be processed using pyspark or I should skip the s3 step and directly read data from Kafka.
Kafka S3 Connector doesn't require "using Confluent". It's completely free, open source and works with any Apache Kafka cluster.
Otherwise, sure, Spark or plain Kafka Python consumer can write events to S3, but you've not clearly explained what happens when data is in S3, so maybe start with processing the data directly from Kafka

How to integrate bulk API queue using db in env.php

I have integrated RabbitMQ with Magento to use async bulk APIs, now I have to check the same with MySql as a queue processor instead of RabbitMQ. does anyone has integrated it? the reference of env.php file would be helpful.
Thanks

Ignite repeat execute

I send request in Ignite Client and client execute task on Ignite servers in cluster. Server need calculate some data from cache and return response to client. Client use IgniteCompute for execute, but if server was lost (crashed, connect lost, timeout) Ignite not balance this task for execute another server.
My question
Can Ignite repair (repeat) execute if connection lost with server in cluster? Or i need check this errors in client myself and send repeat request ?
I found some properties :
setAckTimeout
setSocketTimeout
setNetworkTimeout
setDiscoverySpi
setFailureDetectionTimeout
setClientFailureDetectionTimeout
setRebalanceTimeout
But it is not work....
My stack
Java 1.8
SpringBoot 2.4.5
Ignite 2.10
Ignite supports failover in terms of jobs. In order to achieve that you need to configure FailoverSPI. More information could be found in the documentation.

Anyone in this group working on Redis as a Database

I am working on a migration project from Oracle to Redis. The business logic or the CRUD operations implemented in PL/SQL will be written in Lua scripts which will be called from Java using jedis.
What is the best way to deploy these Lua scripts?
Can I load/register the scripts in Redis DB manually and then call them using evalsha method from java? – What are the possible issues I get?
Can I create an API with all the scripts and load them from java code and use eval method to call them.
If I use the master-slave architecture with the Sentinel (1 master, 2 slaves, and 3 sentinels) for high availability with automatic failover. Do I need to use 3 servers for these or can I go with one server with 3 ports?
What is the best way to deploy these Lua scripts?
You should be using EVALSHA to determine if the script has been loaded into Redis. If not, use SCRIPT LOAD. Then you don't have to keep sending the script contents to Redis every time you execute it.
Can I load/register the scripts in Redis DB manually and then call
them using evalsha method from java? – What are the possible issues I
get? Can I create an API with all the scripts and load them from java
code and use eval method to call them.
You can definitely load the scripts manually. However, its probably better for the application to handle when the script isn't in Redis as a fail-safe. How you get the contents is up to you.
If I use the master-slave architecture with the Sentinel (1 master, 2
slaves, and 3 sentinels) for high availability with automatic
failover. Do I need to use 3 servers for these or can I go with one
server with 3 ports?
It probably depends on your needs. Having everything live in the same server makes you have a single point of failure -- if that server goes down or is offline, you lose the ability to interact with Redis.

Is Redis a good idea for Spring Cloud Stream? Should I use Kafka or RabbitMQ?

I'm deploying a small Spring Cloud Stream project,
using only http sources and jdbc sinks (3 instances each). The estimated load is 10 hits/second.
I was thinking on using redis because I feel more confortable with it, but in the latest documentation almost all the refereces are to kafka and RabbitMQ so I am wondering if redis is not going to be supported in the future or if there is any issue using redis.
Regards
Redis is not recommended for production with Spring Cloud Stream - the binder is not fully functional and message loss is possible.