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

Shedlock with Spring Cloud Function @PollableBean

I have recently switched the implementation of almost all our services to spring cloud function, and naturally that mean as well that all scheduled jobs have been converted to suppliers, for example from this @Scheduled(cron =…
WiredCoder
  • 916
  • 1
  • 11
  • 39
1
vote
1 answer

Reliable way to publish metrics using micrometer and Spring Cloud Functions

I am working on a metric collector which uses Micrometer and we've decided to use it as a serverless function due to the nature of the metrics it is collecting. We are using Kotlin with Spring Cloud Functions and the AWS Adapter. We have a very…
1
vote
1 answer

Spring cloud function on azure - How to pass spring.profiles.active

While deploying spring cloud function to azure using maven, I am trying to set "spring.profiles.active=dev" as below in pom.xml - com.microsoft.azure
Jacob
  • 426
  • 3
  • 19
1
vote
1 answer

Spring cloud function - Bean Validation

Similar to the support for bean validation using @Valid, @Validated, @ExceptionHandler annotations available in spring boot REST APis, is similar support available for spring cloud function? If yes, could you please direct me to a working example on…
Jacob
  • 426
  • 3
  • 19
1
vote
1 answer

How to invoke a function running in the cloud with spring

Does Spring offer some abstraction to invoke an arbitrary cloud function (for example and AWS lambda function) ? It seems to me this could be the job of spring-cloud-function, but it looks (maybe I'm mistaken) as if this project concentrates more…
1
vote
1 answer

Spring Cloud Function AWS Lambda with proxy integration on APIGW : CORS issue

We have created our AWS Lambda function using Spring Cloud function. This function returns APIGatewayProxyResponseEvent response. Sample below { "statusCode": 200, "headers": { "Access-Control-Expose-Headers":…
1
vote
1 answer

Spring cloud stream dlq processing with spring cloud function for rabbitmq

I have read the spring cloud stream binder reference document which mentioned DLQ processing using @RabbitListener.…
1
vote
1 answer

DLQ, bounded retry, and EOS when producing to multiple topics using Spring Cloud Stream

I am trying to write a transform function which will consume an input from one topic and produce two outputs to topics Left and Right. Moreover I need this to take place in a transaction so that if the application fails to produce a message to…
1
vote
2 answers

Multiple Functions using Functional Bean Definition in Spring Cloud for AWS Lambda

I am trying to create a Spring Cloud Function application which will have multiple functions defined in it. I need to use the Functional Bean definition approach for reduced cold start time. The jar will be deployed in AWS Lambda. The code works in…
1
vote
1 answer

Azure spring boot function-how to pass trigger and input binding both to handleRequest method at same time?

package com.att.trace.function; import java.util.Optional; import com.att.trace.function.model.User; import com.microsoft.azure.functions.ExecutionContext; import com.microsoft.azure.functions.HttpMethod; import…
1
vote
1 answer

Spring Cloud Stream - Functional Supplier is not polling

In Spring Cloud Stream, I used the functional model and created a Supplier to generateEvents. As per the documentation, I expect that this supplier will get invoked on a scheduled basis, but that's not happening. It gets invoked once upon bean…
1
vote
4 answers

Azure function App logs into App Insights using slf4j

Implemented Azure Function App with Spring Cloud Functions. App Insights instrumentation key configured in App Settings "APPINSIGHTS_INSTRUMENTATIONKEY": . Im using lombok annotation @Slf4j for logging the messages, but i cant see them in App…
1
vote
2 answers

NoClassDefFoundError with SpringBootRequestHandler

I have implemented a simple AWS lambda application with spring cloud function. When i create labmda function and send the request in AWS then the following error has thrown. { "errorMessage": "Error loading class…
1
vote
1 answer

Exception in thread "main" java.lang.ClassCastException: class reactor.core.publisher.FluxPeekFuseable cannot be cast to class java.lang.String

I am learning the Spring Cloud Function. Why should we learn this? I am below error when running the code Exception in thread "main" java.lang.ClassCastException: class reactor.core.publisher.FluxPeekFuseable cannot be cast to class java.lang.String…
PAA
  • 1
  • 46
  • 174
  • 282
1
vote
2 answers

Different polling delay for different suppliers in Spring Cloud Stream Function

I'm trying to implement suppliers using Spring Cloud Function and Kafka. I need that one supplier should publish after every 10 secs and other should publish after every 30 secs. I could see from documentation, I can change delay using…