Amazon SQS vs Amazon Kinesis Data Streams

Choose Amazon SQS when one processing pool should handle each message once, and Kinesis Data Streams when several consumers need the same ordered stream and replay. Neither is self-hosted, so if data location or exit terms carry weight, weigh Apache Kafka or Apache Pulsar.

On this page

Amazon SQS vs Amazon Kinesis Data Streams: which fits your workload

Choose Amazon SQS when one processing pool should handle each message once, and choose Amazon Kinesis Data Streams when an ordered stream must be read, and re-read, by several consumers inside a retention window. Neither service is a database and neither is self-hosted. Both run only inside AWS, so the data they hold stays in AWS regions under AWS terms. For a database-backed workload, the queue or stream carries jobs and change events while your database remains the system of record. That means the choice shapes how work is delivered and replayed, while authoritative rows stay in your database, so make it alongside your database design.

Start with the consumer count. How many consumers need the same data decides most of the rest. SQS typically processes messages through a single subscriber, and AWS points to Amazon SNS for fanout to several. Next, ask whether replay matters. Kinesis Data Streams keeps data for 24 hours by default, up to 7 days with extended retention, or up to 365 days with long-term retention, so several consumers can re-read the same records, ordered within each shard. SQS retention defaults to 4 days and can be set from 60 seconds to 14 days. Then check message size: SQS holds content above 1 MiB in Amazon S3 or DynamoDB and keeps a pointer in the queue, which adds a second system to operate. Finally, confirm delivery semantics. Standard queues are at-least-once, while FIFO queues support exactly-once processing, so check that your jobs handle whichever you choose.

Finally, weigh data location and exit terms. Record the AWS region you will use, how long data must be kept, and who approves retention beyond the default. Cost follows the same drivers. SQS has no upfront costs and scales with usage, according to AWS, while Kinesis Data Streams is billed by mode, with stream-hours or shard-hours, extended and long-term retention, and enhanced fan-out per consumer, so adding consumers can change the total. Model both against your message rate, payload size and consumer count using the Kinesis Data Streams pricing page, and ask AWS in writing what an exit looks like, including export of retained data and any retrieval charges.

Which workloads favor Amazon SQS and which favor Kinesis Data Streams

This table maps common database-adjacent workloads to the AWS service that fits better, the condition that decides it, and the case where neither service is the right answer. Read each row against your own consumer count, replay window and message size. The main takeaway: SQS fits work that one consumer group completes and deletes, while Kinesis fits streams that several readers must replay.

WorkloadBetter fitDeciding conditionWhen neither AWS service fits
Background job queue for database writesAmazon SQS standard queueOne worker group processes each task and deletes it after success; duplicates must be handled idempotently.Writes that must commit in the same transaction as the data change; a transactional outbox in your own PostgreSQL is one option.
Event stream read by analytics and a fraud serviceAmazon Kinesis Data StreamsSeveral independent readers each need the full stream; enhanced fan-out gives each consumer dedicated throughput at a published price.Consumers that need the Kafka client protocol or must run outside AWS; compare self-hosted Apache Kafka.
Retry flow that depends on dead-letter queuesAmazon SQS with a dead-letter queueFailed messages move to a dead-letter queue after repeated receives, which you configure.Failures that need ordered replay of the whole stream; a Kinesis retention window is not a dead-letter queue.
Payload above 1 MiBAmazon SQS with an S3 pointerPointer pattern keeps SQS messages small. Confirm Kinesis per-record limits in AWS docs before choosing it.Large media or binary files; store them in object storage you control, such as Ceph RADOS Gateway, SeaweedFS or Garage.
Team must re-read the last several days of eventsAmazon Kinesis Data Streams with extended retentionExtended retention keeps records up to 7 days; SQS messages are removed once a consumer deletes them.Replay beyond 365 days or audit archives; keep an archive in storage you control.
Per-key ordering with duplicate protectionAmazon SQS FIFO queueFIFO queues offer exactly-once processing; check throughput limits for your queue mode.Shared ordered streams with many readers that need Kafka tooling; compare self-hosted Apache Kafka.

Does one pool or several consumers decide the route?

