Monix is a library providing asynchronous programming facilities for Scala and Scala.js.
Questions tagged [monix]
94 questions
0
votes
1 answer
Hot observable consume with different frequency
I am working on a simple example for the task I am trying to complete.
Let's say there is a list of tasks (tasks) that I want to trigger every 1 second.
That could be done with a scheduler or whatever.
Now there are two consumers of this stream,…

Atais
- 10,857
- 6
- 71
- 111
0
votes
2 answers
Why mapping a class A to class B with monix or akka-streams is so slow?
I've benchmarked the mapping of a List[ClassA] to List[ClassB] with monix and akka-streams but I don't understand why it is so slow.
I've tried different way to map and here is the result with JMH:
[info] Benchmark …

Bounkong KHAMPHOUSONE
- 183
- 1
- 10
0
votes
1 answer
Getting Cassandra query results asynchronously using Scala + Monix
I'm building a REST API using AKKA Http, Monix and Datastax Java Driver for Apache Cassandra and I'm having some troubles while trying to fetch some Items from cassandra, wait for the query to be fulfilled and returning the results.
I'm able to…

AndreaM16
- 3,917
- 4
- 35
- 74
0
votes
2 answers
Limit the number of retries when using Monix Observable's .onErrorRestartIf?
Monix observables have the apis .onErrorRestartIf(f: Throwable => Boolean) and .onErrorRestart(times: Int). How to specify the maximum amount of times it should retry doing .onErrorRestartIf?

JVS
- 521
- 6
- 18