Home [AWS Solution Architect] ElastiCache
Post
Cancel

[AWS Solution Architect] ElastiCache

ElastiCache

  • Introduction
  • Caching Comparison

Screen Shot 2022-01-31 at 2 17 38 PM Screen Shot 2022-01-31 at 2 18 38 PM Screen Shot 2022-01-31 at 2 19 43 PM Screen Shot 2022-01-31 at 2 21 17 PM


Screen Shot 2022-01-24 at 3 11 16 PM

  • ๊ฐ™์€ vpc์•ˆ์— ์žˆ๋Š” ๋ฆฌ์†Œ์Šค์—๋งŒ ์ ‘๊ทผ ๊ฐ€๋Šฅ
  • ๊ฑธ๋ฆฌ๋Š” ๋ถ€ํ•˜๋ฅผ ์ค„์ด๊ธฐ ์œ„ํ•ด์„œ ๋ฐ˜๋ณต๋˜๋Š” ์ฟผ๋ฆฌ๊ฐ€ ๋‚ ๋ ค์งˆ ๋•Œ, ๋งค๋ฒˆ DB์—์„œ ๊ฐ€์ ธ์˜ค๋Š” ๊ฒŒ ์•„๋‹ˆ๋ผ, ๊ฐ€์šด๋ฐ์— ElastiCache๋ฅผ ๋†“๊ณ  ๋™์ผํ•œ ์ฟผ๋ฆฌ๊ฐ€ ๋‚ ๋ ค์ง€๋Š” ๊ฒฝ์šฐ, ์ด์ „์— ๋™์ผํ•œ ์ฟผ๋ฆฌ์˜ ์บ์‹œ๊ฐ€ ์žˆ์œผ๋ฉด ๊ทธ ๊ฒฐ๊ณผ๋ฅผ ๋ณด๋‚ด์คŒ. ์—†์œผ๋ฉด DB๋กœ ๊ฐ€์„œ ๊ฒฐ๊ณผ๋ฅผ ๊ฐ€์ ธ์˜ด.

Screen Shot 2022-01-24 at 3 11 58 PM

  • Memcached
    • multi core๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ๋Š” ์‹œ์Šคํ…œ์—์„œ ๋น ๋ฅธ ์„ฑ๋Šฅ ์ œ๊ณต
    • ๊ธฐ๋Šฅ์€ ๋‹จ์ดํ•œ ๋Œ€์‹ , ์†๋„์™€ ์•ˆ์ •์„ฑ์ด ๋›ฐ์–ด๋‚จ
    • key-value๋งŒ ์ง€์›
  • Redis
    • ์ง€์†์„ฑ : rebootํ•˜๋”๋ผ๋„ ๋ฐ์ดํ„ฐ๊ฐ€ ๋‚จ์•„์žˆ์„ ์ˆ˜ ์žˆ์Œ
    • ์›์ž ์กฐ์ž‘ : ๋ฐ์ดํ„ฐ๋ฅผ ์—…๋ฐ์ดํŠธ ์‹œํ‚ฌ ๋•Œ
    • pub/sub ๊ธฐ๋Šฅ์œผ๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ๋ฉ”์„ธ์ง€๋กœ ๋ณด๋ƒ„
    • ํด๋Ÿฌ์Šคํ„ฐ ๋ชจ๋“œ : ์—ฌ๋Ÿฌ๊ฐœ์˜ shard์— ๋ฐ์ดํ„ฐ๊ฐ€ ์ค‘๋ณต๋˜์–ด์„œ ์ €์žฅ๋˜๊ฒŒ ํ•ด์„œ high durability, performance

Screen Shot 2022-01-24 at 3 15 21 PM

  • Answer : b, c

