crossbario / crossbario/autobahn-python

Process-to-WAMP example

Open
#917 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement examples wamp
Dominant language
Python
Stars
2.5k
Forks
768
PR merge metrics
No merged PRs in 30d

Description

I've been asked whether we could add an example how to communicate with a forked process via WAMP - eg expose the functionality of an executable that is then started dynamically.

There are 2 scenarios here:

  1. the executable should be started, left running and communicated with over pipes. A WAMP session then exposes eg a procedure, and when that is called, some communication over (the existing) pipes happens
  2. the executable should be started "one shot", that is, upon an incoming call to a WAMP registered procedure, the executable should be forked (presumably with command line args and/or stdin derived from the WAMP call parameters) and waited for exit.

This could reside as a new example here: https://github.com/crossbario/autobahn-python/blob/master/examples/twisted/wamp/app/process2wamp

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

Start by reviewing the existing examples/twisted/wamp/app/process2wamp location and the surrounding Twisted WAMP examples. Define how the example should demonstrate both a persistent fork communicating over pipes and a one-shot executable invoked from a registered procedure; done means the example clearly covers the requested process-to-WAMP interaction.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.