
Just a guy who loves to write code and watch anime.
Search for a command to run...

Just a guy who loves to write code and watch anime.
No comments yet. Be the first to comment.
Qualities that make outstanding builders.

Bipedal vs quadrupedal: how many legs This is about the number of legs the creature walks on. Bipedal. Two legs. Humans, ostriches, T-rex, kangaroos, most fantasy humanoids. Quadrupedal. Four legs. Do

Intro You hear "lerp" and "smoothstep" everywhere in game dev. They sound like math jargon. They're not. Both are small tools that do the same job: smoothly move from one value to another. The problem

What is Kinematics Kinematics is the math field. It's the study of how things move without worrying about forces (which would be dynamics). FK and IK are the two branches: forward kinematics and inver

Intro Textures are usually the biggest cost in a 3D scene. Memory, bandwidth, and load time all get eaten by them. Resizing them is the obvious lever. There's more. This post is about the less obvious

This article is the third one of my Distributed Systems series, the previous one can be found here: Sharding.

We gonna go over all three terms: Consistency, Availability and Partition Tolerance.
CAP Theorem states that only 2 of these three guarantees can be guaranteed in a distributed system, not all three at the same time.
Whatever I read from the database, I'll always see what I have most recently written.
When I read from the database, I always get a value returned. When I write to the database, I can write.
In a distributed system, there will be cases where parts of the database won't be able to communicate with other parts of the database. When this happens, the database should be able to deal with things till the partition is healed.
P is something we must have because some parts of the database will be cut off from others. We should design the nodes to fail independently, and not cause the whole system to fail. The system should be fault tolerant.
We can only guarantee, either consistency or availability.
You should look at the system you're building and see which pros outweigh the others.