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
2 answers

How to Deploy Spring Cloud Function to AWS lambda continuously

Is it possible to deploy Spring Cloud function to AWS Lambda Continuously. I want to use gradle and bitbucket pipeline, or if there is any effective way I can use. Should I use '@EnableFunctionDeployer' annotation? What is the best way?
1
vote
3 answers

Functional programming model bean definition and spring-cloud-function + spring-cloud-stream integration

Hi all and a specially spring team! How can I pipeline spring-cloud-function with spring-cloud-stream in functional Bean programming model style? For example I have pom.xml with both dependencies:
1
vote
0 answers

Composed Function Support with spring cloud stream throw exception : "Queue is full: Reactive Streams source doesn't respect backpressure"

We are building event-driven microservices using Spring Cloud Stream (2.1.2.RELEASE) with Rabbit binder and facing some issues about its integration with spring cloud function (2.0.1.RELEASE). Our Source stream is the following : Read CSV file on…
1
vote
0 answers

How to parse JSON as a AWS Lambda request payload using SpringBootRequestHandler

I have a AWS lambda written using Spring cloud function. My entry point is defined as . public class LambdaController extends SpringBootRequestHandler { } Then I have a class that implements Function interface the includes the…
1
vote
1 answer

Why Is My Spring Cloud Function Attempting to Open Local HTTP Connections?

I'm deploying a rather simple Spring Cloud Function to AWS Lambda and am running into an issue with slow cold starts and occasional failures noted in calling the function once deployed. First, here is my single class. (Eventually this function will…
1
vote
1 answer

Injecting spring data repository into spring cloud function

I would like to use spring data repository functionality within the spring cloud function. I've cloned the spring cloud function with azure provider:…
Blink
  • 1,408
  • 13
  • 21
1
vote
1 answer

How to trigger a retry with Spring Cloud Functions with AWS Lambda and SNS Events

I have a Spring Cloud Function running on AWS Lambda handling SNS Events. For some error cases I would like to trigger automatic Lambda retries or triggerthe retry capabilities of the SNS Service. SNS Retry Policies are in default configuration. I…
1
vote
0 answers

Spring Cloud Function deployed as Azure function: Logging?

I'm trying to map a Function Bean to an Azure function using Spring Cloud Function 2.0. How is logging supposed to be done? Do I need to use the Azure context logger or a generic logger like slf4j? There seems no way to get hold of the Azure context…
Hagai Cibulski
  • 4,421
  • 3
  • 20
  • 23
0
votes
0 answers

RoutingFunction bean creation in latest spring boot and spring cloud version

I was spring cloud function in my project. We were using spring boot version 2.6.6 and spring-cloud-function-context version 3.2.3 along with other required dependency.In that I was using RoutingFunction…
0
votes
0 answers

Spring Cloud Function Actuator Does Not Work In Spring Native

I reviewed the problem and then opened a pull request to spring cloud stream. It was merged upstream and back ported to 4.0.x. So this problem is solved. Pull Request Link : https://github.com/spring-cloud/spring-cloud-stream/pull/2791 I have a…
0
votes
0 answers

Auto Startup Feature of Spring Cloud Function Not Working in Spring Native(in application.yml)

I can consume and produce data from kafka with Spring Cloud Function. Also, for consumers, I do not allow data to be consumed automatically when the service is starting(auto-startup=false). While the project is starting(Smart-Lifecycle), I want the…
0
votes
1 answer

How to enable database + kafka transaction in Spring Cloud Stream for producer-only transactions (db + kafka)?

We have an event driven distributed architecture with separate producer and consumer microservices using Spring Cloud Stream and the application needs to perform the following: In the producer, a database insert/update followed by publishing a…
0
votes
0 answers

Spring Cloud Function Amazon SQSEvent ClassCastException

I'm developing a lambda function for aws using Spring Cloud Function. The function is triggered by a SQSEvent. The problem is that the json received can't be parsed in a SQSEvent instance because the fields names don't match the keys inside the…
0
votes
0 answers

Getting 404 Not Found after upgrading springboot version to 2.7.13 and spring-cloud-dependencies to 2021.0.1

I have spring-cloud-function implementation with spring boot After upgrading to spring boot 2.7.13 and spring-cloud to 2021.0.1 and its higher version , rest endpoint throws 404 response It works fine if we make spring-cloud version to 2021.0.0
Jaiprasad
  • 149
  • 11
0
votes
0 answers

HTTP Response code is 202 instead of 200 after upgrading spring-cloud-dependency from Greenwich.SR6 to Hoxton

I have a Springboot application with spring-cloud-function. The implementation is of type Consumer With spring boot 2.1.5.RELEASE and spring-cloud-dependencies Greenwich.SR6 , on calling the rest api , the application returns 200 response…
Jaiprasad
  • 149
  • 11