r/AskComputerScience • • Nov 25 '24

Multi Region Replication: Ordering Issues and Conflicts

2 Upvotes

I’m trying to understand how conflicts and ordering issues are handled in a multi-region replication setup. Here’s the scenario: • Let’s assume we have two leaders, A and B, which are fully synced. • Two writes, wa and wb, occur at leader B, one after the other.

My questions: 1. If wa reaches leader A before wb, how does leader A detect that there is a conflict? 2. If wb reaches leader A before wa, what happens in this case? How is the ordering resolved?

Would appreciate any insights into how such scenarios are typically handled in distributed systems!

Is multi-region replication used in any high scale scenarios ? Or leaderless is defecto standard?


r/AskComputerScience • • Nov 25 '24

Binary Search Trees: Are the leaves nodes or NULL pointers in the parent node?

2 Upvotes

Let's say this is 19 and let's say here it has to be greater than 20, less than 25, let's say 23, 21, 24 greater than 20 but less than equal to 25. Let's say 29, 31, and then let's say nil, nil, nil, nil, nil, nil, nil, nil those are going to be the leaves. I will still soon stop writing these leaves, but for now I will write these leaves.

I am doing the CU-Boulder Coursera course on Trees and Graphs.

It is confusing why he is referring to the leaves as NIL.

Are the leaves nodes or NULL pointers in the parent node?

see screenshot here https://imgur.com/a/fkkQ4OK

Edit: Unfortunately, the course as with Coursera courses is abandoned and instructors do not reply in the discussion forums. Hence I am posting here. Thanks to all for your help.


r/AskComputerScience • • Nov 24 '24

How to study computer science further after graduation?

12 Upvotes

I have a Bachelor's in Engineering in Computer Science Degree from my state school and a Masters in IT Management from Western Governor's University. I have a fulltime software engineering job that is work from home. I'm not seeking further degrees or qualifications for employment reasons (would like a PhD in comp sci when I get more settled)

I want to know the best courses / books / well formulated projects that can provide problem sets, and train me in traditional comp sci topics. AI, ML, computer graphics, Databasing technologies, (math topics as well that are cross listed), Compilers, system design, low level systems programming.

Basically I want to know how the entire stack works top to bottom. I have watched plenty of videos but i want to have worked with the science, try to do as much as i can because that's how i learn best.


r/AskComputerScience • • Nov 23 '24

Scaling LB

3 Upvotes

For making highly scalable, highly available applications - applications are put behind a load balancer and LB will distribute traffic between them.

Let say load balancer is reaching its peak traffic then what ? How is traffic handled in that scenario.


r/AskComputerScience • • Nov 22 '24

How does BlueSky work?

12 Upvotes

Just watched a video of BlueSky's CEO talk about how users can just take their data and leave, and how everything is open source, and how there's "no algorithm", and how developers can contribute. This seems very different from any kind of social media platform, and either it's all BS, or there's some cool stuff going on under the hood there.