Giter Site home page Giter Site logo

Comments (9)

bethesque avatar bethesque commented on September 13, 2024

Note to self: https://github.com/jaswope/rack-reverse-proxy

from pact-ruby.

jagregory avatar jagregory commented on September 13, 2024

Regarding @bethesque's note to self, this is what we're doing at the moment:

require 'rack/reverse_proxy'
class Proxy < Sinatra::Base
  use Rack::ReverseProxy do
    reverse_proxy '/', 'http://monolith/'
  end
end

Pact.service_provider "Horrific Monolith" do
  app { Proxy.new }
end

We could probably do it with just plain Rack.

from pact-ruby.

bethesque avatar bethesque commented on September 13, 2024

Nice, thanks for the snippet.

from pact-ruby.

bethesque avatar bethesque commented on September 13, 2024

Ok, I've made a pact-proxy gem

https://github.com/bethesque/pact-proxy

@uglyog Not sure about some names.

pact-proxy or pact-provider-proxy ?
task.app_base_url or task.provider_base_url ?
Pact::ProxyVerificationTask or Pact::ProviderProxyVerificationTask ?

Give me cache invalidation any day over naming things...

from pact-ruby.

bethesque avatar bethesque commented on September 13, 2024

Having given it 5 minutes thought, I think that pact-provider-proxy might be a better name, because we may want to divide pact up into pact-provider and pact-consumer at some stage. I know Brent has started out that way.

from pact-ruby.

bethesque avatar bethesque commented on September 13, 2024

Tagging @jagregory Would love you to road test pact-proxy (or pact-provider-proxy as it may be called by then!) and let me know what you think.

from pact-ruby.

jagregory avatar jagregory commented on September 13, 2024

I'm up for that. I'll give it a go on Monday.

On Saturday, 14 December 2013, bethesque wrote:

Tagging @jagregory https://github.com/jagregory Would love you to road
test pact-proxy (or pact-provider-proxy as it may be called by then!) and
let me know what you think.


Reply to this email directly or view it on GitHubhttps://github.com/realestate-com-au/pact/issues/2#issuecomment-30556105
.

James Gregory

Tel: +61 (0) 411 619 513
Website: http://jagregory.com
Twitter: @jagregory http://twitter.com/jagregory

from pact-ruby.

bethesque avatar bethesque commented on September 13, 2024

Hey @jagregory, did you ever get to test this? I'd like to close this issue, but would love a 2nd party to test it.

from pact-ruby.

bethesque avatar bethesque commented on September 13, 2024

Closing.

from pact-ruby.

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.