Re: Advice request : simultaneous function/data updates on manydatabases

Поиск
Список
Период
Сортировка
Искать
От
Alban Hertroys
Тема
Re: Advice request : simultaneous function/data updates on manydatabases
Дата
Msg-id
BCA56E26-D00B-46B5-902E-3F6A8B86D7E8@gmail.com
Ответ на
Список
Дерево обсуждения
Advice request : simultaneous function/data updates on many databases Rory Campbell-Lange <rory@campbell-lange.net>
Re: Advice request : simultaneous function/data updates on manydatabases Rory Campbell-Lange <rory@campbell-lange.net>
Re: Advice request : simultaneous function/data updates on manydatabases Adrian Klaver <adrian.klaver@aklaver.com>
Re: Advice request : simultaneous function/data updates on manydatabases Rory Campbell-Lange <rory@campbell-lange.net>
Re: Advice request : simultaneous function/data updates on manydatabases Adrian Klaver <adrian.klaver@aklaver.com>
Re: Advice request : simultaneous function/data updates on manydatabases Rory Campbell-Lange <rory@campbell-lange.net>
Re: Advice request : simultaneous function/data updates on manydatabases Ron <ronljohnsonjr@gmail.com>
Re: Advice request : simultaneous function/data updates on manydatabases Guyren Howe <guyren@gmail.com>
Re: Advice request : simultaneous function/data updates on manydatabases Rory Campbell-Lange <rory@campbell-lange.net>
Re: Advice request : simultaneous function/data updates on many databases "David G. Johnston" <david.g.johnston@gmail.com>
Re: Advice request : simultaneous function/data updates on many databases "David G. Johnston" <david.g.johnston@gmail.com>
Re: Advice request : simultaneous function/data updates on manydatabases Rory Campbell-Lange <rory@campbell-lange.net>
Re: Advice request : simultaneous function/data updates on many databases "David G. Johnston" <david.g.johnston@gmail.com>
Re: Advice request : simultaneous function/data updates on manydatabases Rory Campbell-Lange <rory@campbell-lange.net>
Re: Advice request : simultaneous function/data updates on manydatabases "Peter J. Holzer" <hjp-pgsql@hjp.at>
Re: Advice request : simultaneous function/data updates on manydatabases Adrian Klaver <adrian.klaver@aklaver.com>
Re: Advice request : simultaneous function/data updates on manydatabases Alban Hertroys <haramrae@gmail.com>
Re: Advice request : simultaneous function/data updates on many databases "David G. Johnston" <david.g.johnston@gmail.com>

> On 4 Mar 2020, at 23:42, Guyren Howe  wrote:
> 
> On Mar 4, 2020, at 14:33 , Rory Campbell-Lange  wrote:
>> 
>> Essentially we wish to reduce the window where the frontend and backend
>> aren't synchronised.
>> 
>> If we have (for example) 200 databases which each take 2 seconds to
>> update, a client could be on the wrong frontend code for over 6 minutes.
>> Send each of the servers a PL/PGSQL method that executes all the things in a transaction and then waits until the same clock time to commit. Then all the servers are committing at the same moment. They will still be out of synch somewhat, but this would reduce the degree.


I’m wondering whether this could be done with a more generic event-based approach, where each server sends a ‘done’ event to a central machine once it’s ready to commit, and the central machine returns an ‘acknowledged’ once the last server sent it’s ‘done’ event.
The challenge there is that the ‘ack’ needs to be caught and processed within the same waiting transaction… Not sure how to do that right now - maybe through web services, MQTT or similar.

Alban Hertroys
--
If you can't see the forest for the trees,
cut the trees and you'll find there is no forest.



В списке pgsql-general по дате отправления
От: Daulat Ram
Дата:
От: stan
Дата:
FAQ