Coder Social home page Coder Social logo

Comments (18)

TimBailey-pnk avatar TimBailey-pnk commented on May 30, 2024 2

As discussed with @mefellows I'd (my employer) be willing to help with NodeJS version that supports RabbitMQ and gRPC on top of the HTTP that exists already. We're not a Ruby shop so would prefer JS

from pact-specification.

mefellows avatar mefellows commented on May 30, 2024 2

Hi all,

I'm pleased to announce a bit of an update on this:

  • We now have a shared Ruby package with the minimal v3 implementation required to make messages (and other async things) work
  • We have beta versions of Pact JS and Pact Go with working examples

We'll be rolling these into all languages over the coming months.

cc: @gerrymcgovern1

from pact-specification.

mefellows avatar mefellows commented on May 30, 2024 1

Yes, it supports it via metadata (otherwise we'd need queue specific fields in the spec, which is not ideal). You'll need to look at the language specific docs for how this is done.

from pact-specification.

mkozjak avatar mkozjak commented on May 30, 2024

Any progress here?

from pact-specification.

bethesque avatar bethesque commented on May 30, 2024

Sorry @mkozjak, none that I know of.

from pact-specification.

uglyog avatar uglyog commented on May 30, 2024

The only work done in this area is with the JVM version and the Rust shared library. The idea with the shared library is that that can be used in other language implementations (JS, Ruby, Python, .NET, etc.)

from pact-specification.

mefellows avatar mefellows commented on May 30, 2024

FWIW the current strategic implementation of this would look something as follows:

  • Complete the v3 specification in Rust (both consumer and provider) - this is ~70%+ complete
    • This implies design work on how the interaction between the client and native library is completed
  • Refactor JS / other implementation DSLs
  • Embed shared library into implementations, starting with JS

from pact-specification.

gerrymcgovern1 avatar gerrymcgovern1 commented on May 30, 2024

Any update on this?

from pact-specification.

arkonchik avatar arkonchik commented on May 30, 2024

Can you answer, please?
When you will start and finish implementation of pact-v3 for php(approximately)?

from pact-specification.

mefellows avatar mefellows commented on May 30, 2024

We don't have specific dates, and we've already indicated approximate timelines. You could reach out to the contributors on pact php directly. Even better, help with it's development?

from pact-specification.

arkonchik avatar arkonchik commented on May 30, 2024

Thanks for reply

from pact-specification.

singlaive avatar singlaive commented on May 30, 2024

Any news?
Any progress on Python?

from pact-specification.

bethesque avatar bethesque commented on May 30, 2024

You'll need to reach out to the python library maintainers to let them know you're interested. The underlying code is done in the shared library.

from pact-specification.

klyff avatar klyff commented on May 30, 2024

Hello,
Does Spec v3 support MessageQueue for PACT Java?
I saw that she no longer has the @PactVerification annotation that calls the build method for message consumption.

from pact-specification.

mefellows avatar mefellows commented on May 30, 2024

Yes, Pact JVM definitely still supports messages. There are a few examples in the github repository

e.g. https://github.com/DiUS/pact-jvm/blob/master/consumer/groovy/src/test/groovy/au/com/dius/pact/consumer/groovy/messaging/PactMessageBuilderSpec.groovy and https://github.com/DiUS/pact-jvm/blob/master/consumer/junit5/src/test/java/au/com/dius/pact/consumer/junit5/AsyncMessageTest.java and

from pact-specification.

EvgheniiShipilov avatar EvgheniiShipilov commented on May 30, 2024

Does the specification support routing keys in any form? Ex. RabbitMQ would require specifying the destination exchange and routing key separately.

from pact-specification.

EvgheniiShipilov avatar EvgheniiShipilov commented on May 30, 2024

Yes, it supports it via metadata (otherwise we'd need queue specific fields in the spec, which is not ideal). You'll need to look at the language specific docs for how this is done.

What happens if we use pact to integrate 2 different language application? Shouldn't there be a language agnostic way to specify destination between services?

from pact-specification.

mefellows avatar mefellows commented on May 30, 2024

Yes, of course! The specification has them stored in the metaData field of the output contract. But that doesn't help you work out how to get it in there in the first place.

Each language has its own way of doing this (and not all languages support message pact).

e.g. in Pact JVM: https://docs.pact.io/implementation_guides/jvm/provider/junit/#example-of-message-test-that-verifies-metadata

from pact-specification.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.