[英]Spring cloud function send image / bytes
我想使用Spring Cloud Function Web接收和發回圖像文件。 接收工作正常,但不能發送。 不知何故只交付了 JSON。 我正在使用 Spring Boot 3.0.0 和 Spring Cloud 2022.0.0。 這是我的 Kotlin 源代碼: ...
[英]Spring cloud function send image / bytes
我想使用Spring Cloud Function Web接收和發回圖像文件。 接收工作正常,但不能發送。 不知何故只交付了 JSON。 我正在使用 Spring Boot 3.0.0 和 Spring Cloud 2022.0.0。 這是我的 Kotlin 源代碼: ...
[英]consumption of events stopped after the consumer throw an exception in spring cloud stream?
我有一個聚合 function 聚合發布到output-channel事件。 我已經訂閱了 function 產生的通量,如下所示:@Component public class EventsAggregator { @Autowired private Sinks.Many< ...
[英]Aws lambda json deserilisation provides default values for missing properties
嘿,我在 lambda 中有一個 function 和 spring 雲函數,它將數據對象作為輸入參數,比如 (InputObj)。 lambda 通過 api 網關觸發。 問題是如果我遺漏 InputObj 的某些屬性並發送請求。 我得到了那些缺失屬性的默認值。 我需要的是拋出 400 錯誤請求 ...
[英]Build failed: could not resolve source: googleapi: Error 403: Unknown service account showing up in error message
Build failed: could not resolve source: googleapi: Error 403: 909263763911@cloudbuild.gserviceaccount.com does not have storage.objects.get access to ...
[英]Spring Cloud Stream routing function custom header not present in consumer
我正在按照本指南進行事件路由: https://docs.spring.io/spring-cloud-stream/docs/3.2.5-SNAPSHOT/reference/html/spring-cloud-stream.html#_event_routing 這是運動生產者的配置 這是運動消 ...
[英]Post separate messages in RabbitMQ for each element in a list returned by the producer function
我嘗試使用 RabbitMQ 集成的 spring-cloud-functions。 因此,我的生產者使用 IO 操作獲取元素列表(比如說數據庫調用)。 我試圖讓它將一堆單獨的消息發布到我的交換中,而不是將列表作為一條消息發布。 這樣我的下一個處理器(從列表中消耗)可以拾取元素並單獨處理它們。 我 ...
[英]Spring cloud Stream custom functional style app configured for topics based on the stream and application name as it working for starter apps
我已經通過參考入門應用程序為 sftp 源創建了 SCDF 自定義 stream 應用程序。 這個應用程序正在為 output 自動創建一個主題為 - function_name + -out- + index 當我查看默認應用程序時,Spring 雲數據流根據 stream 和應用程序命名約定命名 ...
[英]stream bridge provisions a topic in Kafka with the binding name for input binding of a function
我有一個 function publish ,我也為其定義了綁定 配置屬性: 和 當我通過 streamBridge 調用它時,我調用了 publish-in-0 綁定 這導致創建一個始終為空的 Kafka 主題publish-in-0 ,但是消息確實落在了publish-out-0目標中定義的正確 ...
[英]Class not found: org.springframework.cloud.function.adapter.aws.FunctionInvoker
我正在使用 Spring 雲 function 版本 3.2.6。 我已將 jar 的 zip 文件上傳到 S3 存儲桶中,然后嘗試使用 S3 URI 上傳到 AWS Lambda。 成功更新 jar 后,出現以下錯誤。 下面是我的 POM.xml 我正在使用最新版本的 spring 雲 func ...
[英]spring cloud function doesn't register multiple function definitions
我寫了一個 function 用於將 object 轉換為消息 this function is present in the com.foo.bar.fabric.nh44.functions.producer package, similarly I have a consumer for K ...
[英]How to obtain path of request in spring cloud function on AWS Lambda
我可以從傳入的請求中獲取我需要的所有內容,除了請求的路徑部分。 例如,對於xxx.lambda-url.us-west-2.on.aws/example?param=true的 postman 請求我可以看到主機、查詢參數和標題。 但是/example丟失了。 我的 function 目前看起來像這 ...
[英]Can Spring Cloud Function be used with AWS Lambda base image
我嘗試通過容器映像在 AWS Lambda 上部署 function,但我找不到如何使用 AWS lambda 基礎映像構建它的示例。 Spring Cloud Function 支持這種部署方式還是只支持 jar 部署? ...
[英]How do you pass Kinesis headers to Spring Cloud Stream functions in batch consumer mode?
我正在將當前使用基於注釋的編程模型的現有流處理代碼轉換為使用 Spring Cloud Function。 啟用消費者批處理模式后,如何將 AWS Kinesis 檢查點傳遞給我的Consumer ,以便只有在處理器成功處理批處理中的所有消息后,我才能執行手動檢查點操作? 使用基於注解的編程模型,我 ...
[英]How to configure DeadLetterPublisherRecoverer to send error messages to a DLQ in Spring Cloud Stream batch mode
我使用 Spring Cloud Stream 和 Spring Cloud Function 創建了一個 Kafka Consumer,用於以批處理模式從 Kafka 主題消費消息。 現在,我想將錯誤批次發送到死信隊列,以進一步調試錯誤。 我正在使用 Spring 重試在我的消費者方法中處理重試 ...
[英]Kafka Binder doesn't apply serializer configuration
我在我的應用程序中使用流橋,因為要發送的主題是在運行時根據 URL 路徑參數決定的; 我從請求正文、路徑元素構建消息並調用流橋發送到函數以發布到 Kafka 然后我將以下屬性添加到應用程序 yaml 然而,我的測試失敗了這個例外。 日志顯示生產者key.serializer未設置。 ...
[英]How to map path elements to method parameter in spring cloud function web
我正在開發一個接收 webhook 的微服務,這個想法是使用路徑變量進行一些下游處理, /webhooks/{foo}/{bar}/{baz} 例如 /webhooks/sony/pony/tony將填充foo=sony ; bar=pony ; baz=tony 。 無法弄清楚如何使 ...
[英]Spring Cloud Function - how to pass multiple parameters to a function call in Kotlin
在 Spring Cloud Function 的文檔中,Kotlin 的示例由采用單個參數的函數組成,例如 它通過一個最后有單個參數的 URL 調用,如下所示: http://localhost/lower/UpperCaseParam 如何傳遞多個參數? 支持這樣的東西嗎? 或者 ...
[英]No plugin found for prefix 'azure-function' in the current project and in the plugin groups
我一直在嘗試在我的本地機器上運行 spring-cloud-azure-function。 但看起來我很難弄清楚 pom 插件。 我已經從 Microsoft Doc 中嘗試過如何使用 spring 雲函數創建 azure function。 這是參考: https://docs.microsoft ...
[英]Amazon API Gateway and Spring cloud gateway use case
我正在開發一個分布式應用程序項目,其中需要根據在 api 網關上使用服務的客戶端進行速率限制和身份驗證。 我想知道設計網關的最佳解決方案。 我應該使用 Spring Cloud 網關還是 Spring Cloud 函數/AWS Lambda 來創建網關服務? ...
[英]How to log around Spring Cloud Stream functions?
我有一個簡單的 Spring cloud Stream 功能 我想透明地記錄輸入消息和輸出消息。 我完全按照這個答案中的建議嘗試@GlobalChannelInterceptor ,但沒有運氣。 在函數完成后,輸入和輸出消息都在preSend postSend afterSendCompleti ...