Questions tagged [spring-cloud-function]

Use this tag for questions related to the Spring Cloud Function project

Spring Cloud Function is a project in a Spring Cloud portfolio of projects with the following high-level goals:

  • Promote the implementation of business logic via java.util.function.(Supplier, Function, Consumer)
  • Provide necessary deployment and runtime abstractions to ensure the same code can run in multiple environments (e.g., a web endpoint, a stream processor, or a task).
  • Support a uniform programming model across serverless providers, as well as the ability to run standalone (locally or in a PaaS).
  • Enable Spring Boot features (auto-configuration, dependency injection, metrics) on serverless providers.

Resources

See Also

255 questions
3
votes
1 answer

Component bean is not injected (autowired) by spring when running AWS lambda function using Spring Cloud function AWS Adapter

I am implementing AWS lambda function creating handler using Spring Cloud function AWS Adapter SpringBootRequestHandler. The functional bean registered in GenericApplicationContext is invoked, but autowiring of component class is giving NullPointer…
3
votes
0 answers

How to use Spring Function’s Deployer with AWS Lambda

is there any sample or documentation for implement @EnableFunctionDeployer annotation for AWS Lambda. I can't see any sample or doc for it.
sam
  • 1,073
  • 4
  • 13
  • 27
3
votes
1 answer

How to expose multiple function endpoints with Spring Cloud Function?

I have a basic Spring Cloud Function application with two declared functions "lowercase" and "uppercase". If I create the application as a normal @SpringBootApplication and annotate both functions as @Beans (functional beans), everything works just…
Michael
  • 532
  • 1
  • 6
  • 15
2
votes
2 answers

Problem to deploy simplest Spring Cloud Function application on AWS Lambda using docker image

I having a problem deploying the simplest Spring Cloud Function application to AWS Lambda using a docker image. @SpringBootApplication public class GraalvmFuncExampleApplication { public static void main(String[] args) { …
2
votes
0 answers

Nullpointer Exceptions on Spring Cloud Function when calling sam local

i am trying to get a Spring Function runnin von AWS sam local, however even though i got a handler and an exposed function Bean i am constantly getting a Nullpointer. @SpringBootApplication public class DemoApplication { public static void…
2
votes
0 answers

Accessing spring cloud function rabbit binding details

I'm attempting to update the "Springwolf" library (used to document async API definitions) to support rabbit consumer listeners using spring cloud functions for spring cloud stream. In order to accomplish this I need to find from application…
2
votes
3 answers

Amazon API Gateway and Spring cloud gateway use case

I am working on a distributed application project where there is need for rate limiting and authentication depending on the client consuming the service on an api gateway. I am wondering the best solution for designing the gateway. Should I go with…
2
votes
1 answer

Alternative to StreamBridge

My Requirement in completely same as what is described here There are producer issues with spring cloud stream 3.0 by @hero-zh I found that @Oleg Zhurakousky is suggesting to use StremBridge but when i looked into the class there is…
2
votes
0 answers

Is there any way to create custom aws lambda authorizer using Spring Boot Function?

I am trying to create a custom API Gateway lambda authorizer using Spring Cloud Function. But when I am trying to return policy document as Map from Spring Function, Spring returning it as body along with some extra metadata. So…
2
votes
1 answer

Spring cloud function application is unable to find function on AWS Lamdba

I'm trying to deploy my Spring Cloud Function on AWS Lamdba but it looks like my function is not added to the function catalog, so I assume something is wrong with my bean registration but couldn't figure it out. My Spring…
Peter Lustig
  • 1,585
  • 1
  • 18
  • 34
2
votes
0 answers

Native Spring function bundled as a docker image not working on AWS lambda

I'm trying to run an AWS Lambda using Docker image build by paketobuildpacks/builder using spring-native + spring-cloud-function-aws, but it's not handling incoming values, justs starts and returns an error, did I missed something? Log output: START…
Vladlen Gladis
  • 1,699
  • 5
  • 19
  • 41
2
votes
0 answers

how to invoke google cloud function using spring cloud function for Http Request using Java

I'm trying to implement Google Cloud Function using Spring Cloud Function for Http Request, but I couldn't find any sample example which can help me to understand how to handle Http Request. In AWS we have APIGatewayProxyRequestEvent and…
2
votes
1 answer

I failed to use `mvn spring-boot:build-image` and remote docker daemon on win10

spring-boot-starter-parentm 2.4.4 My project is on win and docker is on another linux. Even if I put the built jar in the corresponding directory ( /home/iserver/spring)on linux, it cannot be successful
2
votes
1 answer

How to extract body and file name from mulitpart file?

I am writing an AWS lambda in Java. This lambda acts as a handler for APIGatewayProxyRequestEvent. API gateway endpoint is sending a file as a multipart/form-data in the body. public class LambdaHandler extends…
Swapnil Khante
  • 547
  • 2
  • 10
2
votes
1 answer

Vanilla Spring Cloud Function with Routing

Being a new bee in Spring cloud, I am developing multi-function spring cloud function application which is working fine with spring-cloud-function-starter-web (3.0.9.RELEASE) dependency. Note: I have different function in different package and with…
Abhishek Chatterjee
  • 1,962
  • 2
  • 23
  • 31
1
2
3
16 17