Tuning Akka Cluster Sharding Passivation to Reduce Reactivation Latency
Idle actors in Akka Cluster Sharding can cause latency spikes when reactivated. Learn how to tune passivation and verify shard placement.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Idle actors in Akka Cluster Sharding can cause latency spikes when reactivated. Learn how to tune passivation and verify shard placement.
A concise guide to using Scala for‑comprehensions, verifying their desugaring to map/flatMap/filter, and addressing performance concerns in Scala 3.
Stop relying on runtime null checks. Scala's Option[T] forces you to handle the absence of data explicitly via pattern matching, leading to compile-time safety and robust systems.
A practical diagnostic guide for Scala NoSuchElementException: None.get. Identify the throw site, trace the Option origin, apply targeted fixes, and know when to escalate.
Learn how to add status, JSONPath and global assertions to Gatling simulations, verify failures in CI, and recover with targeted reruns.
A decision guide for Scala error handling: compare exceptions, Try, Either, Validated, cats-effect IO, and ZIO with a concrete Either implementation.
Learn how to migrate Akka actors to the Typed API for compile‑time message safety, with a concrete counter example, migration steps, and trade‑offs.
Learn why Scala case classes give you immutable data with built‑in equality, copy, and pattern matching, plus how to avoid common pitfalls.
Scala 3's deriving mechanism uses compile-time Mirror introspection to generate type class instances for case classes and sealed traits automatically. This walkthrough shows a minimal JSON codec, explains product vs sum derivation, and covers compile-time costs and Scala 2 limitations.