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
1
vote
0 answers

How can I configure quic/http3 over spring-cloud-starter-function-web?

I will try use spring-cloud-starter-function-web with quic/http3. How can I cofigure quic/http3 server?
1
vote
1 answer

Route based on payload in Spring Cloud Stream

Is it possible to use spring.cloud.function.routing-expression to route based on some field in the payload rather than headers? I have a use case where the pubisher most probably won't be sending headers. From what I understand, payload conversion…
1
vote
2 answers

stream bridge provisions a topic in Kafka with the binding name for input binding of a function

I have a function publish for which I've defined the binding too @Bean public Function, Message>> publish() { // some magic here } the config…
1
vote
3 answers

Class not found: org.springframework.cloud.function.adapter.aws.FunctionInvoker

I am using Spring cloud function version 3.2.6. I have uploaded the zip file of jar in S3 bucket and then tried to upload to AWS Lambda using S3 URI. After successfull update of jar I am getting below error. { "errorMessage": "Class not found: …
1
vote
3 answers

Can Spring Cloud Function be used with AWS Lambda base image

I try to deploy a function on AWS Lambda by a container image, but I cannot find an example of how to build it with the AWS lambda base image. Does Spring Cloud Function support this deploy method or only support deploying by a jar?
Blackdiz
  • 63
  • 1
  • 5
1
vote
1 answer

No plugin found for prefix 'azure-function' in the current project and in the plugin groups

I have been trying to run a spring-cloud-azure-function on my local machine. But it looks like I am having a hard time in figuring out the pom plugins. I have tried from the Microsoft Doc of how to create an azure function with spring cloud…
1
vote
1 answer

Integration Test a Reactive Spring Cloud Stream

TLDR; How do you test a Reactive Function composition using the Test Binder? I have a Spring Cloud Stream that uses Reactive Functions and I don't know how to test it. I don't see any official docs on how to do an Integration Test from input source…
1
vote
1 answer

How to use the functional style on my RemoteChunkingManagerStepBuilderFactory?

I am implementing Spring Batch-Integration RemoteChunking. https://docs.spring.io/spring-batch/docs/current/reference/html/spring-batch-integration.html#remote-chunking I've come across the deprecation of @Input and the documentation says we have…
1
vote
1 answer

How to pass a parameter to a Spring Cloud Function?

I'm following the Spring Cloud Function tutorial. In the example, they are calling the revert bean with this command: curl localhost:8080/reverseString -H "Content-Type: text/plain" -d "abc" I like to call the endpoint from a browser/postman as a…
riorio
  • 6,500
  • 7
  • 47
  • 100
1
vote
2 answers

Is Spring Cloud Stream affected by CVE-2022-22963 (spring cloud function)

The CVE-2022-22963 - spring cloud function vulnerability was recently discovered and a simple fix was provided by the team here: cve-report-published-for-spring-cloud-function We are getting spring-cloud-function-context:3.0.6 from…
1
vote
1 answer

Spring Cloud Function GCP exclude for Spring Cloud Stream for PubSub

I combine both Spring Cloud Function for GCP and Spring Cloud Stream for PubSub in the same project. I have one function which is an entrypoint for GCP CF defined in my properties spring.cloud.function.definition=gcpFunction I bridge the result of…
1
vote
2 answers

Spring cloud function in azure throws null pointer exception

I have spring cloud function deployed to azure function app.The API works perfectly fine in the local developer machine. Whereas when deployed to azure, upon calling from postman/client throws a null pointer exception. Java Run time Version :…
1
vote
0 answers

Is there a way to increase the Token expiry time for AuroraPostgres RDS Database?

Aurora Postgresql running on an AWS RDS has a token expiry time of 15 minutes. Unlike using a username and password to authenticate, if we use a token to authenticate as shown below, the Spring cloud function that I use authenticates but to connect…
Roe hit
  • 457
  • 1
  • 7
  • 23
1
vote
1 answer

Spring cloud function routing api gateway null pointer exception

I have a problem with routing using API Gateway headers. I am using org.springframework.cloud.function.adapter.aws.FunctionInvoker::handleRequest as a handler request. I have two functions, they work locally. They work if I set environment…
Krzysztof Cygan
  • 310
  • 3
  • 9
1
vote
0 answers

Returning custom status code from AWS Proxy lambda function based on certain condition, like 204, 404, but I get always 200 code as a response

We are using below set up for AWS Lambda function. 1 Lambda type - Proxy lambda 2 Handler - org.springframework.cloud.function.adapter.aws.FunctionInvoker 3 Using spring cloud functions for implementing core logic 4 Tried returning below objects as…