Getting Started
NServiceBus
Transports
Persistence
ServiceInsight
ServicePulse
ServiceControl
Monitoring
Samples

AWS messaging services

AWS offers multiple messaging services. The Particular Service Platform offers messaging support within AWS through Amazon SQS or a SQL Server-based transport.

Amazon SQS

Amazon Simple Queue Service (Amazon SQS) is a scalable and managed message queuing service provided by AWS that enables the decoupling of application components. This service is designed to help developers build robust distributed applications, making it easier to manage traffic, system failures, and complex workflows. Amazon SQS provides a reliable and secure platform for sending, storing, and receiving messages at any volume, thereby streamlining the process of building and scaling microservices, distributed systems, and serverless applications.

➕ Pros:

  • Highly scalable
  • Highly reliable
  • Easy integration with other AWS services
  • Sensitive data is secured through server-side encryption (SSE)
  • Cost-effective: charges are based on usage reducing the need for capacity planning and pre-provisioning

➖ Cons:

  • Limited message size (256Kb per message).
  • Limited control over retry policies which forces delegation of handling retries to consumers increasing the overall complexity of the system
  • SQS supports a subset of protocols and formats which can cause compatibility issues with third-party applications
  • No local store-and-forward mechanism available

NServiceBus addresses some of these limitations:

Try the SQS transport sample →

When to use the Amazon SQS transport

The Amazon SQS transport should be considered the default choice for AWS-based systems. Alternatives should be considered only if SQS cannot be used for organizational reasons. The Amazon SQS transport uses Amazon SNS and S3 under the hood.

SQL Server transport

SQL Server transport is an NServiceBus feature that can use existing SQL Server databases as feature-complete message queues.

➕ Pros:

  • Runs on infrastructure which often already exists
  • Strong transaction integration with business data operations
  • Runs on cloud-hosted and on-premises SQL Server-compatible data stores (including Amazon RDS)
  • Arbitrary message sizes
  • Allows for exactly-once processing if business data and message data are in the same database
  • Ease of backup and recovery as business data and messages are backed up in the same database

➖ Cons:

  • More expensive and laborious to scale
  • Impacts overall database performance
  • Lower message throughput compared to specialized message queuing technologies

Try the SQL transport sample →

When to use SQL Server transport

Consider SQL transport if an existing application already uses a SQL Server-compatible data store and limited amount of messaging is being introduced. SQL transport can be a good stepping-stone when introducing messaging into an existing system without the introduction of new infrastructure.

Do you have questions?

Ask our solution architects

Get help with your proof of concept

Book a call