jduan
jduan

Reputation: 2854

Make pact-jvm support other protocols?

How hard is it to make pact-jvm support protocols other than HTTP, such as Thrift (https://thrift.apache.org)? In other words, is the implementation of pact-jvm tightly coupled to HTTP? Thanks.

Upvotes: 1

Views: 183

Answers (1)

Ronald Holshausen
Ronald Holshausen

Reputation: 931

Pact currently only works with HTTP. If Thrift is used over HTTP (which I believe it does), then you should be able to use it. Most of the useful matching with Pact is done with JSON, and I believe Thift uses a form of JSON as well, so you should be ok there.

See this issue about using Pact with Thrift: https://github.com/DiUS/pact-jvm/issues/158

As to other protocols or message formats, there is less support. We (some of the core contributors) have been discussing making it more protocol agnostic. But it would require implementations for each protocol to be able to compare the payloads and provide good feedback when differences occur.

Upvotes: 2

Related Questions