Posts

Install Redis on Oracle Linux 7+

Install Redis on Oracle Linux 7+ Install Redis Permalink In this section you’ll add the  EPEL  repository, and then use it to install Redis. Add the EPEL repository, and update YUM to confirm your change: sudo yum install epel-release sudo yum update Install Redis: sudo yum install redis Start Redis: sudo systemctl start redis Optional : To automatically start Redis on boot: sudo systemctl enable redis Verify the Installation Permalink Verify that Redis is running with  redis-cli : redis-cli ping If Redis is running, it will return: PONG Configure Redis Permalink In this section, you’ll configure some basic persistence and tuning options for Redis. Persistence Options Permalink Redis provides two options for disk persistence: Point-in-time snapshots of the dataset, made at specified intervals (RDB). Append-only logs of all the write operations performed by the server (AOF). Each option has its own pros and cons whic...

Spring Boot Javers Integration

Image
Spring Boot Javers Integration: Spring Boot  has become a standard in the world of Java enterprise applications. Our Spring Boot starters simplify integrating JaVers with your application. All required JaVers beans are created and auto-configured with reasonable defaults. There are two starters compatible with Spring Data and common persistence stacks: JaVers Spring Boot starter for MongoDB , compatible with  Spring Boot starter for Spring Data MongoDB JaVers Spring Boot starter for SQL , compatible with  Spring Boot starter for Spring Data JPA Get JaVers Spring Boot starter MongoDB starter Add JaVers MongoDB and Spring Data MongoDB starters to your classpath: compile 'org.javers:javers-spring-boot-starter-mongo:5.6.3' compile 'org.springframework.boot:spring-boot-starter-data-mongodb:' + $SPRING_BOOT_VERSION    SQL starter Add JaVers SQL and Spring Data JPA starters to your classpath: compile 'org.javers:javers-sp...
Spring Boot + Crypto Vault Example Vault Configuration This guide walks you through the process of using Spring Cloud Vault to build an application that retrieves its configuration properties from HashiCorp Vault. What you’ll build You’ll start up Vault, store configuration properties inside Vault, build a Spring application and connect it with Vault. What you’ll need About 15 minutes favorite text editor or IDE JDK 1.8 or later Gradle 4+ or Maven 3.2+ You can also import the code straight into your IDE: Spring Tool Suite (STS) IntelliJ IDEA How to complete this guide Like most Spring Getting Started guides, you can start from scratch and complete each step, or you can bypass basic setup steps that are already familiar to you. Either way, you end up with working code. Install and launch HashiCorp Vault With your project set up, you can install and launch HashiCorp Vault. If you are using a Mac with homebrew, this is as simple as: $ brew install vault Al...
Microservices Using Spring Boot and Spring Cloud Microservices is the hot buzzword in software development and many organizations prefer building their enterprise applications using microservices architecture. In the Java community, Spring Boot is the most widely used framework for building both monoliths and microservices. I am planning to write a series of articles covering how to build microservices using  Spring Boot  and  Spring Cloud . In this article, we are going to learn about the following: Monoliths What are microservices? Advantages of microservices Challenges with microservices Why Spring Boot and Spring Cloud are a good choice for microservices Introducing the application Traditionally, we are building large enterprise applications in a modularized fashion (?!) but finally deploy them together as a single deployment unit (EAR or WAR). These are called monolithic applications. There are some issues with the monolithic architecture, s...