Author: Editorial Team
-
What is a PKCS#12 file?
1. Introduction In cryptography, PKCS #12 specifies a file format designed to securely bundle multiple cryptographic objects into a single archive file. It is commonly used to bundle a private key with its X.509 certificate or to bundle all the members of a chain of trust. A PKCS #12 file may be encrypted and signed.…
-
Spring Cloud Netflix
1. Introduction Spring Cloud Netflix provides Netflix OSS integrations for Spring Boot apps through autoconfiguration and binding to the Spring Environment. By using a few straightforward annotations, you can easily activate and configure common patterns within your application, enabling you to build robust distributed systems powered by reliable Netflix components. These patterns include Service Discovery…
-
Setup Service Discovery using Eureka server
1. Introduction In this tutorial we’ll discuss how to implement client side service discovery. Spring Cloud project makes Service Discovery setup very easy with the help of following components: 2. Setup Eureka server Following is the main dependency we need to add for eureka server. Here is the complete pom.xml: Add @EnableEurekaServer annotation to the…
-
Introduction to Service Discovery and Service Registration in microservices
1. Introduction In this tutorial, we’ll discuss why we need service discovery and service registration in microservices. Let us first understand the problem which service discovery and service registration tries to solve. Suppose we have three microservices: ‘Product’, ‘Order’ and ‘Delivery’. These microservices handle storing, fetching, and processing data, executing business logic, and responding to…
-
Liveness and Readiness probe in microservices
1. Introduction A liveness probe determines whether the container or application is operational. If it’s healthy, no intervention is needed as everything is running smoothly. If it’s unresponsive or unhealthy, corrective action, such as restarting the container, is triggered. In essence, the liveness probe verifies: “Is the container alive or not?” A readiness probe checks…
-
Refresh configurations at runtime using Spring Cloud Bus
1. Introduction If you have followed the tutorials till now, we set up our microservices with config server. But the problem with this approach. Whenever we want to refresh the configurations at runtime without restart, we have to invoke the refresh API for each microservice instance. To oversome this challenge we can use Spring Cloud…
-
Generate Docker image of Spring Boot application with Google Jib
1. Introduction In this tutorial, we’ll generate a Docker image of Spring Boot application with Google Jib. 2. What is Google Jib? Google Jib is an open-source Java containerization tool that allows developers to build Docker and OCI (Open Container Initiative) images for Java applications without needing a Docker daemon or writing a Dockerfile. Jib…
-
Complete Kubernetes – Hands on
1. Introduction In this tutorial, we’ll get some hands-on experience with Kubernetes. This is going to be a long tutorial as we’ll discuss various concepts. 2. ‘kubectl run’ command The kubectl run command is used to start a new instance of an application in Kubernetes, which is typically done by creating a Pod that runs…
-
Create a single node Kubernetes cluster on your laptop
Introduction In this tutorial, we’ll setup the single-node Kubernetes cluster with Docker Desktop. Step 1: Install Docker Desktop Docker Desktop is the easiest way to get Docker, Kubernetes, and kubectl on your laptop. At the time of writing this tutorial, Docker Desktop can be downloaded from the following link: https://www.docker.com/products/docker-desktop/ Windows users should install the…
-
Kubernetes Pods
1. What is a Kubernetes Pod? Pods are the smallest deployable units of computing that you can create and manage in Kubernetes. A Pod is a group of one or more containers, with shared storage and network resources, and a specification for how to run the containers. Each Pod is a shared execution environment for…
