Hi,
We have an implementation that is basically split into API realisation components, Services and Data Providers.
Generally APIs are realised through one or more service calls which in turn have data populated by messages from one or more data provider interfaces.
Currently I have interfaces that basically return Collections of Entities and I am exploring turning these collections into streams of some sort.
I really like the concepts in reactive streams in that they can be driven by the consumer through back pressure interfaces - and reading the documentation I can find for reactive streams looks great for what I want.
So my question is now focussed on the vert.x reactive streams implementation (or other suggestions for streaming implementations);
- How do I apply transformations and filtering using the vert.x ReadStream or ReactiveReadStream?
ie: if I want to transform a stream with something like stream.map(x -> ...) or filter it like stream.filter(x -> ...)
These don't seem to be functions of the streams in vert.x and I am sure I am just missing something simple, but are yet to work it out
My current implementation (using collections) relies on chaining transformations together and filtering quite heavily and I was assuming that streams would support this just as well.
Any suggestions?
Regards
Darren