Code Example
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...
Code Example
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,
...
Code Example
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....
AWS
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...
AWS
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...
AWS
Java Read Amazon S3 Object as String
In previous post you saw how to delete several S3 objects from Amazon S3 using Java AWS SDK. Today I'll show how to read specific S3 object and convert it to...