Implement CQRS Design Pattern with SpringBoot

preview_player
Показать описание
Based on architectural principles, such as Domain-Driven Design (DDD) and Command-Query Responsibility Separation (CQRS), Axon Framework provides the building blocks that CQRS requires and helps to create scalable and extensible applications while maintaining application consistency in distributed systems.

RECOMMENDED COURSES
---------------------------------------------------------------------------------------------------------

Follow us on :
--------------------------------------------------------

My Laptop :
------------------------------------------------------

Audio Gear :
------------------------------------------------------

Secondary Audio :
------------------------------------------------------

Recommended Books:
------------------------------------------------------

Music:
-------------------------------------------------------

#EventDriven #CQRS #Microservices #DailyCodeBuffer
Рекомендации по теме
Комментарии
Автор

Hundreds of Spring boot developer would be in need of this video.
Thanks man 😊

rakshithvp
Автор

This is clean and to the point example of CQRS. You are awesome.

arunbhati
Автор

All videos are very good and hit straight to the point without wasting the time. I like it all.

kirankumarmovva
Автор

The objective of cqrs is to segregate the read and write db, also important things to be note to sync the read db with write db, but in this video this part is missing, as its the crucial part of this pattern.

amarjeetnayak
Автор

Bro your content is awesome just do 1 favour. Arrange all the video in playlist. we have to find those

mohammadfahim
Автор

Greate video, thanks. but i've a question what happens if we have two databaes, one for read another for write. what we should do about data consistency?
you didn't seprarate the databases and i think the whole idea is separaing them

hamedabbaszadeh
Автор

Great tutorial ... Sir can you please make event driven architecture with kafka please

arghyamitra
Автор

Thanks for tutorial.
Do you think about Full in depth Spring Security. Would be awesome.

Scoty
Автор

Excellent way of explaining the concept... Found very helpful. Thanks a lot 😊

Phani.B
Автор

For everyone who get error "Parameter 0 of constructor in required a bean of type that could not be found."

This is compatibility issue between axon and spring boot, consider downgrading spring boot version to 2.7.x

koloyolo
Автор

Very useful video. Thanks for the content..

Lets_explore
Автор

Hi Shabbir, My question is, where you have imolemented fault tolerance and you haven't stored events in any database as eventstore using eventsourcing repo. if any thing fails in future we can use fail safe mechanism and we come over data losss scenarion in real world . if our events willl be persisted with db event store . i can see its available with axon server but what if we rebounced axon server then we lose the data, i have tried this. can you use rdbms to use as event store. you explanantion was really cool just add above point in your CQRS video.

reactaws
Автор

Hi Shabbir, thank you for the video. But I have one question, the CQRS example you took is sharing the same database. Isn't the whole point of CQRS is to make the applications loosely coupled? How do I connect my command and query databases and make sure they are in sync? Can we achieve it by sending the product object to a message queue and then having the query microservice listen to it and thus save it in its own database?

This is just my thought process, I don't know how exactly they do it in the industry.

updownftw
Автор

Also, can we have video series where we implement Microservices communication with ActiveMQ. This time, let's take more than 3-4 Microservices.

shubhamjumde
Автор

Hi,
Same code I’m implementing but CommandGateway bean is not creating . I tried to create bean using configuration but no luck . How can I resolve this issue ?

ashokkumar-cxof
Автор

I really dont understand purpose of Axon Framework here. What I understood is you are dividing one microservice into 2 parts one is command and another is query. Command Part will handle PUT/POST/DELETE request and Query part will handle GET request. As command part will store data in Database and through Events It will store in Axon Server and while fetching Data also you are fetching data first from Database and putting it in Axon classes and sending response. Why cant responses be send directly ?? If I want to fetch join queries then eventually I have to query DB for that then how does Axon is really helping here. Also for READ / Write you are using same DB instance. It's creating so much of confusion here

aakashkhatavkar
Автор

Good job sir, was working CQRS but i really struggled am well informed now

nicholasmaundu
Автор

Great video, thanks. What would be the optimal way to avoid here the copying of the product properties between the different classes?

Pest
Автор

whats the difference between kafka and axon.Why we are not using kafka....Please explain

PhoenixRisingFromAshes
Автор

Hi DailyCodeBuffer, easy explanation and setup, but I have one doubt here we still are not able to segregate writeDB and readDB, and this seems to be the important point to be considered for CQRS,
As of now, data is getting stored to and being read from sameDB

dikshaagarwal