|
|
|
|
|
by simonw
1498 days ago
|
|
There's another, more sophisticated trick that works for some databases: tracking a global transaction counter of some sort, persisting that in a cookie when a user makes a write and redirecting the user to the lead database if the replica they are talking to hasn't made it to that point yet. Chris McCord describes how Elixir does that with PostgreSQL here: https://news.ycombinator.com/item?id=31434094 Wikipedia implements this trick on top of PHP and MySQL global transaction IDs (GTIDs) so it definitely scales! |
|
I wonder if there's a PostgreSQL equivalent of this?