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.
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. . , .
, , . , .
, , 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); }
,
. . , .. . , , , Redis., . . , . RDBMS.. , , , MongoDB..Some good messaging systems for this purpose are RabbitMQ and 0MQ.
Source: https://habr.com/ru/post/1754358/More articles:Fingerprint matching SDK - sdkCDATA update in xml - c #Troubleshoot locking issues while calling multiple methods in a WCF service from Silverlight - asp.netHow to remove the close button in a dialog box? - jquery-uiExtract address / contact information from text block with name and address? - javahow can we run a python script (which uses nltk and scrapy) from java - javaSynchronization 2 databases with different schemes - synchronizationWhat version of Ruby for Watir on Windows? - windowsHow to format comments in C ++? - c ++Subdirectory on another host - redirectAll Articles