Comments (7)
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.
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.
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.
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.
I would be interested in adding spin add
support to the Redis template. Yes please.
from spin.
Great! I love that subdirectory and workdir
config; it's neat!
from spin.
I will close this and contact you for a spin add
tutorial :)
from spin.
Related Issues (20)
- Added flexibility to Spin allowed outbound hosts
- inconsistencies when making outbound http requests HOT 1
- Custom trigger with other WASI worlds requires trait implementation for `spin_core::Data<T>` HOT 2
- SQLITE error after update from 2.5.1 to 2.6.0 HOT 3
- spin can not login docker private registry while docker login success HOT 5
- Follow OCI container image annotation standards when generating containers HOT 2
- Generate and sign SBOM through spin HOT 5
- Maintain a CHANGELOG.md file? HOT 2
- Spin (Re)Factors tracking issue
- Add native support for Golang, Python, and JavaScript Azure SDKs HOT 3
- Add native support for Golang and Python AWS SDKs
- Registry metadata support in application manifest HOT 3
- add MAINTAINERS.md file to each repository in Spin project HOT 1
- `spin update` An easier way to update to latest spin version HOT 1
- Endless re-compile in `spin watch` for Spin Apps that consist of multiple components HOT 1
- Hide old plugin versions in `spin plugins list`
- Spin-telemetry: consider eliminating the use of `set_global_default` HOT 1
- inconsistent preopened dirs between wasmtime and spin HOT 8
- Abstract pg client type in factor-outbound-pg
- Need CORS config for HTTP trigger HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spin.