hellokitty-coding-club / LGTM-Backend

Looks good to me (LGTM) ์ฝ”๋“œ ๋ฆฌ๋ทฐ ๋งค์นญ ํ”Œ๋žซํผ Backend
11 stars 3 forks source link

user logging system : kafka producer & kafka consumer & MongoDB #91

Closed ray-yhc closed 1 year ago

ray-yhc commented 1 year ago

๐Ÿ“์š”์•ฝ

์œ ์ € ๋ฐ์ดํ„ฐ ๋กœ๊ทธ๋ฅผ ์ˆ˜์ง‘ํ•˜๊ธฐ ์œ„ํ•œ ์‹œ์Šคํ…œ์„ ๊ตฌ์ถ•ํ•˜์˜€์Šต๋‹ˆ๋‹ค

์œ ์—ฐํ•œ ๋กœ๊ทธ ์„ค๊ณ„๋ฅผ ์œ„ํ•ด์„œ, ๋กœ๊ทธ์˜ ํ…œํ”Œ๋ฆฟ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ •์˜ํ•˜์˜€์Šต๋‹ˆ๋‹ค.

{
    #  ๊ณตํ†ต property
    "eventLogName" : "missionClick",
    "screenName" : "home",
    "logVersion" : 2,
    # ...

    "logData" : {  # ๋กœ๊ทธ๋ณ„ ์ถ”๊ฐ€ property
        "periodDays" : 5,
        "missionPrice" : 20000,
        "techTags" : ["Android", "Bacnekd"]
             # ...
    }
}

ํ•ด๋‹น ๋กœ๊ทธ๋ฅผ kafka์—์„œ ์ˆ˜์ง‘ํ•œ ๋’ค, dynamoDB์— ์ €์žฅํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์ถ”ํ›„ dynamoDB์˜ ๋ฐ์ดํ„ฐ๋ฅผ ๋ถ„์„ํ•˜์—ฌ ์ง€ํ‘œ ๋ถ„์„ / A/B ํ…Œ์ŠคํŒ… / ๋Œ€์‹œ๋ณด๋“œ ๋“ฑ์œผ๋กœ ํ™œ์šฉํ•  ๊ณ„ํš์ž…๋‹ˆ๋‹ค.



๐Ÿ”ฅ์ž‘์—… ๋‚ด์šฉ



๐Ÿ“‹์ฐธ๊ณ  ์‚ฌํ•ญ



๐ŸŽฏ๊ด€๋ จ ์ด์Šˆ

์นดํ”„์นด ๋ธŒ๋กœ์ปค, ์ปจ์Šˆ๋จธ