The path starts with the need: does one processing pool take each message, or do several consumers need the same records? A single pool with payloads at or below 1 MiB ends at Amazon SQS. Larger bodies can sit in Amazon S3 with SQS holding a pointer to them. Several consumers without replay fan out through Amazon SNS to SQS queues. Several consumers that need replay within the retention window reach Amazon Kinesis Data Streams, unless data location or exit terms are a hard requirement, which points to self-hosted Kafka or Pulsar. Check retention as well: SQS defaults to 4 days and Kinesis to 24 hours.

Decision path from consumer pattern to SQS, Kinesis, or self-hosted Kafka or Pulsar.

How Amazon SQS vs Amazon Kinesis Data Streams compare on delivery, retention and consumers

This table compares how Amazon SQS and Amazon Kinesis Data Streams handle delivery, retention, dead-letter queues, consumers, large payloads, encryption, cost tags and hosting. Read the SQS column against the AWS documentation, and treat cells marked to confirm as open items for your AWS account team. The main takeaway is that SQS fits work queues that a single subscriber processes, while Kinesis fits streams that several consumers read within a retention window.

CapabilityAmazon SQSAmazon Kinesis Data Streams
Delivery guaranteeStandard queues offer at-least-once delivery. FIFO queues offer exactly-once processing, with a high-throughput mode.Confirm the delivery and replay behavior for your consumer library and checkpointing design with AWS.
Default and maximum retention4 days by default, configurable from 60 seconds to 14 days.24 hours by default, extended retention up to 7 days, long-term retention up to 365 days.
Dead-letter queuesSupported through dead-letter queues attached to a source queue.Confirm dead-letter handling for failed records with AWS, since it depends on your consumer design.
Consumer modelTypically one subscriber per queue. Use Amazon SNS for fanout to multiple subscribers.Several consumers can read the same stream. Enhanced fan-out gives dedicated consumers their own throughput.
Large messagesContents above 1 MiB can be stored in Amazon S3 or DynamoDB, with SQS holding a pointer.Confirm the maximum record size and the large-payload pattern you should use with AWS.
EncryptionDefault SQS managed server-side encryption, or custom keys managed in AWS Key Management Service.Confirm the encryption options and key management choices for your stream with AWS.
Cost allocation tagsSupported for cost tracking by resource.Confirm tag support and billing dimensions for your stream with AWS.
HostingAWS-managed hosted queue with no upfront costs and usage-based scaling.AWS-managed streaming service, with on-demand or provisioned capacity modes.

Amazon SQS vs Amazon Kinesis Data Streams pricing structure, cost driver by cost driver

The two services bill on different units, so the same workload can cost very differently on each. The cards below list the published billing components for each product and the cost driver behind every line, with Kinesis rates quoted for US East from the AWS pricing page. Confirm current rates for your region before you compare totals.

Amazon SQS usage billing

SQS has no upfront costs and scales with usage, so the bill follows request volume and data transfer instead of a provisioned capacity charge. This page does not state SQS per-request or data transfer rates because they vary by region, so confirm both on the AWS pricing page for your region. If you store message contents above 1 MiB in Amazon S3 or DynamoDB, that storage and its requests bill separately from SQS.

SQS product page

Kinesis On-demand Standard rates

On-demand Standard bills on three components: per GB written, per GB read and per stream-hour. The Kinesis pricing page lists $0.08 per GB written, $0.040 per GB read and $0.040 per stream-hour in US East. Each stream carries an hourly charge on top of volume, so many small streams can cost more than a few busy ones. Confirm the current regional rates on the pricing page before you model a monthly total.

Kinesis pricing page

On-demand Advantage and the minimum

On-demand Advantage has no stream-hour charge, with $0.032 per GB in and $0.016 per GB out in US East. The trade-off is a 25 MB/s account-level minimum for ingest and retrieval, so an account with low sustained throughput may be billed at that minimum even when traffic is lower. Measure your sustained throughput against the minimum before choosing this mode, and confirm on the pricing page how the minimum applies across streams in your account.

Provisioned shard-hours and PUT units

