r/leetcode • u/Dependent-Profile426 • Dec 02 '25
Question PayPal Interview Experience | System Design | Sr Software Engineer
Question
Design a notification service.
While solving the problem, for idempotency handling, I have used even-driven architecture.
The solution that I gave is publishing the messages in Kafka, and processing the messages through Flink. So that unique message gets processed exactly once, with respect to the idempotent id.
Interviewer's (Staff Software Engineer) comments
- There is no way to handle idempotency using event driven architecture.
- He was expecting solution with Redis. (Synchronous write-through caching)
I did some research, my solution is working and much-more scalable in case of burst traffic and bust notification.
I got rejected.
Was I correct?
88
Upvotes
View all comments
Show parent comment
0
u/NewEducator8402 Dec 10 '25 edited Dec 10 '25
This solution does not work. A side effect is an action that has a real and irreversible impact outside your program.
The real problem here is synchronized deduplication at the time of the side effect.
The solution he proposes is over-engineered for the problem.
Kafka + Flink:
✅ Highly scalable.
✅ Excellent for massive streaming.
❌ Poor response to business idempotence --> this is the issue to be resolved.
❌ Enormous cognitive cost.
❌ Operational complexity.
❌ High risk in production.