CLASS 14
Event Driven Architecture
REVIEW, RESEARCH AND DISCUSS
What’s the difference between a FIFO and a standard queue?
- FIFO queues have essentially the same features as standard queues, but provide the added benefits of supporting ordering and exactly once processing. FIFO queues provide additional features that help prevent unintentional duplicates from being sent by message producers or from being received by message consumers.
How can the server be assured a message was properly received?
- The reciepnt must emit a recieved event so then the server can remove the message from the queue.
What classic design pattern is best represented by event driven programming?
- The Obserevr pattern.
How do you test an event driven system?
- Using jest a node library and writing tests that check for out puts.
TERMS:
FIFO queue
- First in first out is a way of organizing a queue where the first inside the queue will be the first one leaving the queue.
Pub/Sub
- Publish/subscribe messaging, is a form of asynchronous service-to-service communication used in serverless and microservices architectures. In a pub/sub model, any message published to a topic is immediately received by all of the subscribers to the topic.