Urgent.News

What's breaking now, across thousands of outlets.

Tech

About CAP theorem

As developers, we often assume that distributed systems can provide everything at once: perfectly consistent data, high availability, and resilience to network failures. Unfortunately, distributed systems don't work like that. This is where the CAP Theorem comes in, one of the most fundamental concepts in distributed computing. What Is the CAP Theorem? Proposed by computer scientist Eric Brewer,…

The CAP Theorem is a fundamental concept in distributed computing that was proposed by computer scientist Eric Brewer. It states that a distributed system can guarantee only two out of three properties - Consistency, Availability, and Partition Tolerance - simultaneously. When a network partition occurs, developers must choose between consistency and availability.

Consistency means that every node in the system sees the same data at the same time. Availability means that every request receives a response, even if some servers are experiencing issues. Partition Tolerance is the ability of the system to continue operating even when some nodes cannot communicate due to network failures. Since partitions are inevitable in modern cloud environments, most distributed systems must be partition-tolerant.

The CAP Theorem is important for architects to understand when designing microservices, choosing databases, and building global applications, as it highlights the trade-offs between consistency, availability, and partition tolerance in distributed systems.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

sudo vim Was All It Took to Go From User to Root — Simple CTF (TryHackMe)

Platform: TryHackMe · Difficulty: Easy · Category: CMS SQLi / Upload Filter Bypass / GTFOBins Introduction Simple CTF tells you exactly how complicated things are going to get right there in the name.

  • Single command 'sudo vim' elevated user to root on three services
  • Anonymous FTP login provided immediate system access
  • Outdated CMS Made Simple had blind SQL injection vulnerability

More from Sunday 1 November →