Screen Shot 2022-01-31 at 2 05 48 PM

  • caching
    ์ผ๋ฐ˜์ ์œผ๋กœ RAM(Random Access Memory)๊ณผ ๊ฐ™์ด ๋น ๋ฅด๊ฒŒ ์•ก์„ธ์Šคํ•  ์ˆ˜ ์žˆ๋Š” ํ•˜๋“œ์›จ์–ด์— ์ €์žฅ
  • ์บ์‹œ ๊ณ„์ธต์„ ๊ตฌํ˜„ํ•  ๋•Œ๋Š” ์บ์‹ฑ๋˜๋Š” ๋ฐ์ดํ„ฐ์˜ ์œ ํšจ์„ฑ์„ ์ดํ•ดํ•˜๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•ฉ๋‹ˆ๋‹ค. ์„ฑ๊ณต์ ์ธ ์บ์‹œ๋Š” ๋†’์€ ์ ์ค‘๋ฅ ๋กœ ์ด์–ด์ง‘๋‹ˆ๋‹ค. ์ฆ‰, ๊ฐ€์ ธ์˜จ ๋ฐ์ดํ„ฐ๊ฐ€ ์บ์‹œ์— ์กด์žฌํ•ฉ๋‹ˆ๋‹ค. ๊ฐ€์ ธ์˜จ ๋ฐ์ดํ„ฐ๊ฐ€ ์บ์‹œ์— ์กด์žฌํ•˜์ง€ ์•Š์„ ๋•Œ ์บ์‹œ ๋น„์ ์ค‘์ด ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.
    • TTL(Time To Live)๊ณผ ๊ฐ™์€ ์ œ์–ด ํ•ญ๋ชฉ์„ ์ ์šฉํ•˜์—ฌ ์ด์— ๋”ฐ๋ผ ๋ฐ์ดํ„ฐ๋ฅผ ๋งŒ๋ฃŒ๋˜๋„๋ก ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • ๋‹ค๋ฅธ ๊ณ ๋ ค ์‚ฌํ•ญ์€ ์บ์‹œ ํ™˜๊ฒฝ์ด ๊ณ ๊ฐ€์šฉ์„ฑ์ด์–ด์•ผ ํ•  ํ•„์š”๊ฐ€ ์žˆ๋Š”์ง€ ์—ฌ๋ถ€์ธ๋ฐ,
    • ์ด๋Š” Redis์™€ ๊ฐ™์€ ์ธ ๋ฉ”๋ชจ๋ฆฌ ์—”์ง„์„ ์‚ฌ์šฉํ•˜์—ฌ ์ถฉ์กฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    • ๊ธฐ๋ณธ ์œ„์น˜์—์„œ ๋ฐ์ดํ„ฐ๋ฅผ ์บ์‹ฑํ•˜๋Š” ๊ฒƒ๊ณผ๋Š” ๋‹ฌ๋ฆฌ, ๊ฒฝ์šฐ์— ๋”ฐ๋ผ ์ธ ๋ฉ”๋ชจ๋ฆฌ ๊ณ„์ธต์„ ๋…๋ฆฝํ˜• ๋ฐ์ดํ„ฐ ์Šคํ† ๋ฆฌ์ง€ ๊ณ„์ธต์œผ๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ์‹œ๋‚˜๋ฆฌ์˜ค์—์„œ๋Š” ์ธ ๋ฉ”๋ชจ๋ฆฌ ์—”์ง„์— ์ƒ์ฃผํ•˜๋Š” ๋ฐ์ดํ„ฐ์— ๋Œ€ํ•ด ์ ์ ˆํ•œ RTO(๋ณต๊ตฌ ๋ชฉํ‘œ ์‹œ๊ฐ„ โ€“ ๊ฐ€๋™ ์ค‘๋‹จ์œผ๋กœ๋ถ€ํ„ฐ ๋ณต๊ตฌํ•˜๋Š” ๋ฐ ๊ฑธ๋ฆฌ๋Š” ์‹œ๊ฐ„)์™€ RPO(๋ชฉํ‘œ ๋ณต๊ตฌ ์‹œ์  โ€“ ๋ณต๊ตฌ ์‹œ ์บก์ฒ˜๋œ ์ตœ์ข… ์‹œ์  ๋˜๋Š” ํŠธ๋žœ์žญ์…˜)๋ฅผ ์ •์˜ํ•˜์—ฌ ์ด๊ฒƒ์ด ์ ํ•ฉํ•œ์ง€๋ฅผ ํŒŒ์•…ํ•˜๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•ฉ๋‹ˆ๋‹ค. ๋‹ค๋ฅธ ์ธ ๋ฉ”๋ชจ๋ฆฌ ์—”์ง„์˜ ์„ค๊ณ„ ์ „๋žต ๋ฐ ํŠน์„ฑ๋“ค์„ ์ ์šฉํ•˜๋ฉด ๋Œ€๋ถ€๋ถ„์˜ RTO์™€ RPO ์š”๊ตฌ ์‚ฌํ•ญ์„ ์ถฉ์กฑ์‹œํ‚ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

** Reference : AWS https://aws.amazon.com/ko/caching/



Reference

AWS Certified Solutions Architect - Associate 2020 (PASS THE EXAM!), Youtube, uploaded by freeCodeCamp.org, 12/24/2019, https://www.youtube.com/watch?v=Ia-UEYYR44s

This post is licensed under CC BY 4.0 by the author.

[AWS Solution Architect] CloudFront

[AWS Solution Architect] High Availability

Comments powered by Disqus.