Home > Back-end >  Redis and oracle data synchronization
Redis and oracle data synchronization

Time:09-16

Plan to use such a setting, oracle stored all measured data, and then redis put part of the common data, the application priority while reading the configuration data read from the redis, then redis not read from oracle, but make sure the oracle configuration data do increase, deletion synchronization to redis,
Excuse me everybody, everybody has any experience in this respect, this is the part of the design should be how to do, including how to synchronize redis oracle configuration data changes, thank you!
Before going to use databus, but this information is relatively small, so temporarily useless,

CodePudding user response:

https://blog.csdn.net/guojing505123/article/details/51361281/
This with his own code logic is used to implement can insert time synchronization, each update operation data updates to redis, query time synchronization, start with redis queries, if not from Oracle query, and no data is inserted into the redis

CodePudding user response:

Besides databus any other tools, if you do the oracle data change new synchronization redis, how to do? Use a trigger, if the data quantity is particularly big, can affect performance,

CodePudding user response:

No direct synchronization method of bai du this depends on your architecture design,

Insert time synchronization, such as updated zhioracle first, dao update redis again, this depends on the code logic to do,

Query time synchronization, your cache to use redis do at this moment, so its update depends on your set of logic,

Timing synchronization, according to your background synchronization logic, according to certain conditions, the data is inserted into the redis,

Complete synchronization, is your redis and oracle stored the same amount of data of data,
  • Related