Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7598263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:21:52+00:00 2026-05-30T22:21:52+00:00

I am trying to do data replication using redis server and jedis client. What

  • 0

I am trying to do data replication using redis server and jedis client. What I am asking may be completely wrong. I just started exploring the things today.

I have configured 2 laptops in my network.
Config on node1 is default the config.

Config on node2:

updated redis.conf file to have this line:

slaveof <node1 ip> <port on which redis server is running>

I have a stand-alone java program on both of the nodes.

Case 1:
I did jedis.set("key1", "value1"); from node1 (master). I am able to retrieve key-value from node2.

Case 2:
I did jedis.set("key2", "value2"); from node2 (slave). But I’m not able to see that replicated on the master node.

Question is, is it expected behavior? My requirement is to keep the data in sync on all the nodes.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T22:21:54+00:00Added an answer on May 30, 2026 at 10:21 pm

    That is the expected behavior. Writes to the master will propagate to the slave(s), writes to the slave(s) will not propagate to the master. If you want to use Redis, you will have to write to the master and read from the slave(s). See Redis replication documentation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to prevent data races in a multihreaded server. My problem is
I'm trying to retrieve data from an SQL Server 2000 server, and place into
I am trying to find good resources on best practices to data replication across
I'm trying getting data of the column tv of the user table using the
I am trying to data from a server. Sometimes my code fails due to
Trying to get data in the most efficient way possible for some reports, using
I am trying sending data from android application (with emulator) to web server (a
Trying to retrieve data using linq from a database. I would like to use
im trying to append data using jquery, but its only showing the status messages
I am trying plot data sets consisting of 3 coordinates: X-coordinate, x-coordinate and the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.