Skip to content

Hexagonal Architecture implementation with Spring Boot, H2 persistence adapter, Kafka producer adapter, and multiple access methods (web service and file reading).

Notifications You must be signed in to change notification settings

mahdidaoud/hexagonal-architecture-implementation-springboot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steps to Run the App

  1. Open the folder of the project.
  2. Open a terminal and run the following command to start kafka container :

docker-compose up -d

  1. Use the pwd command in the terminal to get the current directory path and paste it into the file.path property in the application.properties file.

  2. Open the OfferServiceImpl class and locate the @Qualifier annotation.

  • If you set the value to "impl1", the app will use H2 database to persist data.
  • If you set the value to "impl2", the app will throw an event to Kafka when an offer is created.

About

Hexagonal Architecture implementation with Spring Boot, H2 persistence adapter, Kafka producer adapter, and multiple access methods (web service and file reading).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages