Skip to contentমূল লেখায় যান

Topic 34 · Courseটপিক 34 · Course

Event-Driven Architecture

A shop takes an order. Payment, stock, email, and delivery must all react. The order service could call each of them one by one, or it could shout "order placed" once and let each of them listen. The second way is an event-driven architecture.

6 min read6 মিনিটে পড়া যায় · 8 sections8টি সেকশন · 2 sources2টি সোর্স · updated Nov 2026আপডেট: Nov 2026

One event, many listenersএকটা ইভেন্ট, অনেক শ্রোতা

Publish “exam submitted” once and watch grading, email and report react. Then add a late listener and switch the model.“exam submitted” একবার পাবলিশ করুন আর দেখুন grading, email ও report সাড়া দেয়। তারপর দেরিতে আসা শ্রোতা যোগ করুন আর মডেল বদলান।

2 min2 মিনিট7 steps7টি ধাপ
  • Producer callsপ্রোডিউসারের কল3
  • Consumers doneকনজিউমার শেষ করেছে3 / 3
Examপরীক্ষাserviceসার্ভিস3 calls in turn3টা কল পরপরGradingগ্রেডিংcall 1কল 1Emailইমেইলcall 2কল 2Reportরিপোর্টcall 3কল 3

You’ll learnআপনি শিখবেন

  • Producer, router and consumerপ্রোডিউসার, রাউটার ও কনজিউমার
  • Why a producer needs one call, not manyপ্রোডিউসারের কেন একটাই কল লাগে
  • Why one failing service does not stop the restএকটা সার্ভিস ব্যর্থ হলে বাকিরা কেন থামে না
  • Pub/sub versus an event stream for a late listenerদেরিতে আসা শ্রোতার জন্য pub/sub বনাম ইভেন্ট স্ট্রিম
  • Why consumers should be idempotentকনজিউমার কেন আইডেমপটেন্ট হওয়া উচিত

In plain words

An event is a change in state, such as an item put in a shopping cart Source 2সোর্স 2. An event can carry the data (the item, its price, the address), or it can be only an identifier, such as a notice that an order shipped Source 2সোর্স 2.

An event-driven architecture has three parts Source 1সোর্স 1 Source 2সোর্স 2:

PartJob
Event producerCreates the events
Event router, broker, or channelMoves events from producers to consumers. AWS says the router filters events and pushes them to consumers Source 2সোর্স 2.
Event consumerListens for events and acts on them

Events arrive in near real time, so consumers can react at once Source 1সোর্স 1. A producer does not know which consumers listen, and consumers are decoupled from each other Source 1সোর্স 1. Because services know only the router and not each other, one service can fail while the others keep running Source 2সোর্স 2. Producers and consumers can be scaled, updated, and deployed on their own Source 2সোর্স 2.

সহজ English

An event is a change in state, such as an item put in a shopping cart Source 2সোর্স 2. An event can carry the data (the item, its price, the address). It can also be only an identifier, such as a notice that an order shipped Source 2সোর্স 2.

An event-driven architecture has three parts Source 1সোর্স 1 Source 2সোর্স 2:

  • The event producer creates the events.
  • The event router, broker, or channel moves events from producers to consumers. AWS says the router filters events and pushes them to consumers Source 2সোর্স 2.
  • The event consumer listens for events and acts on them.

Events arrive in near real time, so consumers can react at once Source 1সোর্স 1. A producer does not know which consumers listen. Consumers are decoupled from each other Source 1সোর্স 1. Services know only the router and not each other. So one service can fail while the others keep running Source 2সোর্স 2. Teams can scale, update, and deploy producers and consumers on their own Source 2সোর্স 2.

বাংলা ব্যাখ্যা

ইভেন্ট (event) হলো স্টেটের একটি পরিবর্তন, যেমন শপিং কার্টে একটি আইটেম রাখা Source 2সোর্স 2। একটি ইভেন্ট ডেটা বহন করতে পারে (আইটেম, তার দাম, ঠিকানা)। এটি শুধু একটি আইডেন্টিফায়ারও হতে পারে, যেমন একটি অর্ডার পাঠানো হয়েছে এমন নোটিশ Source 2সোর্স 2।

ইভেন্ট-ড্রিভেন আর্কিটেকচারের তিনটি অংশ Source 1সোর্স 1 Source 2সোর্স 2:

  • ইভেন্ট প্রোডিউসার (event producer) ইভেন্ট তৈরি করে।
  • ইভেন্ট রাউটার, ব্রোকার বা চ্যানেল (event router, broker, channel) ইভেন্টকে প্রোডিউসার থেকে কনজিউমারের কাছে নিয়ে যায়। AWS বলে, রাউটার ইভেন্ট ফিল্টার করে এবং কনজিউমারের কাছে পুশ করে Source 2সোর্স 2।
  • ইভেন্ট কনজিউমার (event consumer) ইভেন্ট শোনে এবং সে অনুযায়ী কাজ করে।

ইভেন্ট প্রায় রিয়েল টাইমে আসে, তাই কনজিউমার সাথে সাথে সাড়া দিতে পারে Source 1সোর্স 1। প্রোডিউসার জানে না কোন কনজিউমার শুনছে। কনজিউমাররা একে অপরের থেকে ডিকাপলড (decoupled) Source 1সোর্স 1। সার্ভিস শুধু রাউটারকে চেনে, একে অপরকে নয়। তাই একটি সার্ভিস ফেইল করলেও বাকিগুলো চলতে থাকে Source 2সোর্স 2। টিমগুলো প্রোডিউসার ও কনজিউমারকে নিজেরাই স্কেল, আপডেট ও ডিপ্লয় করতে পারে Source 2সোর্স 2।

When you need it

Azure lists these cases Source 1সোর্স 1:

  • Several subsystems must process the same events.
  • You need real-time processing with little delay.
  • You need to find patterns in events, for example over a time window.
  • Data comes in high volume and speed, as with IoT.
  • You want to decouple producers and consumers so each can scale and stay reliable on its own.

AWS names these uses: copying data between accounts and regions, watching resource state and sending alerts, sending one event to many systems at once (fanout), and joining systems that run on different stacks Source 2সোর্স 2.

The style may not fit when simple synchronous calls already meet your needs, when a business transaction needs strong consistency across services, or when the team has no experience with distributed asynchronous systems Source 1সোর্স 1.

সহজ English

Azure lists these cases Source 1সোর্স 1:

  • Several subsystems must process the same events.
  • You need real-time processing with little delay.
  • You need to find patterns in events, for example over a time window.
  • Data comes in high volume and speed, as with IoT.
  • You want to decouple producers and consumers. Then each can scale and stay reliable on its own.

AWS names these uses Source 2সোর্স 2:

  • Copying data between accounts and regions.
  • Watching resource state and sending alerts.
  • Sending one event to many systems at once (fanout).
  • Joining systems that run on different stacks.

The style may not fit in these cases Source 1সোর্স 1:

  • Simple synchronous calls already meet your needs.
  • A business transaction needs strong consistency across services.
  • The team has no experience with distributed asynchronous systems.

বাংলা ব্যাখ্যা

Azure এই ক্ষেত্রগুলো তালিকাভুক্ত করে Source 1সোর্স 1:

  • কয়েকটি সাবসিস্টেমকে একই ইভেন্ট প্রসেস করতে হয়।
  • কম দেরিতে রিয়েল টাইম প্রসেসিং দরকার।
  • ইভেন্টের মধ্যে প্যাটার্ন খুঁজতে হয়, যেমন একটি টাইম উইন্ডোর (time window) মধ্যে।
  • IoT-র মতো বেশি পরিমাণে ও দ্রুত গতিতে ডেটা আসে।
  • আপনি প্রোডিউসার ও কনজিউমারকে ডিকাপল করতে চান। তখন প্রতিটি নিজে স্কেল করতে ও নির্ভরযোগ্য থাকতে পারে।

AWS এই ব্যবহারগুলোর নাম দেয়: অ্যাকাউন্ট ও রিজিয়নের মধ্যে ডেটা কপি করা, রিসোর্সের স্টেট দেখা ও অ্যালার্ট পাঠানো, একটি ইভেন্ট একসাথে অনেক সিস্টেমে পাঠানো (ফ্যানআউট, fanout), এবং আলাদা স্ট্যাকে চলা সিস্টেম যুক্ত করা Source 2সোর্স 2।

এই ক্ষেত্রগুলোতে স্টাইলটি নাও মানাতে পারে Source 1সোর্স 1:

  • সহজ সিঙ্ক্রোনাস কলই আপনার প্রয়োজন মেটায়।
  • একটি বিজনেস ট্রানজেকশনের জন্য সার্ভিসগুলোর মধ্যে শক্তিশালী কনসিসটেন্সি দরকার।
  • টিমের ডিস্ট্রিবিউটেড অ্যাসিঙ্ক্রোনাস সিস্টেমের অভিজ্ঞতা নেই।

How it works

Two models. Azure describes two models for this style: publish-subscribe and event streaming Source 1সোর্স 1. A sibling page covers publish-subscribe in more detail.

  • In publish-subscribe, the infrastructure tracks subscriptions and sends each published event to every subscriber. The event is not kept in a durable log, so a new subscriber does not see past events Source 1সোর্স 1.
  • In event streaming, events go into a log. They are strictly ordered within a partition and they are durable. Clients do not subscribe. A client reads from any part of the stream and moves its own position, so it can join late and replay events Source 1সোর্স 1. Replay helps with recovery, late consumers, and reprocessing after a bug fix Source 1সোর্স 1.

Azure also contrasts this with the Competing Consumers pattern. There, consumers pull messages from a queue, and each message is processed one time if there are no errors Source 1সোর্স 1.

Router types. AWS says there are two main kinds of router: event buses and event topics Source 2সোর্স 2. A router is also a central place to audit the system and to set policies about who may publish and subscribe. Events can be encrypted in transit and at rest Source 2সোর্স 2.

Two topologies. In a broker topology, components broadcast events, and others act on them or ignore them. This suits simple flows and has no central control. No component owns the state of a multistep transaction, and there is no built-in way to restart or replay one Source 1সোর্স 1. In a mediator topology, an event mediator manages the flow, keeps state, and handles errors and restarts. It gives more control, but it adds coupling and can become a bottleneck Source 1সোর্স 1.

সহজ English

Two models. Azure describes two models for this style: publish-subscribe and event streaming Source 1সোর্স 1. A sibling page covers publish-subscribe in more detail.

  • In publish-subscribe, the infrastructure tracks subscriptions and sends each published event to every subscriber. The event is not kept in a durable log. So a new subscriber does not see past events Source 1সোর্স 1.
  • In event streaming, events go into a log. They are strictly ordered within a partition and they are durable. Clients do not subscribe. A client reads from any part of the stream and moves its own position. So it can join late and replay events Source 1সোর্স 1. Replay helps with recovery, late consumers, and reprocessing after a bug fix Source 1সোর্স 1.

Azure also contrasts this with the Competing Consumers pattern. There, consumers pull messages from a queue. Each message is processed one time if there are no errors Source 1সোর্স 1.

Router types. AWS says there are two main kinds of router: event buses and event topics Source 2সোর্স 2. A router is also a central place to audit the system and to set policies about who may publish and subscribe. Events can be encrypted in transit and at rest Source 2সোর্স 2.

Two topologies. In a broker topology, components broadcast events. Other components act on them or ignore them. This suits simple flows and has no central control. No component owns the state of a multistep transaction. There is no built-in way to restart or replay one Source 1সোর্স 1. In a mediator topology, an event mediator manages the flow, keeps state, and handles errors and restarts. It gives more control. But it adds coupling and can become a bottleneck Source 1সোর্স 1.

বাংলা ব্যাখ্যা

দুটি মডেল। Azure এই স্টাইলের জন্য দুটি মডেল বর্ণনা করে: পাবলিশ-সাবস্ক্রাইব (publish-subscribe) এবং ইভেন্ট স্ট্রিমিং (event streaming) Source 1সোর্স 1। পাশের একটি পাতা publish-subscribe আরও বিস্তারিত বলে।

  • পাবলিশ-সাবস্ক্রাইবে ইনফ্রাস্ট্রাকচার সাবস্ক্রিপশন ট্র্যাক করে এবং প্রতিটি পাবলিশ করা ইভেন্ট সব সাবস্ক্রাইবারের কাছে পাঠায়। ইভেন্ট কোনো টেকসই লগে (durable log) রাখা হয় না। তাই নতুন সাবস্ক্রাইবার আগের ইভেন্ট দেখে না Source 1সোর্স 1।
  • ইভেন্ট স্ট্রিমিংয়ে ইভেন্ট একটি লগে যায়। এগুলো একটি পার্টিশনের মধ্যে কঠোরভাবে ক্রমানুযায়ী থাকে এবং টেকসই হয়। ক্লায়েন্ট সাবস্ক্রাইব করে না। ক্লায়েন্ট স্ট্রিমের যেকোনো অংশ থেকে পড়ে এবং নিজের অবস্থান নিজে সরায়। তাই সে দেরিতে যোগ দিতে এবং ইভেন্ট রিপ্লে (replay) করতে পারে Source 1সোর্স 1। রিপ্লে রিকভারি, দেরিতে আসা কনজিউমার এবং বাগ ঠিক করার পর আবার প্রসেস করতে সাহায্য করে Source 1সোর্স 1।

Azure এটিকে Competing Consumers প্যাটার্নের সাথেও তুলনা করে। সেখানে কনজিউমাররা একটি কিউ থেকে মেসেজ টেনে নেয়। কোনো এরর না হলে প্রতিটি মেসেজ একবার প্রসেস হয় Source 1সোর্স 1।

রাউটারের ধরন। AWS বলে, রাউটারের দুটি প্রধান ধরন আছে: ইভেন্ট বাস (event bus) এবং ইভেন্ট টপিক (event topic) Source 2সোর্স 2। রাউটার হলো সিস্টেম অডিট করার এবং কে পাবলিশ ও সাবস্ক্রাইব করতে পারবে সেই পলিসি ঠিক করার একটি কেন্দ্রীয় জায়গাও। ইভেন্ট ট্রানজিটে এবং স্টোরেজে এনক্রিপ্ট করা যায় Source 2সোর্স 2।

দুটি টপোলজি। ব্রোকার টপোলজিতে (broker topology) কম্পোনেন্ট ইভেন্ট ব্রডকাস্ট করে। অন্য কম্পোনেন্ট সেগুলোতে সাড়া দেয় বা উপেক্ষা করে। এটি সহজ ফ্লোর জন্য মানানসই এবং এতে কোনো কেন্দ্রীয় নিয়ন্ত্রণ নেই। কোনো কম্পোনেন্ট একাধিক ধাপের ট্রানজেকশনের স্টেটের মালিক নয়। একটি ট্রানজেকশন রিস্টার্ট বা রিপ্লে করার কোনো বিল্ট-ইন উপায় নেই Source 1সোর্স 1। মিডিয়েটর টপোলজিতে (mediator topology) একটি ইভেন্ট মিডিয়েটর ফ্লো পরিচালনা করে, স্টেট রাখে এবং এরর ও রিস্টার্ট সামলায়। এটি বেশি নিয়ন্ত্রণ দেয়। কিন্তু কাপলিং বাড়ায় এবং বটলনেক হয়ে উঠতে পারে Source 1সোর্স 1।

Challenges

These are the challenges that Azure and AWS state.

  • Guaranteed delivery. In some systems, especially IoT, you must be sure that events are delivered Source 1সোর্স 1. AWS says the event source should guarantee delivery if you must process every event Source 2সোর্স 2.
  • Order and one-time processing. Consumers usually run as many instances. This can cause trouble if events need processing in order, or the processing logic is not idempotent Source 1সোর্স 1. Azure adds that exactly-once semantics can be a challenge too Source 1সোর্স 1. To rebuild state, AWS says the event source should be deduplicated and ordered Source 2সোর্স 2.
  • Data loss. If a component crashes before it hands the event on, the event is dropped. Azure advises you to keep in-transit events and remove them only after the next component confirms receipt Source 1সোর্স 1.
  • Eventual consistency. Data is not at once the same everywhere after an event. For a time, parts of the system see different state, so consumers must tolerate stale data Source 1সোর্স 1.
  • Error handling. One option is an error-handler processor. It tries to fix a bad event and resend it, or it sends the event on to a dead-letter queue (DLQ), where an administrator can inspect it. Resent events are processed out of sequence Source 1সোর্স 1.
  • Seeing the flow. There is no shared call context, so Azure advises a correlation ID in every event. It also says that end-to-end testing needs more deliberate strategies Source 1সোর্স 1. AWS adds that you can track the flow by monitoring, not by static code analysis Source 2সোর্স 2.

সহজ English

These are the challenges that Azure and AWS state.

  • Guaranteed delivery. In some systems, especially IoT, you must be sure that events are delivered Source 1সোর্স 1. AWS says the event source should guarantee delivery if you must process every event Source 2সোর্স 2.
  • Order and one-time processing. Consumers usually run as many instances. This can cause trouble if events need processing in order, or if the processing logic is not idempotent Source 1সোর্স 1. Azure adds that exactly-once semantics can be a challenge too Source 1সোর্স 1. To rebuild state, AWS says the event source should be deduplicated and ordered Source 2সোর্স 2.
  • Data loss. If a component crashes before it hands the event on, the event is dropped. Azure advises you to keep in-transit events. Remove them only after the next component confirms receipt Source 1সোর্স 1.
  • Eventual consistency. Data is not at once the same everywhere after an event. For a time, parts of the system see different state. So consumers must tolerate stale data Source 1সোর্স 1.
  • Error handling. One option is an error-handler processor. It tries to fix a bad event and resend it. Or it sends the event on to a dead-letter queue (DLQ), where an administrator can inspect it. Resent events are processed out of sequence Source 1সোর্স 1.
  • Seeing the flow. There is no shared call context, so Azure advises a correlation ID in every event. It also says that end-to-end testing needs more deliberate strategies Source 1সোর্স 1. AWS adds that you can track the flow by monitoring, not by static code analysis Source 2সোর্স 2.

বাংলা ব্যাখ্যা

Azure ও AWS এই চ্যালেঞ্জগুলোর কথা বলে।

  • গ্যারান্টিযুক্ত ডেলিভারি (guaranteed delivery)। কিছু সিস্টেমে, বিশেষ করে IoT-তে, ইভেন্ট যে পৌঁছেছে তা নিশ্চিত হতে হয় Source 1সোর্স 1। AWS বলে, প্রতিটি ইভেন্ট প্রসেস করতে হলে ইভেন্ট সোর্সের ডেলিভারি গ্যারান্টি করা উচিত Source 2সোর্স 2।
  • ক্রম এবং একবার প্রসেস করা। কনজিউমার সাধারণত অনেক ইনস্ট্যান্স হিসেবে চলে। ইভেন্ট ক্রমানুযায়ী প্রসেস করতে হলে, বা প্রসেসিং লজিক আইডেমপটেন্ট (idempotent) না হলে, এতে সমস্যা হতে পারে Source 1সোর্স 1। Azure যোগ করে, এক্সাক্টলি-ওয়ান্স (exactly-once) সেম্যান্টিক্সও একটি চ্যালেঞ্জ হতে পারে Source 1সোর্স 1। স্টেট আবার তৈরি করতে AWS বলে, ইভেন্ট সোর্স ডিডুপ্লিকেটেড ও ক্রমানুযায়ী হওয়া উচিত Source 2সোর্স 2।
  • ডেটা লস। কোনো কম্পোনেন্ট ইভেন্ট এগিয়ে দেওয়ার আগে ক্র্যাশ করলে ইভেন্ট হারিয়ে যায়। Azure পরামর্শ দেয়, ট্রানজিটে থাকা ইভেন্ট রেখে দিন। পরের কম্পোনেন্ট প্রাপ্তি নিশ্চিত করলে তবেই সেগুলো সরান Source 1সোর্স 1।
  • ইভেন্চুয়াল কনসিসটেন্সি। ইভেন্টের পর ডেটা সাথে সাথে সব জায়গায় এক হয় না। কিছু সময় সিস্টেমের বিভিন্ন অংশ ভিন্ন স্টেট দেখে। তাই কনজিউমারকে পুরোনো (stale) ডেটা মেনে নিতে হয় Source 1সোর্স 1।
  • এরর হ্যান্ডলিং। একটি উপায় হলো এরর-হ্যান্ডলার প্রসেসর। সেটি খারাপ ইভেন্ট ঠিক করে আবার পাঠানোর চেষ্টা করে। অথবা ইভেন্টটিকে একটি ডেড-লেটার কিউতে (dead-letter queue, DLQ) পাঠায়, যেখানে অ্যাডমিনিস্ট্রেটর সেটি পরীক্ষা করতে পারে। আবার পাঠানো ইভেন্ট ক্রমের বাইরে প্রসেস হয় Source 1সোর্স 1।
  • ফ্লো দেখা। কোনো শেয়ার করা কল কনটেক্সট নেই, তাই Azure প্রতিটি ইভেন্টে একটি কোরিলেশন ID (correlation ID) রাখার পরামর্শ দেয়। এটি আরও বলে, এন্ড-টু-এন্ড টেস্টিংয়ের জন্য আরও সুচিন্তিত কৌশল দরকার Source 1সোর্স 1। AWS যোগ করে, আপনি মনিটরিং দিয়ে ফ্লো ট্র্যাক করতে পারেন, স্ট্যাটিক কোড অ্যানালাইসিস দিয়ে নয় Source 2সোর্স 2।

A real-life example

This example is the tutorial's own. An online exam platform publishes an event "exam submitted". The grading service, the email service, and the report service each listen for it. If the email service is down, grading still runs. A new "certificate" service can start listening later, and the exam service does not change.

The cost is that the certificate may appear a few seconds after the grade. Each part sees the event at its own time.

সহজ English

This example is the tutorial's own. An online exam platform publishes an event "exam submitted". The grading service, the email service, and the report service each listen for it. If the email service is down, grading still runs. A new "certificate" service can start listening later. The exam service does not change.

The cost is that the certificate may appear a few seconds after the grade. Each part sees the event at its own time.

বাংলা ব্যাখ্যা

এই উদাহরণটি টিউটোরিয়ালের নিজের। একটি অনলাইন পরীক্ষার প্ল্যাটফর্ম "exam submitted" নামে একটি ইভেন্ট পাবলিশ করে। গ্রেডিং সার্ভিস, ইমেইল সার্ভিস এবং রিপোর্ট সার্ভিস প্রত্যেকে সেটি শোনে। ইমেইল সার্ভিস বন্ধ থাকলেও গ্রেডিং চলে। একটি নতুন "certificate" সার্ভিস পরে শোনা শুরু করতে পারে। পরীক্ষার সার্ভিস বদলায় না।

এর খরচ হলো, সার্টিফিকেট গ্রেডের কয়েক সেকেন্ড পরে দেখা যেতে পারে। প্রতিটি অংশ নিজের সময়ে ইভেন্ট দেখে।

