#Reactive Programming (with respect to Memoization and Sorting)

8 messages · Page 1 of 1 (latest)

sick raft
#

In java, does a reactive backend (webflux) have any special interactions with memoization or sorting?

Like say my task is to conduct a process that requires memoization.

Maybe I am generating fibonacci numbers from 1 to 100 (huge ass number) and then sorting them.

I will eventually emit these through a REST api.

Can using a Flux or reactive program affect this process (negatively or positively)? I don't know how to properly use a flux with this?

My plan is to manually do the memoization and merge sort (with primitives and Java arrays) and then just convert the array to a Flux at the end. But i don't know if this is optimal

vagrant knotBOT
#

This post has been reserved for your question.

Hey @sick raft! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

vagrant knotBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.

sick raft
#

Bump

vagrant knotBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.

desert dagger
#

if its cold flux i.e the data doesnt change by subscription i think its fine .. but not expert in reactor

#

i dont think using sort operator is great idea. i think it will do a sort for each subscription which you dont want.