Spring Cloud for Amazon Web Services
2.3.0Spring Cloud 包括的プロジェクトの一部である Spring Cloud for Amazon Web サービスは、ホストされた Amazon Web サービスとの統合を容易にします。メッセージングやキャッシュ API などのよく知られている Spring イディオムと API を使用して、AWS が提供するサービスと対話する便利な方法を提供します。開発者は、インフラストラクチャやメンテノンスを気にすることなく、ホストされたサービスを中心にアプリケーションを構築できます。
機能
[SQS](http://aws.amazon.com/sqs/ (英語) )の Spring メッセージング API 実装。
[ElastiCache](http://aws.amazon.com/elasticache/ (英語) )の Spring キャッシュ API 実装。
[SNS](http://aws.amazon.com/sns/ (英語) )エンドポイント(HTTP)のアノテーションベースのマッピング。
[CloudFormation](http://aws.amazon.com/cloudformation/ (英語) )スタックで定義された論理名でリソースにアクセスします。
[RDS](http://aws.amazon.com/rds/ (英語) )インスタンスの論理名に基づく JDBC
DataSource
の自動作成。[S3](http://aws.amazon.com/s3/ (英語) )バケットの
ResourceLoader
に一致する Ant スタイルのパス。
アノテーションベースの SQS キューリスナー
@MessageMapping("logicalQueueName")
private void receiveMessage(Person person, @Header("SenderId") String senderId) {
// ...
}
アノテーションベースの SNS リスナー
@Controller
@RequestMapping("/sns/receive")
public class SnsEndpointController {
@NotificationMessageMapping
public void receiveNotification(@NotificationMessage String message, @NotificationSubject String subject) {
// ...
}
@NotificationSubscriptionMapping
public void confirmSubscription(NotificationStatus notificationStatus) {
notificationStatus.confirmSubscription();
}
ドキュメント
各 Spring プロジェクト別に用意されています。プロジェクトの機能を使用する方法と、それを使用して達成できることを詳細に説明しています。
2.3.0 CURRENT GA | リファレンスドキュメント (英語) | API ドキュメント (英語) |
2.3.1-SNAPSHOT SNAPSHOT | リファレンスドキュメント (英語) | API ドキュメント (英語) |
2.2.7.BUILD-SNAPSHOT SNAPSHOT | リファレンスドキュメント (英語) | |
2.2.6.RELEASE GA | リファレンスドキュメント (英語) |