Introduction To The Law Of Demeter In Java

Introduction To The Law Of Demeter In Java

Introduction The law of Demeter states that objects should only interact with their immediate surroundings. Specifically: That means, the methods of an object should only call methods on other objects that: And it should not call methods on objects that: Here is a simple diagram to illustrate the principle: Friends, Strangers??? OK, some new terminologies … Read more

Configure Spring Logging To Elasticsearch

Configure Spring Logging To Elasticsearch

Overview In this quick tutorial, I will show you how to configure Spring logging to Elasticsearch so you can search, visualize and do many useful things with your log. Things that you cannot do by looking at the console output. Let’s get started. Create ELK stack using Docker Compose If you don’t have Elasticsearch running … Read more

Use Cases of Redis In Software Systems

Use Cases of Redis In Software Systems

Overview Redis is an in-memory data structure store that is often used as a database, cache, and message broker. There are several benefits to using Redis, including: In this post, we are going to discuss the different use cases of Redis in software systems. Before you start, if you want to start a Redis instance … Read more