Rust framework Rocket goes stable, starting with version 0.5 and Rust 1.45.0. No doubt, it is one of the best frameworks out there. However, it requires Rust Nightly. When I started learning Rust, I needed to choose between Actix-Web and
Spring Boot Consul Service Discovery And Client Example
This post shows how to use Spring Boot Service Discovery with Consul. We’ll have two Spring Boot applications. One application registers itself with Consul. It then becomes discoverable to another application. Meanwhile, the other application does not register itself with
Spring Boot Consul Distributed Configuration Example
This post shows an example of a Spring Boot application that consumes distributed configuration from a Consul instance in a local development environment setup. We’ll generate a Spring Boot project and then modify it a bit to access Consul. Requisites
Monitor Directory for File Creation Using Only Java
In batch processing, some use-cases require event triggers to start operations on data sources, e.g., files or remote web endpoints. These could be user events like clicking a button. On the other hand, they could be system events like file
Java – Deploy Java CLI Application to Docker Image
With Docker, we can create portable Java CLI applications for various environments by pre-building container images. These images could make deployment a lot easier and less messy in particularly in Production environments. This post briefly demonstrates how to create a
Java – Sort an Enum type by its properties
When we sort an array or collection of Enum types, the sort order is based on the natural order.
Proper Implementation Of Singleton Pattern in Java
This post shows the proper implementation of the Singleton Pattern in Java. Many of us would apply it in the most convenient way but not the proper one. In most cases, our codes would work. But when we deal with
docker-compose.yml for MySQL For Local Development
This post provides a another basic docker-compose.yml .This time is to create a MySQL container with initial user accounts.
Working With Dates And Times In Ruby – Format / Compute
Without using any Ruby gems, Time is the class we can use when working with dates and times. It represents the number of seconds with fraction since the Epoch, January 1, 1970, 00:00 UTC. The Time class treats GMT (Greenwich
Ruby vs Java – Read and Write Text Files
This post demonstrates how to read and write text files in several scenarios. It makes some short references to equivalent Java concepts and codes.