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
1 answer

How to test received object payload in SCS apps?(java.io.StreamCorruptedException: invalid stream header: 7B0D0A20 during deserialization)

I am testing the Spring Cloud Stream application and I want to validate the received payload object but it's received as a byte array. I tried to deserialize received payload to the object, before the assertion, using this code: private
improbable
  • 2,308
  • 2
  • 15
  • 28
0
votes
1 answer

How to invoke Spring Integration SFTP by Azure Functions/Spring Cloud Function

We have currently Spring Boot applications which are using Spring Integration SFTP to send and receive files based on Cron schedule. We are trying to convert the applications to Azure Function using Spring Cloud Function. Just wondering is there any…
0
votes
1 answer

Is functions composition in spring-cloud-function / spring-cloud-stream pass by value, or is it reusing the integration in between

Hi don't understand and it is not described in the documentation of either "spring-cloud-function" or "spring-cloud-stream". If I have two functions "Uppercase" and "reverse". Lets say I have a source queue - "uppercase-source" input to "Uppercase"…
0
votes
2 answers

@Value & @Autowired not working in Azure Functions

I am writing an @TimerTrigger function in Azure Functions. To do so, I used Spring Cloud Function for Azure. The problem is I am getting a null pointer exception every time when I access the Service or JPARepository. Also the @Value("${VARIABLE}")…
mkb_mc
  • 17
  • 2
  • 10
0
votes
1 answer

Spring Cloud Stream disable retry

I'm using Spring cloud stream with spring cloud function with reactive approach. My binder is RabbitMQ. By definition maxAttempts property is the number of times that a message can be processed (that's what I interpret) From:…
0
votes
1 answer

running graals native spring cloud function example

I am trying to run the aws function sample in spring-graals, the 'java' version works fine but when I test the 'native' version, I see the following error in the console. Exception in thread "main" java.lang.IllegalArgumentException: Cannot…
0
votes
1 answer

How to send custom http response code back from spring cloud functions in gcp?

We are using the new gcp cloud functions using Java / Kotlin. As in the current reference implementations, we are returning org.springframework.messaging.support.GenericMessage objects. So our code looks like this (Kotlin): fun…
DAndy
  • 117
  • 11
0
votes
1 answer

Google Functons recieving message from Kafka via spring-cloud-stream and spring-cloud-functions

I am aware that using Kafka Connect you can create connector sink all kafka messages to a PUBSUB topic. I would like to know if I can use Spring Cloud Stream binders in combination with Spring Cloud Function and deploy all this to Google…
0
votes
1 answer

Spring Cloud Function and Dead Letter Exchange

I am trying to write a reactive Spring Cloud Function service using RabbitMQ which will consume off one queue and produce to an exchange. I have 2 questions. Why am I getting the error below in the logs. How would I do a reject with a doOnError?…
0
votes
1 answer

Recommended way to handle REST parameters in Spring cloud function

I really like the way Spring cloud function decouples the business logic from the runtime target (local or cloud) and makes it easy to integrate with serverless providers. I plan to use SCF with AWS Lambda behind an API gateway to design the backend…
0
votes
0 answers

Access Query parameters in Spring cloud function + AWS Lamba + API gateway

I am using Spring cloud function with AWS Lambda and API Gateway. Below is my function: @Bean public Function testFunction() { return (input) -> { return new User(1, input); }; Also, I…
0
votes
0 answers

Cloud function throwing error Could not find artifact which is in a private git repo

I am trying to deploy a spring cloud function which has a dependency from a private GitLab maven repo. In spite, of giving the token in settings.xml, the spring cloud function build fails with below error : Build failed: [INFO] Scanning for…
0
votes
1 answer

Spring JAR file very big, although project very smal

I have a small Spring Boot project where I use a Spring Cloud Function to deploy on AWS. What does the App do? Function as Endpoint Connect and write some small Data to DynamoDB Database forward to an URL (Statuscode 302) When packaging that…
skm
  • 559
  • 1
  • 6
  • 22
0
votes
1 answer

Spring Serverless HTTP Poller

I want to implement a serverless function that polls an HTTP endpoint and publishes the response to a messaging queue. My initial thought is to build a spring boot application using spring integration gateway and adapters for HTTP polling and…
0
votes
0 answers

Use Spring Cloud Function and Spring Cloud Stream together?

Has anyone tried using both Spring Cloud Function and Spring Cloud Stream together? Is there any reason this shouldn't be done? We currently use Spring Cloud Function but there are certain cases where we need to have synchronous Kafka publishing and…