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
16
votes
4 answers

/lib64/libc.so.6: version `GLIBC_2.32' not found

I'm building the lambda on Ubuntu with the basic example. It builds without any errors but if I upload and test it on aws in crashes with: { "errorMessage": "RequestId: 7f4d0aca-125c-4032-98dd-9ff387e5252b Error: Runtime exited with error: exit…
utk
  • 171
  • 1
  • 2
  • 7
7
votes
2 answers

Spring Cloud Function - Separate routing-expression for different Consumer

I have a service, which receives different structured messages from different message queues. Having @StreamListener conditions we can choose at every message type how that message should be handled. As an example: We receive two different types of…
Danny
  • 166
  • 1
  • 9
6
votes
1 answer

Spring Cloud Stream multiple function definitions

Is it possible to have reactive SCS application using functional (spring.cloud.function) style with multiple, separate functions / bindings? All examples I have found always register only one functional bean with default bindings input, output. I…
B.Gen.Jack.O.Neill
  • 8,169
  • 12
  • 51
  • 79
4
votes
0 answers

Kafka Admin client unregistered causing metadata issues

After migrating our microservice functionality to Spring Cloud function we have been facing issues with one of the producer topics. Event of type: abc and key: xxx_yyy could not be sent to kafka…
4
votes
1 answer

SpringBoot Upgrade 2.3.7 to 2.5.4 - Issue with KafkaStreamsAutoConfiguration

These are the Dependencies in the pom.xml. spring-cloud.version is 2020.0.3 org.springframework.cloud
goya
  • 165
  • 1
  • 7
4
votes
1 answer

No transaction is available/created if a message handler (Consumer) calls a service annotated with @Transactional

The application is a Spring Boot app with Spring Data JPA and Spring Cloud Stream (RabbitMQ) defined with functional programming model. Functional message handler calls a service: @Configuration class MessageHandlerConfiguration { @Bean …
4
votes
1 answer

Spring Cloud Bus/Stream Issues in Spring Cloud 2020.0.0

We have a Spring Boot Microservice that as well as having HTTP endpoints uses Spring Cloud Bus to pick up refresh events (from rabbit) and also has a Spring Cloud Stream Sink that picks up custom messages from another rabbit topic. After updating to…
4
votes
1 answer

Spring cloud stream rabbitmq binder - spring cloud function error handling

i am using spring cloud stream rabbit binder with spring cloud function and defining listeners like: public Function, Flux> foo() { //some code } I also reroute failed messages to DLQ. Problem is when fatal error like…
3
votes
2 answers

Spring Integration Flow ClassCastException after Spring Boot 3.0.1 Update

I was working on the Spring Boot Update to 3.0.1 and with it the Upgrade of Spring Integration 6.0.0 and Spring Cloud Stream 4.0.0. After upgrading however my previously working Spring Integration Flow is failing with underlying…
3
votes
0 answers

How to integrate swagger with spring cloud function

I have one spring boot application having three spring cloud function which I am able to execute via postman or curl successfully .Now my next step is to add swagger documentation for the same. I have followed all configuration that we do to add…
Vinay
  • 433
  • 5
  • 8
3
votes
0 answers

Spring Cloud Function - Form Data/Multipart File?

I am creating a Spring Cloud Function that I want to give two inputs, an id and a Multipart file (CSV file) but I am having trouble. If I choose to send a post with a multipart file the function won't recognise this and gives an error like Failed to…
Mike
  • 101
  • 1
  • 4
3
votes
1 answer

Spring Cloud Stream - Send and receive synchronized

In my spring boot rest controller, I'm using StreamBridge for sending a message to the rabbitMQ server with something like streamBridge.send("consumer-in-0", "hello world"); Is there a way to do a send and wait the response ?
3
votes
1 answer

Functional Bean Registration returns no bean of type FunctionCatalog on AWS Lambda

I have tried to use the functional bean registration as mentioned in https://spring.io/blog/2018/10/22/functional-bean-registrations-in-spring-cloud-function and to deploy it to AWS Lambda. The traditional way works just fine, see code in…
3
votes
2 answers

It's a good idea use aws lambda with java and Spring Cloud Functions against other language?

i created an AWS lamnda with Spring Cloud Function but I think that this approach is slow when execute the lambda. My lambda is very simple it only save a object into a data base. It's a good idea use Spring Boot Function against another language or…
3
votes
1 answer

How to code Spring Cloud Function in Azure with multiple endpoints?

I am trying to create 2 Azure Functions with Spring Cloud but I can't make it work. @Configuration public class FirstFunction extends AzureSpringBootRequestHandler, String> { @FunctionName("firstFunction") public void run( …
1
2 3
16 17