Have you ever wonder why we have 4 kinds of different nested classes? What is the main difference between them? How we use it and where?
Continue reading “Why we need Inner and Inner static classes in Java?”
Category: Java
Elasticsearch optimistic lock(Java)
Elasticsearch is an excellent search engine, but it has few complications. One of them is updating documents/records in the index and that’s because Elasticsearch does not support ACID transactions. Elasticsearch treats all its documents as immutable. Continue reading “Elasticsearch optimistic lock(Java)”
Kafka Test Suite (Java)
One of the common issues that I had with Kafka was an integration test(Java). I was searching on the web for a library which will include not only Kafka broker but also Confluent Schema Registry. I didn’t find one, so I went to kafka-streams-examples and extracted classes needed for running Kafka cluster programmatically.
Continue reading “Kafka Test Suite (Java)”
Java Synchronized spell out
In this post, I will throw light upon Java synchronized keyword. How to use it, what are the differences in implementation and best practices.
Continue reading “Java Synchronized spell out”
Actor Model – Java implementation
Recently I was watching Clean Code video series on Design patterns. I discovered for myself a revolutionary design pattern – Actor Model. Which allows systems with large numbers of asynchronous threads to share a common stack.
Continue reading “Actor Model – Java implementation”