Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Asynchronous Event Processing System

"Now imagine you're building a logistics platform where thousands of tracking events arrive every minute like a delivery moves, a package gets scanned, status changes and all of that needs processing. Now the obvious approach over here is receiving each event through an API and immediately writing it to the database. But what happens when 10,000 events arrive at the same time?"

"Now if every request waits for the database rights to finish before responding to the user, your application will slow down and eventually falls over. This is where asynchronous processing helps. Instead of doing all the work while user waits, your API will accept the event puts it through a message queue like Rabbit MQ or Kafka and background workers will process those messages independently."

"But here's where it becomes an actual project rather than just a tutorial. What happens when a worker fails? Say a message contains some sort of corrupt data or a downstream service times out. You don't want that message to vanish, but you also don't want one broken message blocking everything behind it. So what you do is you build a retry logic and after a message fails through enough number of times, you move it to a dead letter queue for separate inspection."

"You can even simulate these failures yourself like worer crashes timeouts, malformed events and see if your system behaves as designed"

node + messaging system (RabbitMQ or Kafka) -> decision.

"Now, one thing I want to be clear about, don't just add Kafka to the project because you saw it in the job description. The valuable part is explaining why you choose a particular messaging system."

=> think what's the first thing that could realistically fail in it ? that's where a normal project becomming feel like an engineering project.

mujhe is project ko detail me simple terms me hinglish me samjhao and also clearly mention problem statement, solution, usp, tech stack target user .

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors