Tags » scala
TIL: Getting the base directory of an sbt project
Some notes on printing sbt settings, so you can use them as the input to another script.
Running concurrent Try functions in Scala
If you have a function that returns Try[_], how do you call it more than once at the same time?
Comparing JSON strings when testing in Scala
There are lots of ways to format JSON. How do you know if two JSON strings have the same data, just differently formatted?
Streaming large objects from S3 with ranged GET requests
Reliably reading a large object by stitching together multiple GetObject requests into a single Java InputStream.
Iterating over the entries of a compressed archive (tar.gz) in Scala
Code to turn an InputStream into an Iterator of entries from a tar.gz file or similar compressed archive in Java/Scala.
Creating a locking service in a Scala type class
Breaking down some tricky code that allows us to lock over concurrent operations.
TIL: DynamoDB: Conditional updates on nested fields
TIL: How to iterate over the lines of an InputStream in Scala
Custom 404 responses in Finatra
A snippet for returning a custom 404 response in a Finatra app when somebody requests a missing page.
Implementing parallel scan in DynamoDB with Scanamo
Prototype code for running a parallel scan against a DynamoDB table, and using Scanamo to serialise rows as Scala case classes.