Comments on: Distributed Transactions in Microservices with Kafka Streams and Spring Boot https://piotrminkowski.com/2022/01/24/distributed-transactions-in-microservices-with-kafka-streams-and-spring-boot/ Java, Spring, Kotlin, microservices, Kubernetes, containers Mon, 08 May 2023 10:39:09 +0000 hourly 1 https://wordpress.org/?v=6.9.1 By: piotr.minkowski https://piotrminkowski.com/2022/01/24/distributed-transactions-in-microservices-with-kafka-streams-and-spring-boot/#comment-1982 Mon, 08 May 2023 10:39:09 +0000 https://piotrminkowski.com/?p=10501#comment-1982 In reply to Dhiraj Chaudhari.

Hi,
Thanks! It should work now

]]>
By: piotr.minkowski https://piotrminkowski.com/2022/01/24/distributed-transactions-in-microservices-with-kafka-streams-and-spring-boot/#comment-1981 Mon, 08 May 2023 10:38:18 +0000 https://piotrminkowski.com/?p=10501#comment-1981 In reply to sylleryum.

I have already fixed that. Did you still get that error?

]]>
By: piotr.minkowski https://piotrminkowski.com/2022/01/24/distributed-transactions-in-microservices-with-kafka-streams-and-spring-boot/#comment-1980 Mon, 08 May 2023 10:37:57 +0000 https://piotrminkowski.com/?p=10501#comment-1980 In reply to Harish Raja.

It should work fine now

]]>
By: piotr.minkowski https://piotrminkowski.com/2022/01/24/distributed-transactions-in-microservices-with-kafka-streams-and-spring-boot/#comment-1979 Mon, 08 May 2023 10:37:36 +0000 https://piotrminkowski.com/?p=10501#comment-1979 In reply to Khaled AbdElSalam.

I have already fixed some problems with the code. Did you still receive that error?

]]>
By: Dhiraj Chaudhari https://piotrminkowski.com/2022/01/24/distributed-transactions-in-microservices-with-kafka-streams-and-spring-boot/#comment-1656 Tue, 04 Oct 2022 14:36:37 +0000 https://piotrminkowski.com/?p=10501#comment-1656 Hi,
This Course is very helpful for us
But when I am traying to test the code getting below exception
Could you please help me
I appreciated your quick response

org.springframework.kafka.listener.ListenerExecutionFailedException: Listener method could not be invoked with the incoming message
Endpoint handler details:
Method [public void pl.piomin.payment.PaymentApp.onEvent(pl.piomin.base.domain.Order)]
Bean [pl.piomin.payment.PaymentApp$$EnhancerBySpringCGLIB$$2e99b107@1c618295]; nested exception is org.springframework.messaging.converter.MessageConversionException: Cannot handle message; nested exception is org.springframework.messaging.converter.MessageConversionException: Cannot convert from [java.lang.String] to [pl.piomin.base.domain.Order] for GenericMessage [payload={“id”:4,”customerId”:23,”productId”:10,”productCount”:5,”price”:100,”status”:”NEW”,”source”:null}, headers={kafka_offset=12, kafka_consumer=org.apache.kafka.clients.consumer.KafkaConsumer@1354a24d, kafka_timestampType=CREATE_TIME, kafka_receivedPartitionId=0, kafka_receivedMessageKey=

]]>
By: Harish Raja https://piotrminkowski.com/2022/01/24/distributed-transactions-in-microservices-with-kafka-streams-and-spring-boot/#comment-1548 Tue, 03 May 2022 14:34:17 +0000 https://piotrminkowski.com/?p=10501#comment-1548 It is excellent post when I try to do it from scratch when I try to execute payment-service I am getting following error.
org.springframework.kafka.KafkaException: Seek to current after exception; nested exception is org.springframework.kafka.listener.ListenerExecutionFailedException: Listener method ‘public void pl.piomin.payment.PaymentApp.onEvent(pl.piomin.base.domain.Order)’ threw exception; nested exception is java.util.NoSuchElementException: No value present; nested exception is java.util.NoSuchElementException: No value present

I am trying to execute it with the following command:
java -jar payment-service-1.0-SNAPSHOT.jar

]]>
By: piotr.minkowski https://piotrminkowski.com/2022/01/24/distributed-transactions-in-microservices-with-kafka-streams-and-spring-boot/#comment-1518 Fri, 25 Mar 2022 23:04:25 +0000 https://piotrminkowski.com/?p=10501#comment-1518 In reply to Oleh.

If you use Kafka Streams? It is fast and simple, and the results are stored in Kafka without the necessity of using an external db

]]>
By: piotr.minkowski https://piotrminkowski.com/2022/01/24/distributed-transactions-in-microservices-with-kafka-streams-and-spring-boot/#comment-1517 Fri, 25 Mar 2022 23:00:45 +0000 https://piotrminkowski.com/?p=10501#comment-1517 In reply to Sıddık Açıl.

I’m not sure if you are asking about this article or my other one about it. In fact here you have example with JPA https://piotrminkowski.com/2022/01/24/distributed-transactions-in-microservices-with-kafka-streams-and-spring-boot/, while here is KTable https://piotrminkowski.com/2022/02/07/deep-dive-into-saga-transactions-with-kafka-streams-and-spring-boot/

]]>
By: Sıddık Açıl https://piotrminkowski.com/2022/01/24/distributed-transactions-in-microservices-with-kafka-streams-and-spring-boot/#comment-1502 Fri, 11 Mar 2022 22:53:31 +0000 https://piotrminkowski.com/?p=10501#comment-1502 How would you change this solution if `Reservation` was a JPA Entity and you had to get the actual account balances from a data source? One problem I see is that initializer arg for aggregate does not have a id param which would make it impossible for you to get the current status from the DB.

]]>
By: amir choubani https://piotrminkowski.com/2022/01/24/distributed-transactions-in-microservices-with-kafka-streams-and-spring-boot/#comment-1417 Thu, 03 Feb 2022 11:06:38 +0000 https://piotrminkowski.com/?p=10501#comment-1417 Other question, what are the topics created with ‘*-changelog’ name ?

]]>