Posts

Showing posts from October, 2018

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 documentation to it. Step 1

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 the other example counts the occurrences of a wo