Category: <span>Programavimas</span>

I have encountered the following problem: Nasty thing. It says, that HikariCP can not acquire a new database connection and it gave up after some 30 seconds. Where is the problem? Let’s try to simulate the problem. We want to query database and…

Programavimas

A while ago we’d created docker-compose.yml for Kafka and Zookeper. Today I’ve noticed the problem with the old configuration – it looks like it does not work properly with Test Containers. So, I have replaced the old configuration with Confluent’s Kafka and Zookeeper:…

Programavimas

Programavimas

Programavimas

In order to know how long it takes to get a response from external system, we could use curl: If you don’t need to see response, add -o parameter: curl -o /dev/null -s -w ‘Total: %{time_total}s\n’ ‘http://www.example.net/some/url/here’

Programavimas

You have two versions of JDK – let’s say Java 11 and Java 17 installed on your Mac. And you want to switch between default version – how could you do that? It’s simple. First of all, let’s figure out what Java versions…

Programavimas

Programavimas

I use Kafka in my Docker Compose file. My docker-compose.yaml looks like this: Unfortunately, when I start and restart Kafka’s instance in Docker Compose I was constantly getting random errors. After some googling, I found that KAFKA_ADVERTISED_HOST_NAME is deprecated – please see https://github.com/wurstmeister/kafka-docker/wiki/Connectivity…

Programavimas

Programavimas

I have just posted an article on Zedge blog on Medium about Kotlin’s extension functions. If you’re interested, please take a look: https://medium.com/zedge/extension-functions-in-kotlin-44563d7880f5

Programavimas