Coder Social home page Coder Social logo

Comments (7)

itowlson avatar itowlson commented on July 20, 2024 1

Oops sorry missed part of the question. The recommended application structure would be similar to HTTP - subdirectories under spin.toml, and component per subdirectory using workdir to hook them up to spin build.

from spin.

tpmccallum avatar tpmccallum commented on July 20, 2024

Part 2 on this topic ...

Is it possible to have a single application listen to more than one Redis channel? The reason for the curiosity is that spin add does not facilitate tacking on additional Redis components in the same application:

$ spin add redis-rust
Template redis-rust doesn't support the 'add component' operation

If someone did want more than one Redis component, and this is possible in Spin, what would the preferred application structure be?

from spin.

itowlson avatar itowlson commented on July 20, 2024

The user has added the component with the wrong path.

We can't error on the build because the build has succeeded - both build steps have correctly created the same output, at target/wasm32-wasi/release/redis_rust.wasm. It's the path in component 2 that doesn't match the build.

from spin.

itowlson avatar itowlson commented on July 20, 2024

It would be easy to add spin add support to the Redis template - just nobody invested the time to do it.

(If you're interested, I can show you how - otherwise please raise a separate issue and I can do it.)

from spin.

tpmccallum avatar tpmccallum commented on July 20, 2024

I would be interested in adding spin add support to the Redis template. Yes please.

from spin.

tpmccallum avatar tpmccallum commented on July 20, 2024

Great! I love that subdirectory and workdir config; it's neat!

from spin.

tpmccallum avatar tpmccallum commented on July 20, 2024

I will close this and contact you for a spin add tutorial :)

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.