spinframework / spinframework/spin

Multiple handlers per component

Open
#1,005 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
6.5k
Forks
310
Avg merge
1d 20h
Merged PRs (30d)
24

Description

This is an awesome project! I was wondering how difficult it would be to add a second handler (redis) to a component. I'd like to be able to follow a flow similar to:

Start compone listening to channel A
Subscribe to channel B
Publish message to channel C
Wait for message on channel B
Process
Exit

Is this functionality already possible? If not would this require changes to the runtime as well as the internal redis library?

Thank you 🙏

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin with the runtime and internal Redis library mentioned in the issue; trace how a component starts, subscribes, publishes, waits, processes, and exits. Determine whether multiple handlers are already supported and, if not, establish the runtime and Redis-library scope needed to support the requested flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
redis, rust
Domain
backend, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.