Skip to content

Input pagination without caches #2077

Answered by mihaitodor
kuthulas asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @kuthulas, you're welcome!

I'd like to avoid caches because I'm using Benthos in streams mode, and I don't prefer to keep this specific cache resource in the global configuration file for logistics reasons. I'd like to keep a stream's resources in its own configuration file.

OK, fair enough.

This works, but this would mean that the pipeline starts only after the scan is complete. This is a hot path and there might be a million keys in the database, so I cannot have it this way either.

That sucks... Unfortunately, you can't stream data from a processor.

In this case, I think the best thing to do is to write your own custom input similar to the examples that you can find here. You c…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@mihaitodor
Comment options

@kuthulas
Comment options

@mihaitodor
Comment options

Answer selected by kuthulas
@kuthulas
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants