thank you Jeff,
it makes more sense now. How about I write with ONE consistency,
replication factor = 3 and read consistency is QUORUM. I am guessing in
that case, I will not have the empty read even if it is happened
immediately after the write request, let me know your thoughts ?

Cheers,
Anurag

On Sat, Jul 15, 2023 at 7:28 PM Jeff Jirsa <jji...@gmail.com> wrote:

> Consistency level controls when queries acknowledge/succeed
>
> Replication factor is where data lives / how many copies
>
> If you write at consistency ONE and replication factor 3, the query
> finishes successfully when the write is durable on one of the 3 copies.
>
> It will get sent to all 3, but it’ll return when it’s durable on one.
>
> If you write at ONE and it goes to the first replica, and you read at ONE
> and it reads from the last replica, it may return without the data:  you
> may not see a given write right away.
>
> > On Jul 15, 2023, at 7:05 PM, Anurag Bisht <bisht.anurag...@gmail.com>
> wrote:
> >
> > 
> > Hello Users,
> >
> > I am new to Cassandra and trying to understand the architecture of it.
> If I write to ONE node for a particular key and have a replication factor
> of 3, would the written key will get replicated to the other two nodes ?
> Let  me know if I am thinking incorrectly.
> >
> > Thanks,
> > Anurag
>

Reply via email to