Building a Data Pipeline with Kafka, Spark Streaming and Cassandra 1. Overview Apache Kafka is a scalable, high performance, low latency platform that allows reading and writing streams of data like a messaging system. We can start with Kafka in Java fairly easily. Spark Streaming is part of the Apache Spark platform that… Continue Reading kafka-spark-data-pipeline

A Guide to NIO2 Asynchronous Socket Channel 1. Overview In this article, we will demonstrate how to build a simple server and its client using the Java 7 NIO.2 channel APIs. We’ll look at the AsynchronousServerSocketChannel and AsynchronousSocketChannel classes which are the key classes used in implementing the server and… Continue Reading java-nio2-async-socket-channel

Returning a JSON Response from a Servlet 1. Introduction In this quick tutorial, we’ll create a small web application and explore how to return a JSON response from a Servlet. 2. Maven For our web application, we’ll include javax.servlet-api and Gson dependencies in our pom.xml: <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>${javax.servlet.version}</version> </dependency> <dependency> <groupId>com.google.code.gson</groupId>… Continue Reading servlet-json-response

Baeldung Weekly Review 37 At the very beginning of last year, I decided to track my reading habits and share the best stuff here, on Baeldung. Haven’t missed a review since. Some great pieces on both Java and Spring by @JavaOOQ, @darrel_miller, @hartleybrody, @takipid and @daveburkevt: http://t.co/6UBC0LnoOr — Baeldung (@baeldung)… Continue Reading 2015-week-review-37