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 8579479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:36:52+00:00 2026-06-11T20:36:52+00:00

Background: We are creating a Cassandra Cluster that spans 3 geographically separated Datacenters. We

  • 0

Background:

We are creating a Cassandra Cluster that spans 3 geographically separated Datacenters. We plan to have 2 Cassandra nodes in each data center (2 nodes x 3 sites = 6 nodes total). All the 6 nodes will be the part of same cluster.

The idea is to be able to write data to any node in the cluster and be able to read it from any other node. [We can tolerate 1 second delay in updates].

The Question:

How do we design a client to write to the “cluster”. Cassandra does not have a router or a middle-layer like MongoDB. Do we design so that we write to any node in the ring? If so, what is that node is down (i.e. do we need to make our client aware of all the node IPs in the cluster?)

Thank you.

  • 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-06-11T20:36:53+00:00Added an answer on June 11, 2026 at 8:36 pm

    You can read or write from any node in the cluster, they are all capable of routing the requests to the correct nodes (the node performing the routing is typically referred to as the “coordinator” for an operation). You should try to balance your requests over all nodes in the local datacenter, only using nodes in the remote datacenters if all local nodes are down. Most Cassandra clients will spread requests in a round robin fashion across all of the nodes that you point them at, and as Canausa mentions, some autodiscover other nodes and sometimes use more sophisticated algorithms for picking which node to send a request to.

    Writes to any datacenter are automatically replicated to all other datacenters, so you can indeed write to any node and read from any node. Typically, you will want to use consistency level LOCAL_QUORUM for reads and writes, which requires that a quorum of replicas in the local data center respond for the operation to be considered a success. You can also consider writing at EACH_QUORUM, which waits for a response from a quorum of replicas in each datacenter. Obviously, the latency will be much higher in this case, but you can achieve strong consistency across all datacenters.

    However, with only 2 nodes in each datacenter, a quorum of replicas is equivalent to all replicas, so if any node goes down, you will lose availability for that portion of the data. For this reason, if you want to use quorum consistency levels, it’s recommended that you have a replication factor of at least 3 in each datacenter, allowing for the loss one replica while still maintaining strong (or locally strong) consistency.

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

Sidebar

Related Questions

Background: I'm creating a dashboard as a project and I have a query that
I'm creating buttons dynamically that have images as their background, The problem is the
The Background: I have been creating a script that based on input csv's that
Background: I am creating a REST api, that will require users to use only
I'm creating a bash script that will run a process in the background, which
I have a multi-threaded app that uses Core Data. I've been seeing a lot
Background I am creating a VoIP app. I know that there are plenty of
I am creating a background worker thread and Loading data in it and showing
First, the background: I am creating a Flex application with a component that displays
I have been creating multiple background threads to parse xml files and recreate new

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.