September 30, 2021

Building Microservices using Spring Boot + HarperDB and Deploying it on AWS

Welcome to Community Posts
Click below to read the full article.
Summary of What to Expect
Table of Contents

In this article, you will learn how to use Spring Boot and HarperDB to create a microservice. Later on, you will also look at how to deploy the complete application on AWS Elastic Beanstalk.

  1. Configure HarperDB instance at, create an instance, and receive a unique URL for REST calls.
  2. Create schemas and tables in HarperDB, e.g., Employee_Leaves schema with Employee and Leaves tables.
  3. Set up a Spring Boot app, add dependencies (including CData JDBC Driver for HarperDB), and create a connection service.
  4. Design REST APIs using a controller class with endpoints for handling employee leave data.
  5. Implement business logic in a service class for fetching, adding, editing, and canceling employee leaves.
  6. Test API endpoints using Postman to ensure functionality.
  7. Build a JAR file for the Spring Boot app using Maven.
  8. Deploy the app to AWS Elastic Beanstalk, configure environment variables, and ensure it runs on port 5000.
  9. Test the deployed application using the base URL and verify API endpoints work in the cloud.