๐Ÿ—‚ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค : DB

    [Redis] Redis์˜ ๋ฐฑ์—…๊ณผ HA๋ฅผ ์œ„ํ•œ ์ „๋žต (RDB, AOF, Replication, Sentinel, Sharding, Cluster)

    [Redis] Redis์˜ ๋ฐฑ์—…๊ณผ HA๋ฅผ ์œ„ํ•œ ์ „๋žต (RDB, AOF, Replication, Sentinel, Sharding, Cluster)

    ๐Ÿ0. ์„œ๋ก  ํŒ€ ํ”„๋กœ์ ํŠธ์—์„œ Redis๋ฅผ ์‚ฌ์šฉํ•˜๋‹ค๊ฐ€, ์‹ ๊ธฐํ•œ ํ˜„์ƒ์„ ๋ฐœ๊ฒฌํ–ˆ๋‹ค. ์šฐ๋ฆฌ ํ”„๋กœ์ ํŠธ์—์„œ๋Š” ๋„์ปค๋ฅผ ํ†ตํ•ด ๋ ˆ๋””์Šค ์„œ๋ฒ„๋ฅผ ๋Œ๋ฆฌ๊ณ  ์žˆ์—ˆ๊ณ , JWT Refresh Token์„ ๋ ˆ๋””์Šค ์„œ๋ฒ„์— ์ €์žฅํ•˜๊ณ  ์žˆ์—ˆ๋Š”๋ฐ ๋„์ปค๋ฅผ ์ค‘์ง€ํ•˜๊ณ  ๋ฉฐ์น  ๋’ค์— ๋‹ค์‹œ ์‹คํ–‰์„ ํ•ด๋ณธ ๊ฒฐ๊ณผ ์•„์ง ํ•ด๋‹น ํ† ํฐ๋“ค์ด ๋‚จ์•„์žˆ๋Š” ํ˜„์ƒ์„ ๋ฐœ๊ฒฌํ–ˆ๋‹ค. "์—ฅ? Redis๋Š” InMemory DB๋กœ ์ข…๋ฃŒ๋˜๋ฉด ๋ฉ”๋ชจ๋ฆฌ๊ฐ€ ๋ชจ๋‘ ํœ˜๋ฐœ๋˜์–ด ๋ฐ์ดํ„ฐ๊ฐ€ ์—†๋Š”๊ฒŒ ๋งž์ง€ ์•Š๋‚˜?" ์ด๋Ÿฌํ•œ ์ƒ๊ฐ์„ ๊ฐ€์ง€๊ฒŒ ๋˜์—ˆ๊ณ , Redis์˜ ๋ฐฑ์—…์— ๊ด€๋ จ๋œ ๋‚ด์šฉ์„ ๊ณต๋ถ€ํ•˜์ž ํ•ด๋‹น ์‹ค๋งˆ๋ฆฌ๋ฅผ ํ’€์–ด๋‚ผ ์ˆ˜ ์žˆ์—ˆ๋‹ค. ๐Ÿค” 1. Redis์˜ ๋ฐฑ์—… ๋ฐฉ์‹ 1-1. RDB(Redis DataBase ๋ฐฉ์‹) ์—ฌ๊ธฐ์„œ RDB๋Š” ๊ด€๊ณ„ํ˜• ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๊ฐ€ ์•„๋‹ˆ๋ผ, Redis์˜ ์ž์ฒด์ ์ธ ๋ฐฑ์—… ๋ฐฉ์‹์ธ Redis Database ๋ฐฉ์‹์„..