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
This post shows how to create and use loops in Rust. There are three ways to create loops in Rust – using the loop, while, and for keywords. The Endless Rust
When using collection types, we sometimes do not want to use loops to display each value. For example, in Rust, we can display the content of an Array, Tuple, HashMap
We always work with string values. In Rust, we can check if a string value is numeric or not using the function is_numeric() on a char value. That means we
Sometimes we don’t want to load read all the content of a text file. For instance, we only want to see the last several lines. In Rust, we can use
This post about validating email addresses in Rust using the crate regex and regular expressions based on this other post.
In Rust, we can run codes when an instance is about to be destroyed. This post briefly demonstrates how to perform just that.
This post demonstrates how to use Java ExecutorService and AutoCloseable with try-with-resources. With ExecutorService, we need to call the shutdown method all the time. However, call the shutdown method means
This post is about the sorting algorithm Selection Sort in Rust using recursion and iteration. Rust Selection Sort Using Recursion The sample Selection Sort codes in this post that use
In Rust, there are two excellent crates that can convert struct instances to and from JSON. These are perfect for creating RESTful APIs that consume and produce JSON content. These
This post is about Rust thread synchronization with Barrier using std::sync::Barrier which is part of Rust’s standard library. Therefore, we do not need external dependencies to make things work. Basic