Skip to content

Publishing from different thread #926

Open
@BertCotton

Description

@BertCotton

In the PubSub example (https://github.com/microsoft/FASTER/blob/main/cs/samples/FasterLogPubSub/Program.cs) it has a consumer operating on a different thread, but is it possible to have the producer be on a different thread?

My use case is I have a consumer that I want to be able to truncate all the messages when it has consumed them. I want other running threads to be able to enqueue on the log.

The examples usually have a shared instance of the FasterLog, but that isn't possible for me as I have multiple running background processes that I would like to be able to enqueue onto the FasterLog.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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