Hello, is it possible to use the Pact broker to se...
# pact-broker
é
Hello, is it possible to use the Pact broker to serve stub similar like the pact-stub-server or do we need a dedicated server?
y
it doesn’t support it OOB, you would need to use another like you’ve shown. There are a couple of flavours, I believe that is the preferred. note it may be v3 only atm looking at the docs. There is a ruby flavour aswell as part of the standalone
é
You mean there are 3 projects to serve stubs? 🤔
1
m
The last two are the same thing just different distributions. The one you linked is a better one to use as it supports newer pact formats
👍 2
The broker doesn't support stubs, but Pactflow does OOTB
👍 1
y
As said in my original message, the cli is the same as the above link but wrapped in docker, so there are two. The older ruby version, which we are moving away from towards a rust shared core, and thus a rust based stub server was produced 👍
👌 1
Just for reference, all this information is just a search away 😉
👀 1
check out the Docker instructions for the pact-stub-server, you could easily run it in ECS in AWS 🙂 https://github.com/pact-foundation/pact-stub-server#running-with-docker
é
Yep, we started to look at it, but as we already have a Broker deployed I was wondering if we could avoid deploying another one
👍 1
Thanks for the pointers and insights 🙏
👍 1
y
No problem my friend. You certainly could avoid having to deploy anything, hehe, by using Pactflow's broker, however for the open source community we provide plentiful options and the end user is welcome to utilise them in whichever environment suits. Best of luck with the journey to Pact Nirvana