Common mistakes

  • Assuming one global order. Several consumer instances may process events in a different order Source 1সোর্স 1.
  • Treating "delivered" as "processed". A crash between receive and hand-over can drop an event Source 1সোর্স 1.
  • Using it for every call. Simple request-response flows may not justify the extra operating work Source 1সোর্স 1.
  • Putting private data in events. In a publish-subscribe model every consumer sees all of the events Source 1সোর্স 1, so a consumer that should not see the data still receives it. (The tutorial's own advice.)

সহজ English

  • Assuming one global order. Several consumer instances may process events in a different order Source 1সোর্স 1.
  • Treating "delivered" as "processed". A crash between receive and hand-over can drop an event Source 1সোর্স 1.
  • Using it for every call. Simple request-response flows may not justify the extra operating work Source 1সোর্স 1.
  • Putting private data in events. In a publish-subscribe model every consumer sees all of the events Source 1সোর্স 1, so a consumer that should not see the data still receives it. (The tutorial's own advice.)

বাংলা ব্যাখ্যা

  • একটি গ্লোবাল ক্রম ধরে নেওয়া। কয়েকটি কনজিউমার ইনস্ট্যান্স ভিন্ন ক্রমে ইভেন্ট প্রসেস করতে পারে Source 1সোর্স 1।
  • "delivered"-কে "processed" মনে করা। গ্রহণ ও হস্তান্তরের মাঝে ক্র্যাশ হলে একটি ইভেন্ট হারিয়ে যেতে পারে Source 1সোর্স 1।
  • প্রতিটি কলে এটি ব্যবহার করা। সহজ রিকুয়েস্ট-রেসপন্স ফ্লোর জন্য বাড়তি পরিচালনার কাজ ন্যায্য নাও হতে পারে Source 1সোর্স 1।
  • ইভেন্টে ব্যক্তিগত ডেটা রাখা। পাবসাব মডেলে প্রতিটি কনজিউমার সব ইভেন্ট দেখে Source 1সোর্স 1, তাই যে কনজিউমারের ডেটা দেখার কথা নয় সেও সেটি পায়। (টিউটোরিয়ালের নিজের পরামর্শ।)

What a tester can check

Tutorial advice

These test ideas are the tutorial's own advice, not a claim of the sources.

  • Send the same event twice. Check that the result does not change, for example no second payment.
  • Send events out of order. Check that a late "updated" event does not hide a newer one.
  • Stop a consumer, then start it. Check that no event is lost and that a failed event reaches the dead-letter queue.
  • Check the delay. Read the data right after an event and again later. Know how long the system may show old data.
  • Follow the correlation ID. Check that one ID links the logs of all the parts.

সহজ English

These test ideas are the tutorial's own advice. They are not a claim of the sources.

  • Send the same event twice. Check that the result does not change, for example no second payment.
  • Send events out of order. Check that a late "updated" event does not hide a newer one.
  • Stop a consumer, then start it. Check that no event is lost. Check that a failed event reaches the dead-letter queue.
  • Check the delay. Read the data right after an event and again later. Know how long the system may show old data.
  • Follow the correlation ID. Check that one ID links the logs of all the parts.

বাংলা ব্যাখ্যা

এই টেস্টের ধারণাগুলো টিউটোরিয়ালের নিজের পরামর্শ। এগুলো সোর্সের দাবি নয়।

  • একই ইভেন্ট দুবার পাঠান। দেখুন ফলাফল বদলায় না, যেমন দ্বিতীয় পেমেন্ট হয় না।
  • ইভেন্ট ক্রমের বাইরে পাঠান। দেখুন দেরিতে আসা একটি "updated" ইভেন্ট নতুনটিকে ঢেকে দেয় না।
  • একটি কনজিউমার থামান, তারপর চালু করুন। দেখুন কোনো ইভেন্ট হারায় না। আরও দেখুন ব্যর্থ ইভেন্ট ডেড-লেটার কিউতে পৌঁছায়।
  • দেরি পরীক্ষা করুন। ইভেন্টের ঠিক পরে ডেটা পড়ুন এবং পরে আবার পড়ুন। জানুন সিস্টেম কতক্ষণ পুরোনো ডেটা দেখাতে পারে।
  • কোরিলেশন ID অনুসরণ করুন। দেখুন একটি ID সব অংশের লগ যুক্ত করে।

Key words

WordMeaning
EventA change in state or an update Source 2সোর্স 2
ProducerA component that creates and publishes events Source 1সোর্স 1 Source 2সোর্স 2
ConsumerA component that listens for events and acts on them Source 1সোর্স 1
Event router or brokerThe part that moves events from producers to consumers Source 1সোর্স 1 Source 2সোর্স 2
Event streamingA model where events go to a durable log that clients read at their own position Source 1সোর্স 1
IdempotentSafe to run more than once with the same result (the tutorial's own definition; Azure uses the word without defining it) Source 1সোর্স 1
Dead-letter queue (DLQ)A queue where a failed event goes for an administrator to inspect Source 1সোর্স 1
Correlation IDAn identifier in every event that links related operations Source 1সোর্স 1

Reels on this topicএই টপিকের রিলস

Short videos from other creators, picked for this topic. They are not part of this page's fact-checked text. Nothing loads from YouTube until you press Play.অন্য ক্রিয়েটরদের বানানো ছোট ভিডিও, এই টপিকের জন্য বাছাই করা। এগুলো এই পেজের ফ্যাক্ট-চেক করা লেখার অংশ নয়। চালান বাটন চাপার আগে YouTube থেকে কিছুই লোড হয় না।

  1. [1]
    Event-driven architecture style

    Microsoft, Azure Architecture Center · accessed 2026-10-22দেখা হয়েছে: 2026-10-22

  2. [2]
    What is an Event-Driven Architecture?

    Amazon Web Services · accessed 2026-10-22দেখা হয়েছে: 2026-10-22