Microservices: Spring Cloud Contract | TestContainers - 02

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.พ. 2025

ความคิดเห็น • 8

  • @MattRodriguez-h7j
    @MattRodriguez-h7j 3 วันที่ผ่านมา +1

    Awesome resource. Thanks for putting time into this and explaining it to us. Appreciate it

    • @bayonnesensei8281
      @bayonnesensei8281  ชั่วโมงที่ผ่านมา

      Glad it was helpful! That's amazing feedback.

  • @javisartdesign
    @javisartdesign ปีที่แล้ว +1

    brilliant, In your example Spring Cloud Contract is using kafka to send and retrieve the data from the topic, so there is no mocking or anything? it does make sense to use test container?

    • @bayonnesensei8281
      @bayonnesensei8281  ปีที่แล้ว

      Hey my friend, in this example it;s using Spring Cloud Stream Test Binder behind the scenes. In next videos I've explained and used TestContainers

    • @javisartdesign
      @javisartdesign ปีที่แล้ว +1

      @@bayonnesensei8281 thanks for the replay! I was using AVRO and Schema Registry and it seems Spring Cloud Contract does not support it yet.. there is no plan for the moment as far I know.

    • @bayonnesensei8281
      @bayonnesensei8281  ปีที่แล้ว +1

      @@javisartdesign That's true AFAIK. But there is a workaround. I am using it in production. Actually you can customize your contracts to use message verifier and then you can check if the avro schema is correct. There are a lot of alternatives.

  • @MattRodriguez-h7j
    @MattRodriguez-h7j 3 วันที่ผ่านมา +1

    Is groovy mandatory ? Is it possible with just java ?

    • @bayonnesensei8281
      @bayonnesensei8281  ชั่วโมงที่ผ่านมา

      No groovy is not mandatory. You can do it with plain java. I am already editing a nice video about it for REST APIs.