Spring Boot Kafka Microservices - #5 - Create 4 Microservices


Welcome to Spring Boot Kafka Event-Driven Microservices Series. In this lecture, we will create 4 Microservices - OrderService, StockService, EmailService, and Base-Domains.

Lecture - #5 - Create 4 Microservices

Create 4 Microservices - OrderService, StockService, EmailService, and Base-Domains

While watching the video lecture, you can below details to quickly create microservices.

Create OrderService Microservice

Let's create a Spring boot project using https://start.spring.io/

Use the below details while creating an order-service project:

	<groupId>net.javaguides</groupId>
	<artifactId>order-service</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>order-service</name>
	<description>Demo project for Spring Boot Order Service</description>
	<properties>
		<java.version>17</java.version>
	</properties>

Add Spring Web and Spring for Kafka dependencies.

Create StockService Microservice

Let's create a Spring boot project using https://start.spring.io/

Use the below details while creating a stock-service project:

	<groupId>net.javaguides</groupId>
	<artifactId>stock-service</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>stock-service</name>
	<description>Demo project for Spring Boot Stock Service</description>
	<properties>
		<java.version>17</java.version>
	</properties>

Add Spring Web and Spring for Kafka dependencies.

Create EmailService Microservice

Let's create a Spring boot project using https://start.spring.io/

Use the below details while creating an email-service project:

	<groupId>net.javaguides</groupId>
	<artifactId>email-service</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>email-service</name>
	<description>Demo project for Spring Boot Email Service</description>
	<properties>
		<java.version>17</java.version>
	</properties>

Add Spring Web and Spring for Kafka dependencies.

Create BaseDomains Microservice

Let's create a Spring boot project using https://start.spring.io/

Use the below details while creating a base-domains project:

	<groupId>net.javaguides</groupId>
	<artifactId>base-domains</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>base-domains</name>
	<description>Demo project for Spring Boot and Base Domains</description>
	<properties>
		<java.version>17</java.version>
	</properties>

Add Lombok dependency.


Comments