Provisioned mode bills shard-hours and PUT payload units. The pricing page lists $0.015 per shard-hour and $0.014 per million PUT payload units of 25 KB in US East. Shard count sets the fixed hourly cost, while record count drives PUT units, and each record is billed in 25 KB units, so many small records can cost more than their byte volume suggests. Size shards from peak throughput, then review how your producers batch records.

Retention add-ons beyond 24 hours

Kinesis keeps data for 24 hours by default. Extended retention up to 7 days costs $0.020 per shard-hour in provisioned mode. Long-term retention up to 365 days costs $0.023 per GB-month beyond 7 days plus $0.021 per GB retrieved, according to the Kinesis pricing page. If you need replay beyond a day, model retention as its own line item, and confirm which retention options apply to the mode you choose.

Enhanced fan-out per consumer

Enhanced fan-out is billed per consumer. In provisioned mode the pricing page lists $0.015 per consumer-shard-hour plus $0.013 per GB retrieved. On-demand Advantage carries no additional charge for enhanced fan-out. Every added consumer application that reads the same stream adds to the consumer-shard-hour line, so confirm whether each consumer needs dedicated throughput before you enable it.

What running each option asks of your team in people and time

SQS asks the least of your team. It has no brokers, clusters or disks to patch, so the work centers on queue design: visibility timeouts, dead-letter queues, message retention (4 days by default, configurable from 60 seconds to 14 days), and the choice between standard and FIFO queues. An application team can own these settings, and the SQS Developer Guide describes each one. Provisioned Kinesis Data Streams adds a capacity task. Someone must size the shard count from expected write volume and consumer read rates, plan resharding before peaks, and watch consumer lag, typically through the iterator age metric in CloudWatch. Retention defaults to 24 hours, so a stalled consumer can fall outside the window with no error on the producer side. On-demand mode removes shard sizing, but the lag watch remains.

Self-hosting Apache Kafka or Apache Pulsar moves that work onto your team. Kafka brings broker operations: managing the controller quorum, reassigning partitions, planning rolling upgrades against the project's release notes, sizing disks, tuning retention, configuring TLS and ACLs, and monitoring under-replicated partitions and consumer lag. Pulsar runs its own layered architecture of brokers and bookies, so the operating surface is wider and storage planning carries more weight. Backups need an explicit design. Replication protects against a lost broker, but it cannot reverse a bad delete from a producer, so you need copies of topic data, consumer offsets and ACLs with a tested restore path. MirrorMaker 2 can replicate topics, consumer group offsets and ACLs to a second Kafka cluster, which is one option to test. Confirm with your platform team that it has staff for these tasks and an on-call rotation before you choose.

Cost follows who operates the service. On AWS, SQS has no upfront costs and scales with usage. Kinesis Data Streams in provisioned mode lists at $0.015 per shard-hour plus $0.014 per million PUT payload units of 25 KB in US East, and extended retention to 7 days adds $0.020 per shard-hour, per the Kinesis pricing page. Self-hosted Kafka and Pulsar carry no license fee from their projects, which are under Apache 2.0, but you pay for compute, storage, network and the platform staff who run them. DeployOpen is engaged only through a written, fixed-scope agreement that sets deliverables before work starts, and retainers are optional for ongoing upgrades and testing. Ask any quote to separate one-time build work from recurring operations and to name who carries on-call duty.

Where data lives and what leaving Amazon SQS or Kinesis Data Streams involves

The four cards cover where your queued and streamed data sits, how you export it, what your code depends on, and what a move involves. Read them together, because retention windows and API choices set how much time you have to cut over.

Where the data is held

Messages and stream records are stored in the AWS regions you select when you create the queue or stream, and AWS operates the service in those regions. Region choice is the starting point for data residency, but it does not settle the question. Ask AWS in writing which regions and related services hold copies of your data and what the terms say about access and retention, then have your compliance team review those answers against your obligations.

Export paths within retention

A consumer you run can drain an SQS queue, but messages expire when the queue's retention period ends. The default SQS retention is 4 days, configurable up to 14 days. Kinesis keeps data for 24 hours by default and up to 7 days with extended retention, so your consumer must write records to a store you own inside that window. For longer holds, Kinesis long-term retention extends to 365 days at a per-GB-month charge. Plan the export before the window closes.

