Skip to content

Async getUpstream #408

Description

@JonathanHopeDMRC

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the feature has not already been requested

🚀 Feature Proposal

The getUpstream callback can be sync or async.

Motivation

We have a (probably unusual) need for getUpstream to support async. We have a sophisticated tenancy strategy that requires us to reach out to dbs/caches/etc to resolve the correct upstream.

Example

reply.from(/some/path', {
  getUpstream: async () => { return await someAsyncFunc() }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions