CQRS: Synchronizing Read and Write Databases

Can someone please give me some direction regarding various ways to synchronize write and read databases?

What are the different technologies, and how do you evaluate each, in terms of implementation, productivity, cost of implementation, etc.

+3
source share
3 answers

Typically, a CQRS record database is used to store transient data for long-running processes (sagas). If you synchronize a read and write database (I assume you mean both ways), you might be doing something wrong.

, , , . , , . . . , , , .

, , DB. . , .

, , . , .

+6

, , db, ( ) write db , , , , , , , . , ,

CQRS, , , :

    public interface IRepository<T> where T : AggregateRoot, new()
    {
        void Save(AggregateRoot aggregate, int expectedVersion);
        T GetById(Guid id);
        T GetById(Guid id, int version);
    }

,

+1

. . , .. . , , , Redis.
, . . , . RDBMS.. , , , MongoDB.
.
Some good messaging systems for this purpose are RabbitMQ and 0MQ.

0
source

Source: https://habr.com/ru/post/1754358/


All Articles