Contract and API lock-in

Producers and consumers authenticate with the AWS SDKs and IAM policies, so access control lives in your AWS accounts and must be rebuilt in any new platform. Consumer code is tied to each API. SQS consumers use calls such as ReceiveMessage and DeleteMessage, while Kinesis consumers read through shard iterators and GetRecords. Messages over 1 MiB may hold only a pointer to S3 or DynamoDB, so inventory those payloads before you plan the move.

What leaving involves

Leaving is a sequence: move producers to the new broker, cut consumers over once the old queue or stream drains, replay the data still inside the retention window, and run a bridge while both systems are live. MirrorMaker 2 moves data between Kafka clusters only. Moving data from SQS or Kinesis into Kafka needs a producer or connector that your engineers build or confirm, so agree that work in writing before the cutover date is set.

MirrorMaker 2 docs

When Apache Kafka or Apache Pulsar fits better than either AWS service

Apache Kafka and Apache Pulsar fit better than either AWS service when the streams must stay inside your own network, when per-request and retention charges are hard to forecast, or when many consumers need to replay a shared log under your own access controls. Both are Apache Software Foundation projects under the Apache License 2.0, and the projects offer no paid edition of their own, so the software itself carries no license fee while the operating work moves onto your team. In Amazon Kinesis Data Streams pricing, extended retention and enhanced fan-out are billed as separate line items, so a long replay window or a large consumer count shows up directly on the bill. Pull the last three months of invoices and identify which meter drives most of the spend before you decide.

Choose Apache Kafka when a replayable log with consumer groups is the core need and your team can operate it. Kafka keeps records for a retention period you set and lets each consumer group track its own offsets. Its MirrorMaker 2 tool, built on Kafka Connect, can copy topics, consumer group offsets and ACLs between clusters, which matters if you later need to move workloads, as described in the Kafka geo-replication documentation. Test your team honestly: who runs the brokers, storage, certificates and upgrades, and who is on call for them? If no one owns that work yet, SQS may still be the simpler fit. Choose Apache Pulsar only after you have tested it against the same requirements, including retention, throughput, consumer model and failure drills, because its components and operating model differ from Kafka's and existing Kafka skills may not transfer directly.

The cost has four components. Infrastructure in your own cloud accounts or data centers recurs every month and grows with throughput and retention. Platform staff time also recurs and is usually the largest line, because someone owns capacity, monitoring and on-call response. Backups, security patches and version upgrades recur on a schedule you set. The fixed-scope implementation, covering design, deployment, hardening and documentation, is one-time, and its scope, deliverables and timeline are agreed in writing before work starts. Ongoing support, upgrades and testing can be added as a retainer. Ask any quote to show these lines separately, along with the node sizes, storage, replication factor and retention period it assumes. This route removes the per-request and retention meters, but it does not remove the operating work.

What a move between Amazon SQS and Kinesis Data Streams involves

