Skip to content

Data schema support #127

Description

@RobertIndie

Motivation

Our wasm function requires knowledge of the data schema to parse JSON data.

Goals

  • Support transfer of the data schema from function-stream host to wasm function

Implementation

We can employ pulsar-client-go to extract the schema in JSON format from the message.

One possible approach is to mount a specific file, say /schema, to the wasm function's wasi. We can then utilize the buffer_reader to write to this file.

When the wasm function wants to access the schema, we could transfer the schema through this file interface.

Activity

  1. RobertIndie commented on Jun 10, 2024

    @RobertIndie
    ContributorAuthor

    Done by #182

  2. self-assigned this
    on Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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