Postgres transactions are a distributed systems superpower
1–10 of 108 posts
Re: Postgres transactions are a distributed systems superpower
#2Is it really a distributed system or just a bunch of services with a central database?
Re: Postgres transactions are a distributed systems superpower
#3Re: Postgres transactions are a distributed systems superpower
#4Congratulations, you discovered a mutex. Is it really a distributed system or just a bunch of services with a central database?
Re: Postgres transactions are a distributed systems superpower
#5Congratulations, you discovered a mutex. Is it really a distributed system or just a bunch of services with a central database?
*: edit, maybe a better example here is a rail system with a single central dispatcher is centralized but may still be distributed
Re: Postgres transactions are a distributed systems superpower
#6It seems this article is trending toward that view: If you can maintain transactional consistency along with application workflow state, then would this generalize to maintaining distributed application state in general?
The follow-up would be: Would this be preferable to Valkey/Redis?
Re: Postgres transactions are a distributed systems superpower
#7Congratulations, you discovered a mutex. Is it really a distributed system or just a bunch of services with a central database?
I don't think it's true that distributed and decentralized mean the same thing. A hub and spoke rail system is centralized, but it's still a distributed system, if it has multiple trains running concurrently.* A distributed system has to coordinate somehow, and a single central DB is one way of doing it. *: edit, maybe a better example here is a rail system with a single central dispatcher is centralized but may stil…
Re: Postgres transactions are a distributed systems superpower
#8i don't understand the last point of UDF. Either you need the state to be updated atomically across different systems or you don't. But writing a row in a system in order to update the second one at any random time in the future isn't really much different from enqueuing a job in queue.
Re: Postgres transactions are a distributed systems superpower
#9Can you use postgres as a state store for a distributed application? It seems this article is trending toward that view: If you can maintain transactional consistency along with application workflow state, then would this generalize to maintaining distributed application state in general? The follow-up would be: Would this be preferable to Valkey/Redis?
Re: Postgres transactions are a distributed systems superpower
#10Congratulations, you discovered a mutex. Is it really a distributed system or just a bunch of services with a central database?
I don't think it's true that distributed and decentralized mean the same thing. A hub and spoke rail system is centralized, but it's still a distributed system, if it has multiple trains running concurrently.* A distributed system has to coordinate somehow, and a single central DB is one way of doing it. *: edit, maybe a better example here is a rail system with a single central dispatcher is centralized but may stil…
There are always tradeoffs of course, but building a truly decentralized system requires some really difficult compromises to correctness. The two general's problem is a great piece of reading on this topic - distribution always requires compromises in general, but to fully remove an authority on truth gets quite tricky.