Blog

In this tutorial, you will learn how to implement the API Gateway Lambda Authorizer in Java. You will also learn how to make Lambda Authorizer validate Authorization JWT. First, we will create an API using API Gateway then we will make lambda function as an integration point for the GET method of our resource. After…

Read More API Gateway Lambda Authorizer Example in Java

In this tutorial, we will read user data from AWS RDS with an access token. You can have a look at the following tutorials before moving ahead. Build and deploy a Serverless Spring Boot Web Application with AWS Lambda AWS Lambda with Spring Boot – A Simple GreetMe Example Amazon Cognito User Authentication in Spring…

Read More Reading user data from AWS RDS with an access token

In this article, you will learn about RabbitMQ and explore its common use cases. I will also guide you step-by-step on how to implement messaging using RabbitMQ in a Spring Boot application. By the end of this article, you will know how to publish and consume messages in a queue. So let’s get started! What…

Read More Messaging with RabbitMQ in Spring Boot Application

In this tutorial, you will learn the basic fundamentals of Elasticsearch, Logstash, and Kibana ( ELK stack ). Additionally, you will learn how to set up the environment locally. Overview Observability is important in the world of DevOps. We mean by observability three things mainly: Monitoring Centralization of logs Tracing With the growth of microservices…

Read More Getting Started with Elasticsearch, Logstash, and Kibana (ELK Stack)

In this tutorial, we are going to learn that how we can use AWS Lambda to store user data in Amazon RDS. This tutorial is divided into three parts. Creating database using Amazon RDS. Creating Spring Boot Application. Testing Lambda function. We can refer to the following tutorials before going ahead. Build and deploy a…

Read More Using AWS lambda to store user data in Amazon RDS

In this tutorial, we are going to see how to insert records into a DynamoDB table using an AWS Lambda function written using Spring Boot Java. We are also going to add an AWS API Gateway trigger to the Lambda function and see how it works. To follow this tutorial, make sure that you have…

Read More Writing into DynamoDB in a Spring Boot App using AWS Lambda

In the previous blog post, we have covered how to grant access to certain endpoints based on the Role configured through code. As we know, Keycloak is the Identity and Access Management solution that provides out-of-the-box authentication and authorization services. One of the services includes a Fine-Grained Authorization Service. Fine-Grained Authorization Service provides businesses with…

Read More Fine-grained Authorization Services in Keycloak with Spring Boot

This tutorial is about creating an AWS Lambda function using Spring Boot and adding an S3 trigger to it. Amazon S3 or Simple Storage Service is a cloud object storage service offered by AWS. It is a scalable, high-speed, web-based cloud storage service to store data objects in a bucket structure. Ensure that you have…

Read More AWS Lambda with S3 Trigger using Spring boot

In the previous tutorial, we learned that how we can do User Authentication with Amazon Cognito in Spring Boot Application. In this tutorial, we will take our previous learnings and continue with the following. Create Rest Controller to handle /login HTTP POST requests. Read username and password from the request body to authenticate with Amazon Cognito…

Read More Amazon Cognito User Authentication in Spring Boot REST

To schedule a task in Spring Boot we use the @Scheduled annotation.  We place the @Scheduled annotation above the declaration of the method that should not expect any parameters, and the return type should be void.  Spring Boot internally uses the TaskScheduler interface to schedule the annotated execution methods. Schedule a task in Spring Boot – steps…

Read More How to Schedule a Task in Spring Boot

In this tutorial, you will learn to design and deploy the multi-container based Spring Boot application using Docker compose. To learn more about Docker, please check Docker Tutorials page. Overview In the previous tutorial, we learned how to Dockerize a simple Spring Boot-based application. As it was a small application we have handled each container…

Read More Docker Compose: Deploying Spring Boot Microservices

some data in a file import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.Resource; import org.springframework.util.FileCopyUtils; import java.io.*; import java.nio.charset.StandardCharsets; @SpringBootApplication public class DemoApplication { public static void main(String[] args) throws IOException { SpringApplication.run(DemoApplication.class, args); readFile(); } public static void readFile() throws IOException { // read a file Resource resource = new ClassPathResource(“classpath:data.txt”); // get inputStream…

Read More Read a File From the Resources Folder in Spring Boot

In this tutorial, you will learn to design and run in a Docker container a simple Spring Boot application that uses MongoDB. To learn more about Docker, please check Docker Tutorials page. Overview Docker is becoming an increasingly important tool in the DevOps process.  It allows you to package an application, along with all its…

Read More Spring Boot Application with MongoDB in Docker Container

In this tutorial, we are going to see how to create a simple Spring Boot project containing a handler that takes the name of the user as a parameter and returns a welcome message. We are then going to deploy it as a serverless application on AWS Lambda and test it. The first step is…

Read More AWS Lambda with Spring Boot – A Simple GreetMe Example