1

I want to implement spring-integration-aws to send and receive messages with SQS. I am looking at localstack and would like to know the recommendation of the spring team.

Which tool/api should I use for local setup of spring integration flows for SQS inbound and outbound adapters?

Also, will there be examples of AWS in spring-integration-samples in future? I am looking for an example with xml config that reads the aws config from credentials and send and receive messages via outbound adapters.

4

1 回答 1

1

不确定您希望我们提供什么建议,但我在您自己的问题中看到了答案 - Localstackhttps ://github.com/localstack/localstack 。

在项目测试中,我们确实在 docker 容器上使用了这个工具:

https://github.com/spring-projects/spring-integration-aws/blob/master/src/test/java/org/springframework/integration/aws/lock/DynamoDbLockRegistryTests.java#L62

我们没有针对 SQS 进行这样的测试,但配置技术是类似的。

我记得我听说 Testcontainers 项目也可以用于在本地测试 AWS 服务:https ://www.testcontainers.org/modules/localstack/

我们没有资源为此项目编写示例。

于 2020-08-17T13:55:15.113 回答