Java Spring Scopes Explained

Java Spring framework has several different bean scopes. Today I'll explain the meaning of each Spring beanscope. The scope of a bean defines the life cycle and visibility of that bean in...

Creating and Running Your First Chef Cookbook

Chef is a configuration management tool written in Ruby. Chef is used to streamline the task of configuring and maintaining a company's servers. Chef can be easily integrated with cloud-based platforms such...

Java Spring REST API with Empty or Optional parameters

Sometimes you need the ability to handle REST API calls with empty parameters. For instance we have following REST API: @RequestMapping(value = "/getJsonFile") public String getJsonFile(@RequestParam("instanceType") String instanceType, ...

Java Concurrency (Multithreading) – CompletableFuture Explained

Starting from Java 8 we finally have such an elegant and intuitive way to deal with concurrency with help of CompletableFuture. But the plenty of different CompletableFuture methods a bit confusing....

Java AWS SDK Create and Run EC2 Instance

Today I'll show how to create and run Amazon EC2 instance with public IP and tags using Java AWS SDK. The Subnet, VPC and the Security Group for that EC2 instance...

Java Generic Cache Map with Expiration

If you have many configuration files stored on S3 or on some other resource, you don't want your Java application to request them each time directly from the cloud because it's...