Skip to content
coding_egg edited this page Nov 11, 2021 · 1 revision

client ์ƒํƒœ ๊ด€๋ฆฌ

  • recoil(atom, selector)
    • ๋กœ๊ทธ์ธ๋œ ์œ ์ €์˜ ์ƒํƒœ ๊ด€๋ฆฌ(์œ ์ € ๋ช…, ํ”„๋กœํ•„ ์ด๋ฏธ์ง€)
    • atom, recoilState

server ์ƒํƒœ ๊ด€๋ฆฌ

  • react query
    • useQuery
    • useMutation
      • ์„œ๋ฒ„์˜ ๋ฐ์ดํ„ฐ๋ฅผ ๋ฐ”๊ฟ€ ์ˆ˜ ์žˆ๋Š” ์š”์ฒญ

์ธ์ฆ ์ถ”์ƒํ™”(passport)

  • jwtํ† ํฐ ์ •์ฑ…์„ ํ†ตํ•ด ์‚ฌ์šฉ์ž ์ธ์ฆ

    • ํšŒ์›๊ฐ€์ž…๊นŒ์ง€ ์ง„ํ–‰ํ•œ ์œ ์ € ์ธ์ฆ ์ •์ฑ…
    • ํšŒ์›๊ฐ€์ž…์€ ํ•˜์ง€ ์•Š์€ ์œ ์ € ์ธ์ฆ ์ •์ฑ…
  • Oauth ๋ฅผ ํ†ตํ•ด Socials ์—ฐ๋™

    • Google
    • GitHub
    • Tistory
    • (Kakao)

mongoDB

  • ๋ฐ์ดํ„ฐ ๋ชจ๋ธ๋ง

    • ์ž„๋ฒ ๋“œ ๋ฐฉ์‹ ๊ด€๊ณ„๋ฅผ ๊ฐ–๋Š” ๋ฐ์ดํ„ฐ ์ง‘ํ•ฉ์„ ๋‹จ์ผ ๋„ํ๋จผํŠธ์— ํฌํ•จํ•˜์—ฌ ์ €์žฅํ•˜๋Š” ๋ฐฉ์‹

    • ๋ ˆํผ๋Ÿฐ์Šค ๋ฐฉ์‹ ๋„ํ๋จผํŠธ์— ๊ด€๊ณ„๋ฅผ ๊ฐ–๋Š” ๋‹ค๋ฅธ ๋„ํ๋จผํŠธ์˜ ์‹๋ณ„์ž๋ฅผ ์ฐธ์กฐํ‚ค

  • Multi-Key index๋ฅผ ํ†ตํ•œ ํƒœ๊ทธ ์ž๋™ ์™„์„ฑ

    • ์ดˆ์„ฑ / ์ดˆ์„ฑ+์ค‘์„ฑ+์ข…์„ฑ์˜ ํƒœ๊ทธ ๊ธฐ๋ฐ˜ ๊ฒ€์ƒ‰ ํšจ์œจ ํ–ฅ์ƒ

      • ํ•˜๋‚˜์˜ Query ์—์„œ ๋‘๊ฐœ ์ด์ƒ์˜ Index ๋ฅผ ์ ์šฉํ•˜๋Š” ๋ฐฉ์‹ $or ์‚ฌ์šฉ

      When evaluating the clauses in the $or expression, MongoDB either performs a collection scan or, if all the clauses are supported by indexes, MongoDB performs index scans. That is, for MongoDB to use indexes to evaluate an $or expression, all the clauses in the $or expression must be supported by indexes. Otherwise, MongoDB will perform a collection scan.

      • MongoDB Index ๋Š” $regex(like) ์—ฐ์‚ฐ ์—ญ์‹œ index ๊ฐ€ ์ ์šฉ

      For case sensitive regular expression queries, if an index exists for the field, then MongoDB matches the regular expression against the values in the index, which can be faster than a collection scan. Further optimization can occur if the regular expression is a "prefix expression", which means that all potential matches start with the same string. This allows MongoDB to construct a "range" from that prefix and only match against those values from the index that fall within that range.

  • Validate

    • Reference Object ID ์œ ํšจ์„ฑ ๊ฒ€์‚ฌํ•˜๋Š” Validator
    • ์œ ํšจํ•œ URL ์„ ๊ฒ€์‚ฌํ•˜๋Š” Validator
    • ์œ ํšจํ•œ Email ์„ ๊ฒ€์‚ฌํ•˜๋Š” Validator
    • ์ˆซ์ž์˜ ์ž๋ฆฟ์ˆ˜๋ฅผ ๊ฒ€์‚ฌํ•˜๋Š” Validator
    • ๋ฌธ์ž์—ด์˜ ๊ธธ์ด๋ฅผ ๊ฒ€์‚ฌํ•˜๋Š” Validator

ํŒ€

๊ฐœ๋ฐœ
๋ฐ๋ชจ
์Šคํฌ๋Ÿผ
์Šคํ”„๋ฆฐํŠธ
ํ”ผ์–ด์„ธ์…˜
ํšŒ๊ณ ๋ก
Clone this wiki locally