Git Product home page Git Product logo

dangledangle-server's People

Contributors

algosipdahack avatar ktj1997 avatar rilac1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

algosipdahack

dangledangle-server's Issues

๋ด‰์‚ฌ ์ด๋ฒคํŠธ ์ˆ˜์ • ๋ฐ ์‚ญ์ œ์— ๋”ฐ๋ฅธ Event ๋ฐœํ–‰

ํ•„์š” ์ด์œ 

  • ๋ด‰์‚ฌ ์ด๋ฒคํŠธ ์ˆ˜์ •, ์‚ญ์ œ ๋“ฑ์˜ ์ด๋ฒคํŠธ ๋ฐœ์ƒ ์‹œ Kakao ์•Œ๋ฆผํ†ก ๋ฐœ์ƒ์ด ํ•„์š”ํ•˜๋‹ค.
  • ํŠธ๋žœ์žญ์…˜์œผ๋กœ ๋ฌถ๋Š”๊ฒƒ์€ ์ข‹์€ ๋ฐฉ๋ฒ•์ด ์•„๋‹ˆ๋‹ค.

์ž‘์—… ํ•„์š”์‚ฌํ•ญ

  1. ๊ธฐ์กด์˜ ๋ด‰์‚ฌ์ด๋ฒคํŠธ ์‚ญ์ œ ์‹œ ๋ฐ”๋กœ DB์‚ญ์ œ๋ฅผ ์ง„ํ–‰ํ–ˆ์ง€๋งŒ SoftDelete๋กœ์˜ ๋ณ€๊ฒฝ์ด ํ•„์š”ํ•˜๋‹ค.
  2. ๋ด‰์‚ฌ ์ด๋ฒคํŠธ ์กฐํšŒ API์˜ ๋ชจ๋“  ์กฐ๊ฑด์— SoftDelete์กฐ๊ฑด ์ถ”๊ฐ€์— ๋”ฐ๋ฅธ Where์ ˆ ์กฐ๊ฑด ์ˆ˜์ •์ด ํ•„์š”ํ•˜๋‹ค.
  3. Event๋ฐœ์ƒ์— ๋”ฐ๋ฅธ ๋ณ„๋„์˜ ์ถ”๊ฐ€์ ์ธ Producer, Consumer๊ฐ€ ํ•„์š”ํ•˜๋‹ค. (Producer๋Š” ํŠธ๋ž˜ํ”ฝ์ด์—†์œผ๋ฏ€๋กœ API์— ๋ฌผ๋ ค์„œ ์‚ฌ์šฉ)
  4. API์— Scheudler๋ฅผ ๋‘์–ด, OutBox Pattern ์‚ฌ์šฉ์—๋”ฐ๋ฅธ ์ฃผ๊ธฐ์ ์ธ Produce์ˆ˜ํ–‰
  5. Consumer์€ ๋ณ„๋„๋กœ ๊ตฌ์„ฑํ•˜์—ฌ, Event๋ฅผ Consume(Event์ƒํƒœ๋ณ€๊ฒฝ) + Kakao ์•Œ๋ฆผํ†ก ๋ฐœ์†ก์˜ ์—ญํ• ์„ ์ˆ˜ํ–‰

๊ณ ๋ ค์‚ฌํ•ญ

  1. ๊ตณ์ด ์˜ค๋ฒ„์ŠคํŽ™์ด๋ผ ์ƒ๊ฐํ•˜๋ฉด ๊ฑ ๋‚ด๋ถ€์ ์œผ๋กœ Async ์ˆ˜ํ–‰

ํšŒ์›๊ฐ€์ž… Flow ์ˆ˜์ •

๋ฌธ์ œ ์ƒํ™ฉ

  • oAuth์‹œ, ๋น„ํšŒ์›์˜ ๊ฒฝ์šฐ ๋ณ„๋„์˜ ํšŒ์›๊ฐ€์ž… ์ ˆ์ฐจ๋ฅผ ๊ฐ€์ง€๊ฒŒ ๋จ
  • Email, ๋‹‰๋„ค์ž„, ํ•ธ๋“œํฐ๋ฒˆํ˜ธ ๋“ฑ์„ ๋ฐ›๋Š”๋ฐ, API Call๋กœ ๊ฐ€๋Šฅ (๋ณ„๋„์˜ ๊ฒ€์ฆ ์ ˆ์ฐจ ์—†์ด)

๊ฐœ์„ ๋ฐฉ์•ˆ(?)

  • oAuth ์ธ์ฆ ํ›„, Redis์— 5๋ถ„์ •๋„์˜ ๊ฐ„๊ฒฉ์œผ๋กœ, Email์„ Key๊ฐ’์œผ๋กœ ํ•œ ์ •๋ณด๋ฅผ ๊ฐ–๊ฒŒํ•จ (kakao identifier๊ฐ™์€๊ฒƒ๋„ value์— ์ €์žฅ)
  • Redis๋ฅผ ๋จผ์ € ๋’ค์ง€๊ณ , ์žˆ์„ ๋•Œ๋งŒ ์ •์ƒํšŒ์›๊ฐ€์ž… ์ง„ํ–‰ (์—†๋‹ค๋ฉด Exception Throw)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.