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

Spring Cloud Function - Manual Bean Registration and Loading Configuration Classes

I am currently using Spring Cloud function 3.07.RELEASE with the AWS Adapter for lambda. We are using a limited scope Functional Bean registration and understand that this does not include full Spring Boot autoconfiguration. We are okay with this as…
user1697841
  • 109
  • 3
  • 11
0
votes
1 answer

Spring Cloud Function on Google Cloud Functions - Deployment Failure

I am trying to run a Spring Cloud Function on Google Cloud Functions. For that I want to deploy the sample Application on GitHub. I followed the instructions, but when I want to deploy the function, Google says: Build failed: Building user function…
0
votes
2 answers

IllegalStateException: No function defined for Spring Cloud Function

I have defined a function in my Spring Cloud Function project, but after executing function (ScanQrCode) as AS Lambda I get: 2020-07-13 10:19:04.592 INFO 1 --- [ main] lambdainternal.LambdaRTEntry : Started LambdaRTEntry in…
0
votes
1 answer

why maven fails to build for this project

I am using maven 3.6 in Ubuntu. My pom.xml:-
masiboo
  • 4,537
  • 9
  • 75
  • 136
0
votes
1 answer

Spring cloud stream apps created using Function interface not communicating data in Spring cloud data flow

I have created 3 simple Spring cloud stream apps(Source/Processor/Sink) using Spring cloud function approach transferring Flux. Source-app: @SpringBootApplication public class SourceApplication { public static void main(String[] args) { …
0
votes
0 answers

Spring Cloud Gateway route to Cloud Function definition

Let's suppose I have these functions mapped to web on port 8080: /uppercase /toChars I can get the data from them using: curl -d '["test"]' localhost:8080/uppercase,toChars -H "Content-Type: application/json" Now I created a route using gateway to…
user7780894
0
votes
1 answer

Spring Kafka Cloud Function: No transaction in context

I've start dipping toes in Spring Cloud Stream and it's Cloud Function support. I've uploaded a sample project to elucidate this problem here -> https://github.com/nmarquesantos/spring-cloud-function-kafka I have a project that exposes a few…
0
votes
1 answer

Wrong Kafka topic names for Spring-Cloud-Function app deployed as part of Spring-Cloud-Data-Flow stream

I have a simple SCDF stream that looks like this: http --port=12346 | mvmn-transform | file --name=tmp.txt --directory=/tmp The mvmn-transform is a simple custom transformer that looks like…
mvmn
  • 3,717
  • 27
  • 30
0
votes
1 answer

Spring cloud function Cosuming rabbitmq queue - Dispatcher has no subscribers for channel

Given: cloud: stream: rabbit: bindings: inboundApolloLookupVehicleChannel: destination: fed.apollo-vehicle-lookup-test group: apollo-mngt-group consumer: missingQueuesFatal: true …
0
votes
1 answer

Using Spring Integration executorChannel with Spring Cloud Function

I'm using spring cloud function to process data from kafka with Flux. By default it processes data in the consumer thread (where message is consumed). I'm going to implement threadpool for paraller data processing and throttling and there is a great…
Elijah
  • 133
  • 5
0
votes
0 answers

Logging from Azure Function Java only complete on cold start

I'm not sure if it's a bug or some obscure setting I haven't found yet but I am getting different log behaviours for identical calling parameters. I set up a script to call an endpoint every 3 seconds with the same payload. On first call where there…
0
votes
2 answers

route FROM and route TO with spring cloud stream and functions

I have some issues with the new routing feature in spring cloud stream I tried to implement a simple scenario, I want to send a message with a header spring.cloud.function.definition = consume1 or consume2 I expect that consume1 or consume2 should…
0
votes
1 answer

spring-cloud-function-deployer deploy/undeploy function programmatically at runtime

The spring-cloud-function-deployer examples all show the deployed function being loaded on startup i.e. the ApplicationContext is started with the necessary properties, pointing at the packaged jar to load. Is there a way to call the deployer…
James
  • 1,237
  • 4
  • 22
  • 43
0
votes
0 answers

How to use the spring-cloud-function-deployer with POJOs in Function signatures

I have three maven projects: demo-api: Contains POJOs for function APIs i.e. OutputPojo.class, InputPojo.class demo-packaged-function: Defines a single function public OutputPojo apply(InputPojo) {...} that depends on the 'demo-api'…
James
  • 1,237
  • 4
  • 22
  • 43
0
votes
1 answer

Convert Spring Cloud Stream to use reactive cloud function

Currently I have Spring Boot application which is something like this. @Component @EnableBinding(Source::class) class EmailMessageProducer(private val source: Source) { suspend fun send(textMessage: TextMessage) { …
1 2 3
16
17