Redis를 MySQL과 연동하기 위해 자료를 찾아보던중
좋은 글 하나를 발견했다.
https://www.quora.com/Whats-the-best-strategy-to-sync-data-in-Redis-to-MySQL
What's the best strategy to sync data in Redis to MySQL?
Answer: 1. Your first sentence indicates that you're using Redis to be local cache(1). But your actual question asks how to sync Redis data to MySQL. Why ?! 2. What's the latency requirement ? 3. Do you own the code that writes the data into Redis ? 4. Is
www.quora.com
왜 꼭 Redis를 써야하는걸까?
RDS의 부하를 줄이기 위해 쓰는 경우가 있겠다.
그럼 Redis를 줄이기전에, MySQL의 쿼리를 최적화하는 방법을 먼저 생각해보고 난 후,
그래도 안된다면 slave서버를 두어 SELECT문의 부하를 줄인다.
그래도 마지막으로 안된다면 Redis를 사용하도록 하자.
MySQL 성능최적화는 매우 중요하다.
'Redis' 카테고리의 다른 글
Redis 쓰는 이유 (0) | 2021.10.06 |
---|