Is it possible to get exactly once processing with

2019-08-21 10:30发布

问题:

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

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 ?

回答1:

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.