The Principles of Cloud-native Architecture

Defining “Cloud-native” Cloud native technologies empower organizations to build and run scalable applications in modern, dynamic environments such as public, private, and hybrid clouds. – Cloud Native Computing Foundation. Things like containers, service, meshes, microservices are all part of that approach according to their definition.  The cloud native is structuring teams, culture, and technology to… Read More The Principles of Cloud-native Architecture

Introduction to Microservices, Spring Boot, and Spring Cloud

What are Microservices ? loosely coupled service oriented architecture with bounded context”.  single applications being made above a suite of smaller services, very lightweight, typically HTTP around a certain business context,  Why are microservices architectures popular Desire for faster changes Need for greater availability Motivation for fine-grained scaling Compatible with a DepOps mindset Core Characteristics… Read More Introduction to Microservices, Spring Boot, and Spring Cloud

Build an API with Spring Boot

Build an API with Spring Boot To get started with Spring Boot, navigate to start.spring.io. In the “Search for dependencies” field, select the following: DevTools: Provides auto-reloading of your application when files change H2: An in-memory database JPA: Standard ORM for Java Rest Repositories: Allows you to expose your JPA repositories as REST endpoints Web: Spring… Read More Build an API with Spring Boot

Resetting the Root Password in MySQL: Windows Systems

Resetting the Root Password: Windows Systems On Windows, use the following procedure to reset the password for the MySQL ‘root’@’localhost’ account. To change the password for a root account with a different host name part, modify the instructions to use that host name. Log on to your system as Administrator. Stop the MySQL server if it is running. For… Read More Resetting the Root Password in MySQL: Windows Systems

The States of a Thread in Java

three thread states—new, runnable and terminated A program can access the state of the thread using Thread.State enumeration. The Thread class has the getState() instance method, which returns the current state of the thread. BasicThreadStates.java package com.appfworks.threads;/** * Created by suresh on 03/11/15. */class BasicThreadStates extends Thread { public static void main(String []s) throws Exception… Read More The States of a Thread in Java

Concurrent Programming in Java

Running multiple threads in parallel at the same time is called multi-threading or concurrency. The Object and Thread classes and the Runnable interface provide the necessary support for concurrency in Java. The Object class has methods like wait(), notify()/notifyAll(), etc., which are useful for multi-threading. all the objects have some basic multi-threading capabilities Important Threading-Related… Read More Concurrent Programming in Java