The sequence moves producers, consumers and in-flight messages from one model to the other without losing data or breaking the ordering and duplicate-handling assumptions that consumers depend on. It produces a tested cutover path, a reconciliation record and a documented decommission. The queue or log decision comes first, because it determines every step that follows.

  1. Inventory producers, consumers and replay needs

    The platform team lists every producer that sends to the queue or stream, every consumer and the processing logic it runs, and every case where someone needs to reprocess older data. For each workload, record message sizes, whether any consumer depends on ordering, whether consumers already handle duplicate deliveries, and which ones use dead-letter queues or cost allocation tags. Ask each application owner to confirm how far back a replay must reach. The step is done when the inventory is signed off by the owners and every consumer has a named owner.

  2. Choose a queue or log model

    Decide whether each workload needs a queue, where one consumer handles a message and the message is removed after processing, or a log, where records stay in order within a shard and several consumers read the same data at their own pace. SQS standard queues offer at-least-once delivery and typically serve a single subscriber, which means duplicates must be expected. Kinesis Data Streams keeps records for a retention window and lets consumers read them again. The output is a written decision per workload with the reasons, reviewed by the consumer owners.

  3. Set the retention window as a hard constraint

    SQS retains messages for a default of 4 days, and that period can be set from 60 seconds to 14 days, according to the SQS Developer Guide. Kinesis Data Streams keeps data for 24 hours by default, and extended retention is billed per shard-hour in provisioned mode, with long-term retention billed per GB-month. Data older than the window on either side is gone, so any backlog or history you need must be drained, exported or re-produced before the window closes. The output is a retention table per queue or stream showing the replay horizon each team has accepted.

  4. Build a bridge or dual-write path

    Where both systems must run during the move, choose between a bridge consumer that reads from the source and republishes to the target, or producers that write to both systems for a period. A bridge is simpler to remove later but adds a hop and its own failure modes. Dual-write needs idempotency keys so that a retried write does not create a second record. For large SQS payloads stored in Amazon S3 with a pointer in the message, confirm that the bridge resolves the pointer and carries the message attributes across. The output is a tested path in a non-production environment and a runbook for stopping it.

  5. Run both systems in parallel

    Keep producers writing to the new path while the existing path continues to serve current consumers. Compare message counts, consumer lag, error rates and dead-letter volumes across both sides on a regular schedule. Watch for duplicates, out-of-order deliveries and any consumer that assumed first-in, first-out behavior on a standard queue, which SQS does not provide. Keep the parallel window open until reconciliation shows no unexplained gaps. The output is a reconciliation report signed off by the consumer owners.

  6. Drain queues or replay retained data

    Let consumers empty the SQS backlog on the old queue, or replay retained Kinesis records from the agreed starting position into the new consumers. Confirm which consumers are idempotent before any replay starts, because redelivery and replay will process some messages more than once. For standard SQS queues, deduplication keys in the consumer protect against this. For FIFO queues, confirm that the ordering guarantees the workload depends on still hold after the move. The output is an empty source backlog or a logged replay checkpoint for each stream.

  7. Cut over consumers and producers

    Move one workload at a time according to the runbook, switching producers and consumers in the order the inventory defined. Before each consumer accepts live traffic, verify that its queue or offset position matches the reconciled counts. Keep the old endpoint readable for the rollback period agreed in the runbook. The output is a signed cutover record per workload that shows when each switch happened and when the first successful processing on the new path was confirmed.

  8. Decommission the source and close access

    After the rollback period ends and the owners approve, delete or drain the old queues and streams, remove the bridge, and revoke the IAM policies and AWS Key Management Service grants that were tied to them. Confirm that any encrypted messages and Amazon S3 objects referenced by pointers have either been migrated or retained under the data policy. The output is an inventory showing each source resource removed, with the access changes and any retained data recorded for internal and external auditors.

Questions buyers ask about Amazon SQS vs Kinesis Data Streams cost, contracts and effort

What drives the cost of moving off Amazon SQS or Kinesis Data Streams?

Four components set the cost: the AWS charges you keep paying during the overlap period, the infrastructure for the new platform, the engineering time to change producers and consumers, and the fee for any implementation partner. Infrastructure and AWS overlap charges recur, while the migration work is mostly one-time. The biggest drivers are the number of queues or streams, the number of producers and consumers, message volume and size, and retention. For Kinesis, the Amazon Kinesis Data Streams pricing page lists On-demand Standard at $0.08 per GB written, $0.040 per GB read and $0.040 per stream-hour in US East, and provisioned mode at $0.015 per shard-hour. Retention adds cost, and extended retention up to 7 days is $0.020 per shard-hour in provisioned mode. Ask for a quote that itemizes each component, names the environment it runs in and states who pays for each line.

Does moving off SQS or Kinesis require a contract or minimum commitment?

The published pricing shows no minimum for SQS, and AWS describes SQS as having no upfront costs and scaling with usage. Kinesis On-demand Advantage has a different condition: a 25 MB/s account-level minimum for ingest and retrieval, which matters if your traffic stays below that level. Enterprise discount agreements, private pricing and committed-spend programs are set in your AWS account terms and by your account team, so confirm them with AWS before you plan the cutover. On the DeployOpen side, most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. DeployOpen does not publish a price list, and a quote follows from the written scope. Ongoing support, upgrades and continuous testing are available as retainers, so ask whether you need them after go-live.

