-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/#378 event driven architecture #379
Conversation
โฆProducer๋ฅผ ์ด์ฉํ ๋ฉ์์ง ๋ฐํ, ์ด๋ฒคํธ ๋ฐํ ๊ธฐ๋ก ๋ก์ง ๊ตฌํ
โฆtern ๊ตฌํ์ ์ํ ์ด๋ฒคํธ ์ ์ฅ ๋ก์ง ๊ตฌํ, ์ด๋ฒคํธ ๋ฐํ ๋ก์ง ๊ตฌํ
โฆ์ด๋ฒคํธ ๋ฐํ ๋ก์ง ๋ฆฌํฉํ ๋ง
โฆoducer๋ฅผ ์ด์ฉํ ๋ฉ์์ง ๋ฐํ, ์ด๋ฒคํธ ๋ฐํ ์ ๋ณด๋ฅผ ๊ธฐ๋กํ๋ ๋ก์ง ๊ตฌํ
โฆ ์ฌ์ฉํ CustomDeserializer ๊ตฌํ
โฆ๋น๋ฅผ ํ๊ธฐ ์ํ Event<?> ํ์ CustomDeserializer ์ค์ ์ถ๊ฐ ๋ฐ ๋ณ๊ฒฝ
โฆํธ ๋ฐํ ๊ธฐ๋ก ์ ์ฅ ๋ก์ง ์์
โฆ๋ฒคํธ์ ๋ํด ๋ณ๋์ ์ค๋ ๋์์ ์ฒ๋ฆฌํ๋๋ก @async ์ถ๊ฐ
โฆ๋ก ๋ก์ง ์์ , ์กฐํ์์ ๊ธฐ๋ฐํ TTL ์ฆ๊ฐ ๋ก์ง ๊ตฌํ, ๋๋น์์ ๋ฐ์ดํฐ๋ฅผ ๋ฏธ๋ฆฌ ์บ์ฑํ๋ CacheWarning ๋ก์ง ๊ตฌํ,
Test Results76 testsโโโ76 โ
โโ2s โฑ๏ธ Results for commit d25971d. โป๏ธ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Transaction OutBox ํจํด์ ์ ์ฉํ ์ด์ ๊ฐ ์์๊น์ ๊ถ๊ธํฉ๋๋ค!
๋๋ฉ์ธ ๋ก์ง๊ณผ ์นดํ์นด ๋ก์ง ์ฌ์ด์ ๋์จํ ๊ฒฐํฉ์ ์ํด Spring์์ ์ ๊ณตํ๋ Event๋ฅผ ์ฌ์ฉํ๋๋ฐ, ์ด๋ ์ด๋ฒคํธ ๋ฐํ๊ณผ ์ด๋ฒคํธ ์์ ์ด ์คํจํ์ ๊ฒฝ์ฐ์ ๋ํ ์์ธ ์ฒ๋ฆฌ๊ฐ ์คํ๋ง์์๋ ์ ๊ณต์ด ๋๊ณ ์์ง ์์ต๋๋ค! ์ฌ์ง์ด ์คํจํด๋ ์์ธ๊ฐ ์ ํ๋์ง๋ ์์ต๋๋ค,, ๊ทธ๋์ ํด๋น ํจํด์ ์ ์ฉํด์ ์ด๋ฒคํธ ๋ฐํ ์ ๋ณด๋ฅผ ๊ธฐ๋กํด๋๊ณ , ๋ฐํ์ด๋ ์์ ์ด ์คํจํ ์ด๋ฒคํธ๋ฅผ ๋ณ๋๋ก ์ฌ๋ฐํํด์ฃผ๋๋ก ํ๊ธฐ ์ํด ์ ์ฉํ์ต๋๋ค! |
๐ ๊ฐ๋ฐ ์ฌํญ
์ ์ ์ด๋ฒคํธ ์ํคํ ์ฒ ์ค๊ณ๋
config ํด๋์ค
KafkaProducerConfig
kafkaConsumerConfig
์ปค์คํ ๋ฉ์์ง ํ์ ์ ์ํ ์ญ์ง๋ ฌํ ํด๋์ค
CustomDeserializer
๋ฉ์์ง ์ค๋ณต ์ฒ๋ฆฌ ๋ฐฉ์ง๋ฅผ ์ํ ์ปดํฌ๋ํธ
Event<T>
MessageLog
DuplicateLogService
producer ยท consumer ์ปดํฌ๋ํธ
MessageProducer
AcheivementMessageConsumer
NotificationMessageConsumer
MailSender
EOS
๋ฅผ ์ํด ๋ฉฑ๋ฑ์ฑ์ ๋ณด์ฅ, transaction_id_prefix๋ฅผ ์ค์ ํจlog
๋ฅผ RDBMS์ ๋ณ๋๋ก ์ ์ฅํ๋๋ก ํ๊ณ , ์ค๋ณต ๊ฒ์ฌ ๋ฉ์ปค๋์ฆ์ ๊ตฌํํจTransactional Outbox Pattern ์ ์ฉ
OutboxEvent
OutboxProcessor
์ด๋ฒคํธ ํฌํผ ํด๋์ค
ProjectEventHelper
ReviewEventHelper
ProjectJoinRequestEventHelper
ProfileCardLikeEventHelper
NotificationEventHelper
์ด์ ๋ฒํธ
ํน์ด ์ฌํญ ๐ซถ
์ ์ ์ด๋ฒคํธ ์์คํ ์ํคํ ์ฒ๋ฅผ ์ค๊ณํ๋ ๊ณผ์ ์์, ์ปดํฌ๋ํธ๋ฅผ ๊ฐ๋ฐํ๊ณ ๋ฐ์ํ ์ ์๋ ์์ธ ์ํฉ์ ๋ํ ์ฒ๋ฆฌ ๊ณผ์ , ์๋ฌ ํธ๋ค๋ฌ ์ฒ๋ฆฌ ๋ฐฉ์ ๋ฑ ์์ธํ ๊ฐ๋ฐ ๊ณผ์ ์ ๋ค์ ๋งํฌ์์ ํ์ธํ ์ ์์ต๋๋ค!
A-Z๊น์ง ์ ์ ์ด๋ฒคํธ ์ํคํ ์ฒ ์ฌ์ค๊ณ ์ ๋ณต๊ธฐ
ํผ๋๋ฐฑ์ด๋ ๊ถ๊ธํ ์ ์ ๋ํด์๋ ๊ฐ๊ฐ์์ด ์ฝ๋ฉํธ ํด์ฃผ์ธ์~!๐๐ปโโ๏ธ