New in Symfony 5.1: Async AWS Support
The official AWS SDK for PHP simplifies the integration of Amazon AWS services (Amazon S3, Amazon DynamoDB, etc.) in your PHP applications. This SDK is feature complete, providing support for more than 200 AWS services (via 8,000 methods).
The Async AWS project is an unofficial reimagination of the AWS SDK. It provides support only for the most used services (7 vs 200 in the official SDK) and is split into multiple small packages (adding S3 support in your app requires 0.6 MiB vs the 22 MiB required by the official SDK).
However, the biggest difference is that in Async AWS, all API calls are asynchronous by default (thanks to the underlying Symfony HTTP Client used by the project).
Thanks to the recent work made by Tobias Nyholm and Jérémy Derussé (15 weeks, 500 pull requests and tens of thousands of lines of code), Async AWS has recently tagged its 1.0.0 stable version. In Symfony 5.1 we decided to start using Async AWS by default in some components.
In the Mailer component, we've deprecated the
SesHttpTransport classes in favor of
SesHttpAsyncAwsTransport, which are created when installing the following
$ composer require async-aws/ses
In addition to removing the complexity of signing requests, this change adds the following features:
- Authentication via
.aws/config.ini, Instance profile and WebIdentity (K8S service account);
- Uses Signature V4 (the one recommended by the official SDK);
- Full compatibility with the official API (it uses the official AWS SDK interface contract to generate classes).
Similarly, the Messenger component has been updated to use Async AWS when using Amazon SQS service. This removes most of the authentication/streaming complexity and keeps using the Symfony HttpClient integration.
New in Symfony 5.1: Async AWS Support symfony.com/index.php/blog/new-in-symfony-5-1-async-aws-supportTweet this
Become a certified developer! Exams are online and available in all countries.Register Now
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.