Category Archives: Scala

Print stacktraces for all threads on shutdown

If your microservice stops responding from time to time, and they only way out is to kill it with SIGINT or SIGTERM then adding a shutdown hook might be the way to go. Do note that this will not work … Continue reading

Posted in debugging, JAVA, JVM, Scala | 1 Comment

Cassandra set the writetime explicitly with a PreparedStatement

This is a quick one, I wanted to set the writetime of a row explicitly when I populate the database for testing purposes. We use the writetime of a column to filter them out. It required some looking around to … Continue reading

Posted in Cassandra, JAVA, Scala | 1 Comment

SBT Good to know…

Dependecy problems I have been having some difficulties figuring out what depends on what. I found the following set plugins which I think can be really helpful; https://github.com/jrudolph/sbt-dependency-graph and https://github.com/gilt/sbt-dependency-graph-sugar Be sure to install GraphWiz first, I used Homebrew on … Continue reading

Posted in SBT, Scala | 1 Comment