Publishing from different thread
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.6k
- Forks
- 595
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with cs/samples/FasterLogPubSub/Program.cs and inspect how the FasterLog instance is shared between the producer and consumer. Determine whether producers from multiple background processes can enqueue while a consumer truncates consumed messages; done would require a documented answer or a clearly scoped implementation change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100