How long does a migration off SQS or Kinesis take?

The duration depends mainly on how many consumers read each queue or stream, how much retention history must carry over, and how many producers must change. A single consumer with short retention is a very different job from dozens of consumers that rely on replay, so no fixed timeline applies across workloads. Retention matters because SQS keeps messages for 4 days by default and can be set up to 14 days, while Kinesis keeps data for 24 hours by default and can extend retention up to 365 days. The stages that usually set the schedule are the inventory of producers and consumers, validation of consumer behavior, a parallel run and cutover. Confirm the timeline during scoping, when the written scope sets the deliverables and dates before work starts.

What does a migration need from our engineering and operations team?

Your team owns the decisions that only your organization can make, and it must give the partner access to the systems and people who hold the rest. Expect to supply an inventory of queues, streams, producers, consumers, IAM policies and dead-letter handling. Business owners must approve message ordering, duplicate handling and retention rules. Engineers must review how each consumer handles delivery, since SQS standard queues provide at-least-once delivery while FIFO queues provide exactly-once processing, and that difference can change consumer code. Someone must also approve the target hosting location, key management and access model. Ask the partner who on your side signs off each stage, which accounts and environments they will access, and what your team must have in place before testing starts.

Can our own team migrate off SQS without an implementation partner?

Yes, a capable team can do the work alone, provided it has people who run the target platform, know the producers and consumers, and can test failure paths. The work is the same whether you do it yourself or hire help: inventory, code changes in producers and consumers, parallel running, validation, cutover and then operating the new cluster. Doing it yourself shifts cost to your engineers' time and to the risk of learning on production traffic. A partner adds a fee in exchange for a written scope and a tested plan. DeployOpen plans, implements, integrates, hardens, backs up, upgrades, documents and supports self-hosted platforms in your own cloud accounts, data centers or air-gapped networks, and most engagements are fixed-scope. Ask any provider for a written scope that lists what they do and what your team still owns.

Does DeployOpen certify that the migrated system is compliant?

No. DeployOpen does not issue audit reports, attestations or certifications, because independent auditors and certification bodies perform those assessments. DeployOpen prepares the systems, controls and evidence that a compliance assessment will need, such as configuration records, access settings, audit logging and backup documentation, so your assessors can review them. If a regulator or contract names a specific framework, ask your auditor which evidence they expect before the cutover, and ask DeployOpen to list that evidence in the written scope. Messaging systems often carry regulated data, so confirm encryption, key ownership and retention settings with your compliance team as part of the scope.

How DeployOpen helps you evaluate, implement or integrate the messaging choice

DeployOpen plans, implements, integrates, hardens, documents and supports self-hosted open-source platforms in your own cloud accounts, data centers or air-gapped networks. For the choice between Amazon SQS and Amazon Kinesis Data Streams, we start with your message patterns, retention needs and consumer model, then build and test the option that fits before anything moves into production.

How we scope

  • Engagements are fixed-scope, with the written scope agreed before any work starts.
  • The scope lists which SQS queues or Kinesis streams, consumers and retention settings are in review.
  • Ongoing support, upgrades and continuous testing can follow as a retainer after handover.

How we build

  • Map each SQS standard or FIFO queue, and each Kinesis stream, to its delivery, ordering and replay needs.
  • Test how payloads above 1 MiB behave, including the Amazon S3 or DynamoDB pointer pattern for SQS.
  • Build a self-hosted Apache Kafka or Apache Pulsar reference setup with access control, encryption and audit logging.

How we hand over

  • Documentation covers the queue, stream and retention settings, with the reasons each one was chosen.
  • A cost model that breaks out each charge type on both sides, with your own volumes as inputs.
  • A runbook for consumer restarts, replay, dead-letter handling and the cutover checklist.

How we support

  • Upgrades, patch review and retesting of the messaging platform after each change to the setup.
  • Security testing of the deployed platform, including access paths, permissions and exposed endpoints.
  • Evidence on controls prepared for your auditors, who issue any audit report or certification.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.