aws / aws/serverless-java-container

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

Aberta
#622 3 comentários 0 reações 0 responsáveis Ver no GitHub
question
Linguagem predominante
Java
Estrelas
1.6k
Forks
574
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

*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
```

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Comece pelo ponto de entrada `SpringBootLambdaContainerHandler.getAwsProxyHandler(...)` e reproduza o comportamento usando uma aplicação Spring Boot 3 que inclua WebFlux e exclua Netty. Rastreie como a biblioteca seleciona o modo reativo ou servlet; a tarefa estará concluída quando a aplicação for tratada como uma aplicação servlet quando a dependência web do Spring estiver presente.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
aws, java, spring-boot
Domínio
api, backend, cloud
Tipo de issue
Bug
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Estagnada
Clareza
Precisa de esclarecimento
Facilidade para iniciantes
25/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.