Posts

Spring Boot REST API Documentation With Swagger

Image
Spring Boot REST API Documentation With Swagger Introduction         In this tutorial, we will be integrating a Spring Boot Application with Swagger API documentation. In this post I will be covering only the basic configuration. Advanced configurations and security configurations are not covered in this post. Swagger API Documentation Swagger takes the manual work out of API documentation, with a range of solutions for generating, visualizing, and maintaining API docs. For more details visit: Swagger Website . Requirements to Run the Application: Java Maven IDE of your choice 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 Tutorial Once you have a Basic Spring Boot Application running in your machine, here are the additional steps required to add Swagger API docum...

Spark Streaming and Kafka Integration Example

Image
Spark Streaming and Kafka Integration Example Introduction         My search online for a good tutorial on Big Data processing using Spark Streaming and Kafka ended up in a bunch of old posts which had very old versions of Spark and Kafka client libraries. They were of no use to me if I wanted to use the newer versions of the libraries. Hence I decided that I should share my experience with the newer versions of the libraries. This was the motivation for me to come up with this post. This post will give you a comprehensive overview of Spark Streaming and Kafka Integration. The use case that I am trying to address in this post is to process streaming data from a topic on Kafka using Spark Streaming. This is a very common use case that many organizations large and small are implementing these days.         I will be presenting 2 examples in this post. One example will print the stream of data from a Kafka Topic as it receives it and...

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...