JDBC Postgres Tutorial - How to Execute PostgreSQL Queries in Java Using the JDBC API

In this tutorial, we’ll learn how to connect to a Postgres database using JDBC, and run basic SQL queries in our Java application. For our Java application, we’ll be using a maven project structure. You can see the complete source code for this example on Github What Is JDBC? JDBC stands for Java Database Connectivity. It is a set of APIs that we can use to connect and execute queries on any compatible database, like PostgreSQL....

 · Soham Kamani

Implementing a Kafka Producer and Consumer In Java (With Full Examples) For Production

In this post we will learn how to create a Kafka producer and consumer in Java. We will also look at how to tune some configuration options to make our application production-ready. Kafka is an open-source event streaming platform, used for publishing and processing events at high-throughput. For this post, we will be using the offical Apache Kafka client library to implement our own producer and consumer in a Java application....

 · Soham Kamani

Deploying a Java Web Application to Google App Engine

In this tutorial we will learn how to deploy and run a Java Spring Boot application to Google App Engine. By the end of this tutorial, you should be able to run your own HTTP server on a public URL using the Java Spring Boot framework. App Engine Overview App Engine is a managed serverless platform that let’s you deploy and run your own applications while managing infrastructure operations. This means that you only need to manage your application code, while App Engine will take care of provisioning the actual servers, and deploying and hosting your application on those servers....

 · Soham Kamani

Creating a RESTful HTTP Server in Spring Boot (Java) - With Full Examples

This tutorial will explain how to run a RESTful HTTP server using the Spring Boot framework. We will learn how to build a HTTP server from scratch and create RESTful endpoints for making GET and POST requests. Next, we’ll learn how to work with different parts of the request and response, like JSON serialization, headers and HTTP status codes. By the end of this post you should have a good understanding of how to create and run your own RESTful web application....

 · Soham Kamani

A Complete Guide to Using Google BigQuery in Java (With Examples)

This post will highlight the basics of BigQuery and how to read, write and administer your BigQuery dataset in a Java application. BigQuery is a managed data warehouse, and is part of the Google Cloud Platform. We can use the official Java client to interact with our datasets. If you just want to see the example code, you can view it on Github BigQuery Jobs Every operation on a BigQuery dataset can be described in terms of a job....

 · Soham Kamani

Running a Maven Project from the Command Line (and Building Jar Files)

This tutorial will show you how to run a basic Java Maven project on the command line (as opposed to on an IDE). We will learn how to: Create a new maven project Compile and execute your Java code into an executable JAR file Add unit test for your code All of these tasks will be done on the command line, so that you can have a better idea on what’s going on under the hood, and how you can run a java application in environments that don’t have a full-featured IDE like Eclipse or IntelliJ....

Last Updated:   · Soham Kamani