Messaging or Streaming on AWS: Choosing the Right Pattern for the Job

A software engineer reflects on using a messaging service for a continuous data flow, realizing streaming would have better matched the need. The article distinguishes the two patterns: messaging lets one part of an application send information without waiting for the receiver, while streaming keeps updates as retained records that consumers can read independently. Messaging covers work queues, where tasks are removed after processing, and publish/subscribe, which delivers the same update to several subscribers. Streaming suits real-time analytics, logs, and website activity, with examples including Amazon Kinesis Data Streams and Amazon MSK. The author advises starting from business needs rather than picking a service first, and illustrates with receipt generation via SQS and Lambda.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in