Posts

Showing posts with the label Maven

Spring Boot MySQL Integration Tutorial

Image
Spring Boot MySQL Integration Tutorial Introduction         I was searching online for a complete tutorial on Spring Boot integration with MySQL database with all the CRUD operations and I was surprised that I could not find even one. The ones I found had just create and read operations or only view operation. Even the example on the official Spring website:  Accessing data with MySQL , has only create and view database operations. Hence I have come up with this post to give you a comprehensive overview of all the CRUD operations. I have also integrated HikariCP to the Spring Boot application. This will give you an optimized connection pooling. Please feel free to use my application as a base to build your own application. I am assuming that you have a Basic Knowledge of Spring Boot and have a Basic Spring Boot Application running in your machine. If not, please check my blog on Basic Spring Boot Application by going to the link:  Spring Boot Tutori...

Dropwizard Aerospike Tutorial

Image
Dropwizard Aerospike Tutorial Introduction         I was searching online for an end to end Dropwizard Aerospike Integration tutorial and I could not find even one. Dropwizard and Aerospike are being used extensively in many startups and other technology giants but there is not a single end to end tutorial online. Hence I decided to come up with this post. This post will give you a comprehensive overview of Dropwizard and Aerospike Integration. The use case that I am trying to address in this post is to call Aerospike from a RESTful Web Service. Aerospike can be used in multiple use cases, however in this post I am using it as a cache on top of a database so that I can retrieve the data that I frequently use, efficiently and much faster than retrieving it from the database. In this post, to keep things simple, I am not using a database instead I am creating and using a HashMap as my database.  ...

Dropwizard Redis Integration

Image
Dropwizard Redis Integration Introduction         I was searching online for an end to end Dropwizard Redis Integration tutorial and all I could find were a few GitHub projects with very minimal documentation. Dropwizard and Redis are being used extensively in many startups and other technology giants but there is not a single end to end tutorial online. Hence I decided to come up with this post. This post will give you a comprehensive overview of Dropwizard and Redis Integration.           Redis is an open-source in-memory database project implementing a distributed, in-memory key-value store with optional durability. Hence Redis is used for caching data so that it can be retrieved very quickly. So Redis is commonly used to store frequently used data from the Database so that it can be retrieved quickly and improve the application performance by not making frequent database calls. So in many cases we may need to store custom J...

Spring Cloud, Eureka and Zuul

Image
Spring Cloud, Eureka and Zuul Introduction         I was looking online for a simple end-to-end working example of Spring Cloud, Eureka and Zuul. I did not find a single post that gave a simple end-to-end implementation. I found so many posts that were really confusing and did not give a simple explanation of how these work together or how to set them up. Hence I came up with this post to explain how you can setup microservices using Spring Cloud, Eureka and Zuul. Eureka, Zuul and Ribbon Eureka, Zuul and Ribbon are part of Netflix Open Source Software (OSS). Eureka in simple terms is a Discovery and Service registration server. Multiple microservices can register themselves to Eureka at runtime. Zuul in simple terms is an Edge Server or a Gateway Service. It provides dynamic routing, monitoring, resiliency, security and a single entry point to multiple microservices. Zuul uses Ribbon to lookup available services in Eureka and routes the ext...