score:1
Accepted answer
there isn't a single solution for that. what you should do is to start experimenting and see how your application behaves under normal usage. define a size for the queue, start working on it, measuring latency, contention and errors. eventually you will find a good number to your app.
one thing i've heard once from a netflix guy is that queues will always be clogged and they won't move anywhere. so you must also decide when it's time to give up trying and and just fail.
Source: stackoverflow.com
Related Query
- RDS connections queue size strategy
- What to do when hitting the queue size of slick?
- Why is the queue size of a ScheduledThreadPoolExecutor always 0?
- How to specify JVM maximum heap size "-Xmx" for running an application with "run" action in SBT?
- How to set heap size for sbt?
- Scala - What is the difference between size and length of a Seq?
- Increase JVM heap size for Scala?
- Spark: what's the best strategy for joining a 2-tuple-key RDD with single-key RDD?
- Scala macros and the JVM's method size limit
- Kafka - Delayed Queue implementation using high level consumer
- Why doesn't the Scala List have a size field?
- Is there a Round Robin/Circular Queue available in Scala Collections
- Why did Scala's library double its size between 2.7 and 2.8?
- Pattern matching lists of certain size or greater/less
- how to expand size of Java stack trace to see bottom of stack? (triggering a stack overflow)
- Maximum Length for scala queue
- How to estimate the serialization size of objects in Java without actually serializing them?
- (Play 2.0) Set maximum POST size for AnyContent
- scala mailbox size limit
- Change priority of items in a priority queue
- Scala Buffer: Size or Length?
- Better alternative to Strategy pattern in Scala?
- Spark: Repartition strategy after reading text file
- How to set heap size in play/activator?
- How to find file size in scala?
- Limiting maximum size of dataframe partition
- Specifying the size of a HashMap in Scala
- Is it possible/advisable to have a different supervision strategy for different children of an Akka 2 actor?
- Can I limit the size of an array in Scala?
- Why is the Scala for-loop (and internals) NumericRange restricted to Int size and how to elaborate the functionality?
More Query from same tag
- month difference between two dates in Scala
- Serialize/Broadcast large Map in Spark + Scala
- get parent element with scala-scraper
- string to key-value conversion in spark scala
- setting paytm callback url to localhost
- Dataframe: Adding prefix to all columns in Scala
- How to Import Scala Map from Another Scala File
- How do I create dynamic queries using Slick?
- Spark: what options can be passed with DataFrame.saveAsTable or DataFrameWriter.options?
- scala generics and inheritance
- how to write test case for rest service in scala akka(spray)
- Trouble getting scala type inference to work
- How to find duplicates in a list in Scala?
- Handling Pk[Int] values in spray-json
- Chisel not finding the implicit value of a parameter
- Iterate over fields in typesafe config file
- How to update present values in a mutable.Map?
- How to return Unit from a scala function?
- Return tail if list is not empty or return empty list
- Web log data extraction using regex
- An underscore on the right hand of generator
- Trying to make sequential executing of futures. What is wrong?
- In Scala is there a nicer a way to express the following inheritance?
- Why Java HashMap put is not working in Spark Scala?
- Akka Streams - Split incoming sources data based on some predicate
- Akka Streams filter & group by on a collection of keys
- How to read csv file and convert one column to Map[String, String] type in Scala+Spark?
- Flatten function
- Missing parameter type for expanded function in Scala ArrayBuffer
- How risky is it to call Await.result on db calls