
S1 E4 - State with Russ Olsen
ClojureStream Podcast
00:00
The Advantages of Two Atoms vs One Agent
With two atoms, at least, you know, Java script is sort of different because it's got the single threaded thing going on. But in principle, if you have two atoms, in principle, the updates could happen at the same time - that's not much of a problem in the Java script world. It's a much more serious problem on the server side world. So we would use agents when we want to fight sort of with race conditions. And agent, and again, the agents are only exist on sort of server side Java, but agents serialize the work that comes to them.
Transcript
Play full episode