Skip to content

Inter-function Communication Feature Asking #316

@DanielLee343

Description

@DanielLee343

Hi, Alex. Thanks for the clear guide on faasd!

I'm wondering if there's a feature for payload/data be transferred between functions, similar to OpenWhisk’s Action Sequence, Fn flow, or AWS Step Functions?

Say I have a stack.yml as follows

provider:
  name: openfaas
  gateway: http://127.0.0.1:8080

functions:
  fn1:
    lang: go
    handler: ./fn1
    image: fn1:latest
  fn2:
    lang: go
    handler: ./fn2
    image: fn2:latest

And each function is invoked by curl. I would like to feed fn2 with fn1's response body, or even send http request during function runtime (although not a best practice). I haven't found such feature in OpenFaaS documents. If any, is it relative to the architecture (Kubernetes/faasd)? Could you suggest any general best practices for multi-function communication in OpenFaaS? I appreciate that!

Due diligence

My actions before raising this issue

Before you ask for help or support, make sure that you've consulted the manual for faasd. We can't answer questions that are already covered by the manual.

Why do you need this?

Who is this for?

What company is this for? Are you listed in the ADOPTERS.md file?

Expected Behaviour

Current Behaviour

Are you a GitHub Sponsor (Yes/No?)

Check at: https://github.com/sponsors/openfaas

  • Yes
  • No

List All Possible Solutions and Workarounds

Which Solution Do You Recommend?

Steps to Reproduce (for bugs)

Your Environment

  • OS and architecture:

  • Versions:

go version

containerd -version

uname -a

cat /etc/os-release

faasd version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions