Tenma

1.1K posts

Tenma banner
Tenma

Tenma

@tenma_dev

figuring out

delusion Katılım Mart 2025
398 Takip Edilen164 Takipçiler
Sabitlenmiş Tweet
Tenma
Tenma@tenma_dev·
CAP Theorem CAP Theorem talks about tradoffs of disturbed systems Here C - Consistency (Every read request to the distributed system should return same result irrespective of whichever node we are reading from) A - Availability (The system should respond to any request made to it irrespective of any node is failed or not) P - Partition Tolerance (The system continues to respond/operate even though there is a network breakdown/partition between the nodes) Before Diving into CAP theorem here is some background knowledge you should know Distributed System : Data Stored in multiple servers instead of one(like we do when we apply horizontal scaling) Why distributed systems? > Spread Workload among multiple servers > Can handle more number of requesss > Improves overall performance In distributed system we replicate same data across multiple systems to get the above benifits. Server/s are called a node here. Now let's talk about the CAP Let's say there are there nodes X, Y and Z Consistency says that whenever you read data from X, Y or Z they should return the same data and when you write then it should be propogated to other nodes to maintain consistency Availability says that if B fails due to some hardware issue and go offline then A and C should still be working and should serve the requests Partition Tolerance says if network partition happens on B and it can't communicate with A and C, then node B will still be serving requests even though it is not up to date with the data with other nodes(A and C) since it got a network partition. CAP Theorem: CAP Theorem states that in a distributed system, you can only guarantee two out of these three properties simultaneously. It's impossible to achieve all three You can refer to the image below for clear understand about the statement once Only the combination of CA(Consistency-Availability), AP(Availability-Partition tolerance), CP(Consistency-Partition tolerance) is possible In distributed system there are very high chances of network partition so we should must handle P(partition tolerance). So most of distributed systems choose either AP or CP because they can't afford network partition What to choose between CP and AP CP - if you can't afford inconsistent data then go for CP like banking, payment services where numbers are the most important thing AP - if you can afford in consistent data but can't afford unavailability like social media can have slightly different likes, comments or views for different users but it can't have their apps down.
Tenma tweet media
English
3
1
4
192
Tenma
Tenma@tenma_dev·
@shydev69 Senior officer ko naam leke bulati hai?😈😈😈🤓☝️
Indonesia
0
0
1
1.4K
Tenma
Tenma@tenma_dev·
@vedantdotrpm cfbr (mil jaye toh mujhe bhi thoda help krde bhai🥀)
हिन्दी
0
0
1
453
Vedant
Vedant@vedantdotrpm·
Anyone hiring for onsite internships in Bangalore/Hyderabad this summer? Would love to spend my summer building cool stuff there and maybe convert it into full-time if things go well :) Open to backend, systems, or full-stack roles. Happy to share resume/projects over DM.
English
20
8
189
10.8K
Tenma
Tenma@tenma_dev·
Mera khel khatam hai 🥀🥀
हिन्दी
0
0
1
15
by
by@beyoumf·
what is life teaching you rn?
English
393
59
518
84.1K
Tenma
Tenma@tenma_dev·
Seeing so many people's last btech last exam on my tl is kinda making me sad that I'll be posting the same by a year.
English
0
0
4
42
arya
arya@PoemRunning·
i really cant study this shit man ; ps. exam in 5 hours 😆
arya tweet media
English
2
0
35
571
Tenma
Tenma@tenma_dev·
Anyone going for scaler hack at blr tomo(technically today)?
English
1
0
3
107
Tenma
Tenma@tenma_dev·
Any place to find go + devops projects/project ideas?
English
0
0
3
38
Tenma
Tenma@tenma_dev·
OMFG how tf am I able to procrastinate this much
English
0
0
1
20
Tenma
Tenma@tenma_dev·
@gharkekalesh ain't the glare from the mirror can cause accidents?
English
0
0
0
57
Ghar Ke Kalesh
Ghar Ke Kalesh@gharkekalesh·
Mysuru installs reflective mirror sheets on an 80m wall near bus stand with LED lights to shame public urinators by showing their reflection. Aim: stop open urination & improve civic sense.
English
54
116
2.2K
77.8K
Aryan Patel
Aryan Patel@itzarugod·
I am lowk scared of this new hentai virus
English
13
13
168
5.9K
Tenma
Tenma@tenma_dev·
Fuck it, I ain't sleeping tonight
English
0
0
2
38
Tenma retweetledi
The Cinéprism
The Cinéprism@TheCineprism·
🎬 Gully Boy (2018)
The Cinéprism tweet media
English
7
320
3.5K
40.8K
Mohit.sol
Mohit.sol@mohitsatitwt·
Okay, so these are the last 30 days of my college it's either win or nothing. I don’t know how to figure things out, but now I’m leaving everything to God and hard work.
English
5
0
16
407