Tenma

1K posts

Tenma banner
Tenma

Tenma

@tenma_dev

figuring out

delusion 参加日 Mart 2025
384 フォロー中167 フォロワー
固定されたツイート
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
3
132
sun yum
sun yum@sun__yum·
GNG TODAY I AM GONNA PLAY A FIDE RATED CHESS TOURNAMENT, SO EXCITED TO GET MY ASS BEATEN BY A TEN Y/O YAAAY
English
4
0
12
277
mememandir
mememandir@mememandir·
3rd time reporting an issue on claude code and the screen completely freezes after clicking submit, anyone else facing this?
mememandir tweet media
English
53
1
369
18.4K
Tenma
Tenma@tenma_dev·
Oh obsedian is so cool
English
0
0
0
16
Akansha
Akansha@clumsyaf222·
@tenma_dev Haa pdhooo mne bhi start krdiaa 😗
Indonesia
1
0
3
91
Tenma
Tenma@tenma_dev·
Everyone on my tl is reading ddia, is this a sign for me? hostel aake mei bhi start krunga ddia pdna😚
English
1
0
5
134
Kislay
Kislay@whyKislay·
Happy to announce Forg.to is now community of 500+ users
English
2
0
8
50
Tenma
Tenma@tenma_dev·
Yo watching dhurandhar 2, lessgo
English
0
0
1
135
Tenma
Tenma@tenma_dev·
Yo happy gudhi padwa/ugadi to you all
Indonesia
0
0
0
63
Tenma がリツイート
Kislay
Kislay@whyKislay·
We just launched @forg_to on @ProductHunt Support us on - producthunt.com/products/forg Giving pro (forg.to/pro) for FREE to first 100. Forg is community of 500+ indie hackers , where you can • showcase your work, exp, skill • launch products, • connect with builders
Kislay tweet media
English
1
10
14
399
Tenma
Tenma@tenma_dev·
This week went so unproductive bro🙁
English
0
0
0
28
Tenma
Tenma@tenma_dev·
Ok it's already 4am, should I just randomly pull an all nighter for no reason?
English
0
0
0
15
Tenma
Tenma@tenma_dev·
brute force hogya but tle agya
Filipino
0
0
0
21
Tenma
Tenma@tenma_dev·
@harmanxze Yo you learning webrtc?( Saw sdp, ice candidates on yo notes)
English
1
0
1
33
Hrmn
Hrmn@harmanxze·
Good morning , buddies Expecting today 🦍 - 4 hours golang - 3 hours devops - something new
Hrmn tweet media
English
10
1
55
682
Tenma
Tenma@tenma_dev·
Done with potd Will start sliding window probs from today
English
0
0
2
15
Tenma
Tenma@tenma_dev·
yo wassup?, any good resources for webrtc?, rn am using claude to learn concepts
English
0
0
1
44
Sahil Gupta
Sahil Gupta@wrongSahil·
@tenma_dev All of these are client-side publishable keys that ultimately get exposed in the WebApp. While you can avoid pushing them to the .env file, you will still be able to see them in final javascript bundle for other apps using firebase too. stackoverflow.com/a/37484053
English
1
0
1
12
Tenma
Tenma@tenma_dev·
omgg requestly's .env is public😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱
Tenma tweet media
English
1
0
2
66
Tenma
Tenma@tenma_dev·
potd done
English
0
0
0
31
Tenma
Tenma@tenma_dev·
done with potd
English
0
0
0
21