-
Maximizing read throughput of ScyllaDB table scan using shard-awareness
Test. To read a set of token ranges do the following: We want this… …instead of this. The Task We want to read a given set of token ranges as fast as possible. This can be a full table scan, reading only token ranges for which a Scylla node is the primary replica, or any…
-
Release a Gradle Project Using GitLab CI/CD Pipeline
Release and publish a Gradle project from GitLab CI/CD pipeline to a Maven repository.
-
Introducing ReactiveInflux: non-blocking InfluxDB driver for Apache Spark
The first release of ReactiveInflux developed at Pygmalios – a non-blocking driver for both Scala and Java featuring immutability, testability and extensibility. Comming with a support for Apache Spark it is the weapon of choice.
-
Fighting NotSerializableException in Apache Spark
Using Spark context in a class contructor can cause serialization issues. Move the logic and variables to a member method to avoid some of these problems.
-
Exclude log4j to use slf4j with logback in a Gradle project
The goal is to remove log4j from all transitive dependencies in a Gradle project and replace it by slf4j and logback.
-
Remote Monitoring of Apache Cassandra running in Docker via JMX using Datadog
Step-by-step guide on how to remotely monitor Apache Cassandra in Docker container via JMX using cloud monitoring service Datadog.
-
Integration testing with Gradle
Unit testing works aically using Gradle, but if you would like to have a separate set of integration tests you need to do a small exercise. Actually they don’t have to be integration tests at all. This guide shows you how to configure Gradle to use any kind of tests and run them independently from…
-
Build and release Scala/Java Gradle project in GitLab using Jenkins to Artifactory
I am going to show in detail how to regularly build your project and then how to make a release build. It involves cooperation of a number of tools which I found tricky to set up properly, that’s why I wrote this. The goal I am about to show you how to achieve two following…
-
Publish JAR artifact using Gradle to Artifactory
So I have wasted (invested) a day or two just to find out how to publish a JAR using Gradle to a locally running Artifactory server. I used Gradle Artifactory plugin to do the publishing. I was lost in endless loop of including various versions of various plugins and executing all sorts of tasks. Yes,…
-
Scala for-comprehension with concurrently running futures
Can you tell what’s the difference between the following two? If yes, then you’re great and you don’t need to read further. Version 1: val milkFuture = future { getMilk() } val flourFuture = future { getFlour() } for { milk <- milkFuture flour <- flourFuture } yield (milk + flour) Version 2: for {…