Git Product home page Git Product logo

Comments (7)

yakovkhalinsky avatar yakovkhalinsky commented on July 25, 2024

Hey @kosmotaur that actually sounds like a really useful feature 👍

How about including it as an extra option/argument, in addition to the -f option.

from drakov.

yakovkhalinsky avatar yakovkhalinsky commented on July 25, 2024

Just been discussing this and we are thinking carefully about how this effects our policy of respect the spec files.

I'm starting to think this would bring some confusing behaviour to Drakov and would endanger the simplicity of just obeying what is in the specs.

There is currently nothing stopping you from breaking up your spec files into separate directories as the --file or -f argument takes a glob expression that can load files nested inside a directory/folder structure.

ping @SiCurious

from drakov.

SiAdcock avatar SiAdcock commented on July 25, 2024

The key reason we cannot use the -f option is that we are not running the Drakov server locally, it is hosted on a company-wide accessible server.
We have a CI pipeline around the blueprints themselves, so that whenever we agree on a change to the APIs, they get deployed automatically. All of them are accessible to the whole company. We cannot at a given point in time just use a glob to now run v1 or anything along these lines. We need all blueprints accessible at all times, so that different clients can be developed and automatically tested against them.
As to the "respect the spec files" policy, that's why this would be an option, so by default you keep your policy, but also allow for flexibility in a larger, industry scale use case.

@SiCurious and @kosmotaur

from drakov.

yakovkhalinsky avatar yakovkhalinsky commented on July 25, 2024

Are the actual endpoints the same in each version?

Would it possible to run multiple servers?

from drakov.

kosmotaur avatar kosmotaur commented on July 25, 2024

We could work on a drakov-cluster module, which could spin up multiple instances of Drakov, do the pre-routing and proxy the requests into the respective instance.
Quite a bit of overhead though, so we'll need to consider this vs. forking Drakov if it's a no-go for you.

from drakov.

yakovkhalinsky avatar yakovkhalinsky commented on July 25, 2024

The drakov-cluster idea is intriguing.

A recent PR that I did added support for using a config file, this will make it easier to load multiple configurations if needed.

This idea appeals to me as it would allow us to keep the basic functionality of drakov the same.

If that is the solution for you guys, I'm happy to work on that for the next release.

from drakov.

yakovkhalinsky avatar yakovkhalinsky commented on July 25, 2024

@SiCurious @kosmotaur see #72

I'm happy to discuss this in more detail in the new issue that I have created.

from drakov.

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.