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

Spring cloud function architecture with multiple functions

I just started a new project where I'm going to use Java, Spring cloud functions and AWS Lambda. It's my first time building a serverless application and I've been looking at different example projects and tutorials on how to get started. However,…
0
votes
1 answer

Spring cloud function accessing query parameters

Is it possible to access to query parameters that are forwarded from aws apigateway to awslamdba implemented using spring cloud function. the following is my implementation. I call this using http get request example:…
0
votes
1 answer

How can you find out from spring cloud function that the connection you established to the database is closed?

In a spring cloud function usage, you don't want your database connection to keep existing in the database. Once the spring cloud function finishes its process, is the following way to close the function appropriate? HikariDataSource ds =…
0
votes
0 answers

AWS API Gateway Response Template Mapping json string cannot be converted

My Spring Cloud Function(v3.1.6) based AWS Lambda function (without Lambda proxy integration) returns a list of data via API Gateway in the following format: { "isBase64Encoded": false, "headers": { "id": "", "contentType":…
0
votes
1 answer

Spring Cloud Function Composition

I am trying spring cloud function with aws lambda. Lets say, I have 5 different spring function (A,B,C,D,E) and function composition of like this A|B|C|D|E. I specify which function to invoke using spring_cloud_function_definition in lambda, so,…
0
votes
0 answers

Custom Message Headers support when using functional bean definitons

I am unable to extract custom Message headers in a Function when using functional bean definitions for Spring cloud function. Is there any way to extract the user defined Messsage headers that were passed in the request…
0
votes
1 answer

How to gracefully exit a spring cloud function definition on exception scenario?

I am using spring cloud function chaining in my project like below: spring.cloud.function.definition = func_A|func_B|func_C|func_D The above definition will pipe the result of func_A to func_B, and from func_B to func_C and so on... Now if I have a…
0
votes
0 answers

How to capture timings for spring cloud stream composite functions

I have a spring cloud stream app chaining together some functions. I need a nice way to log time taken for each function without having to wrap the logic for each in log and timing statements. I can do it if I write the function as an anonymous…
0
votes
1 answer

An "Error creating bean with name 'functionBindingRegistrar'" exception every time I start my application

I have a normal spring cloud stream application that simple reads data from Kafka topic and produces messages to another Kafka topic, please find below the configurations: org.springframework.boot
0
votes
1 answer

Dynamic destination with spring cloud stream - Kafka

I'm developing a router (events proxy) application with spring cloud stream over Kafka, in the functional paradigm. the application consumes from constant input topic, maps and filters the message and then should send it to some topic according to…
0
votes
1 answer

Spring Cloud function cannot read function definition from Message header

I've created an AWS Lambda based Spring Cloud Function with multiple functions and it works fine when I define exactly one "spring_cloud_function_definition" environment variable in the AWS Lambda Configuration panel. These functions' input and…
0
votes
1 answer

Caching doesn't work when I use Kotlin Functional Types instead of Java Functional Interface for consuming messages from Kafka

According to this article https://spring.io/blog/2018/09/11/kotlin-support-in-spring-cloud-function , the support for Kotlin Functional Types has been added to Spring Cloud Function. It means that Spring Cloud Function can now recognize Kotlin…
grolegor
  • 1,260
  • 1
  • 16
  • 22
0
votes
1 answer

How to apply MessageConverter before MessageRoutingCallback

I am currently receiving messages from kafka and the payload is protobuf. A customized MessageConverter is used to decode the content before passing to my function. What I am trying to do now is to inspect the incoming payload and conditionally…
0
votes
1 answer

Getting Request headers with FunctionInvoker in AWS Adapter

The headers are available in the Http Request when it's sent from the AWS API gateway and received by the FunctionInvoker. It looks like the code specifically ignores them if it matches: Message requestMessage = isApiGateway ?…
Chuck C
  • 423
  • 1
  • 4
  • 12
0
votes
1 answer

Spring cloud stream: Attaching function to binder by type

I have a Spring cloud stream application implemented in Functional approach. the app consumes events from multiple Kafka topics, normalizes the input into output schema (always same schema) and publishes to Kafka. I am not using Kafka-streams since…