使用Spring Cloud Stream处理一次是否可以获得准确的处理? [英] Is it possible to get exactly once processing with Spring Cloud Stream?

查看:92
本文介绍了使用Spring Cloud Stream处理一次是否可以获得准确的处理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,我正在使用具有几乎默认配置的SCS在微服务之间发送和接收消息. 不知何故我已经读过了
https://www.confluent.io/blog/enabling-exactly-kafka-流

Currently I'm using SCS with almost default configuration for sending and receiving message between microservices. Somehow I've read this
https://www.confluent.io/blog/enabling-exactly-kafka-streams

并想知道我们是否只是通过Spring启动应用程序中的属性在其中放置值为"exactly-once"的"processing.guarantee"属性,是否可行?

and wonder that it is gonna works or not if we just put the property called "processing.guarantee" with value "exactly-once" there through properties in Spring boot application ?

推荐答案

在您的问题上下文中,您应该将Spring Cloud Stream视为目标系统(例如,Kafka)和您的代码之间的委托.启用这种委派的绑定程序通常以传播目标系统支持的任何功能的方式实现.

In the context of your question you should look at Spring Cloud Stream as just a delegate between target system (e.g., Kafka) and your code. The binders that enable such delegation are usually implemented in such way that they propagate whatever functionality supported by the target system.

这篇关于使用Spring Cloud Stream处理一次是否可以获得准确的处理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