Part III: Azure Blob Storage Integration with Spring Boot Service

Updated: Feb 1


azure blob storage and spring boot service

In this blog, we will learn about using Azure Blob Storage with Spring Boot Service. Please check complete code on GitHub.


This is 3rd part of 5 part blog series.


Introduction


Microsoft Azure Storage is Cloud Storage that allows user to store both structured and unstructured data.


To get a basic understanding of Azure Storage, check out this blog.


Implementation


To get started with it, check out my first blog in this series, and look for How to Use Section.

You can also checkout my GitHub Documentation, it also has steps, to create new service, and once service is created, then you can follow below steps.

Check out my Sample Service implementation on GitHub.


There are two different implementations.

  • Using a multi-module project skeleton. ( For this implementation, I have created a custom parent and starter, that can be used instead of spring boot parent. Anyone can clone my repo, and get started with it.)

  • Doing everything by yourself. ( For this implementation, I will provide the steps, that can be used to integrate Azure Blob Storage with Spring Boot Service.)

Both implementations will perform the same job, but 1st implementation is an easy and efficient way. It has many different functionality, that can utilized in service, which will be discussed in other parts of this series.

Implementation1: Using a multi-module project skeleton


Check out my Sample Service implementation on GitHub.


This implementation has only 2 steps:


Step1: Use below pom.xml



Step2: Add Below content in the application.yml


How to use functionality?

  • Upload Blob


  • Delete Blob


  • Download Blob


Implementation2: Developing everything by your self.

Check out this implementation on GitHub.


Step1: Add below dependency in pom.xml



Step2: Add below content in application.yml



Step3: Create FileUtil class to use Azure Blob Storage Functionality


Thanks for reading. I hope these implementations will help you in integrating Azure Blob Storage with your Spring Boot Service.

Comments and feedback are most welcomed.


Please follow me on Linkedin, Github, and join our newsletter to keep yourself updated.


Thanks for reading. Happy Learning 😊

574 views

Recent Posts

See All