aws / aws/serverless-java-container

AWS lambda : Spring boot 3 Servlet application having webflux dependency for web client

オープン
#622 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
question
主要言語
Java
スター
1.6k
フォーク
574
PR マージ指標
30日以内にマージされた PR はありません

説明

*To help us debug your issue fill in the basic information below using the options provided*

*Serverless Java Container version*: `2.0.0.M2

*Implementations:* `Spring Boot 3

*Framework version:* `eg SpringBoot 3.1.2`

*Frontend service:* `REST API /ALB`

*Deployment method:* `eg SAM, Serverless Framework, Console`

## Scenario
*Describe what you are trying to accomplish*
I am having Spring boot 3 Microservice deployed as AWS lambda. This microservice contains Webflux dependnecy for Spring Reactive WebClient. I have excluded Netty dependency from WebFlux. AWS Java Serverless library considering AWS lambda as Reactibe but I want it to be Servlet.

## Expected behavior
*Describe how you would expect the application to behave*
Please provide way to set up servlet web application type even it contains web flux dependency.
or
Check if spring web dependency is available, it should be servlet application

Spring is considering Reactive WebClient as synchronous in case spring web dependency is available

## Actual behavior
*Describe what you are seeing instead*

Reactive web application type is considered by library

## Steps to reproduce
*Provide code samples we can use to reproduce the issue as part of our integration tests. If there is a public repository for the misbehaving application link to it here*

handler = SpringBootLambdaContainerHandler.getAwsProxyHandler(Class.forName(System.getenv(APPLICATION)));

## Full log output
*Paste the full log output from the Lambda function's CloudWatch logs*

```
logs
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

`SpringBootLambdaContainerHandler.getAwsProxyHandler(...)` エントリポイントから始め、WebFlux を含み、Netty を除外する Spring Boot 3 アプリケーションを使って動作を再現します。ライブラリがリアクティブモードとサーブレットモードをどのように選択するかを追跡します。Spring web 依存関係が存在する場合に、アプリケーションがサーブレットアプリケーションとして扱われれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
aws, java, spring-boot
領域
api, backend, cloud
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。