Let’s say we have a REST endpoint and we want to send a message via Spring’s Cloud Stream Kafka. Easy? Yes, if we’re using a legacy annotation model – yes. But what if we want to send a Kafka message, when someone calls…
Category: <span>Programavimas</span>
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…
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
I have just posted a blog in Zedge blog on Medium about using PostgreSQL databases in Live environments. If you want to know how to add a column to PostgreSQL database and not cause a downtime of the database, please take a look…
You have a running Kubernetes deployment with pods and want to restart all of them. How could you do that? If you have Kubernetes 1.15, simply try:
As for me, I’m constantly typing a couple of commands into the console. And some of these commands contain parameters. So, I’ve decided to create an alias for them. But how to create an alias with parameters? It’s simple:
If you want to run Docker Compose with Kafka and Zookeeper, you could use the following code:
I had a slight issue, of how to start MySQL server by using Docker Compose. So, I came up with the following configuration: Works 🙂
I have just started working with a Gradle project, that needs a simple way of incrementing its version. And I came up with a simple solution. Project’s version is following the standard: major.minor.patch. So, first of all create a version.properties file that looks…