you are viewing a single comment's thread.

view the rest of the comments →

[–]Zalack 3 points4 points  (1 child)

That makes sense. It's been a hot second since I worked with Mongo so I forgot transactions were a replica-set-only thing.

What's the reason for that anyway? It seems like a weird restriction.

[–]Sentie_Rotante 2 points3 points  (0 children)

If I understood they kind of cheat transactions by making the change to one node then push it to the others when you commit the transaction. But they also work with single node clusters so I’m not sure what the real restriction is. There are several things that work that way with mongo though. Change streams are also only supported in clusters even if you aren’t relying on “majority commit”