Coder Social home page Coder Social logo

Handle versioned interfaces about spin HOT 6 OPEN

fermyon avatar fermyon commented on September 20, 2024
Handle versioned interfaces

from spin.

Comments (6)

lann avatar lann commented on September 20, 2024

I predict this is going to be a problem very soon after open sourcing.

from spin.

radu-matei avatar radu-matei commented on September 20, 2024

Why soon after open sourcing?
I was thinking we needed to fix this as we approach the first stable release, at v1.
Then, when we introduce v2, we'd need to make sure we can safely execute v1 components.

from spin.

lann avatar lann commented on September 20, 2024

We can't make any backward-incompatible changes to an interface (including things as simple as reordering struct fields I think) without running into this right?

from spin.

radu-matei avatar radu-matei commented on September 20, 2024

That is correct, if we make any changes to anything in the interface, all components targeting it would have to be rebuilt.

The main question here is less related avoiding breaking changes this early on, and more to making sure the configuration is structured such that we can introduce the versioned objects at some point.

One option this could go is: at some point we decide on V1 for the current interfaces, and tag the current corresponding executors as V1 as well.
If we want to make any backwards incompatible change, we start V2 for both interfaces and executors, and, if everything went as expected, we could run V1 and V2 components side-by-side.

(one big thing here is that even for V1 executors, we will need to keep the Wasmtime versions in sync for us to be able to run them in the same Cargo project.)

Is this aligned with what you were thinking about?

from spin.

lann avatar lann commented on September 20, 2024

Yeah, I think this plays into a larger theme of stability guarantees. We should be explicit about how (un)stable these interfaces are.

from spin.

itowlson avatar itowlson commented on September 20, 2024

Removed "for entry points" from title as I envisage it being an issue for outbound interfaces too!

from spin.

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.