Code With Pratik
Code With Pratik
  • 119
  • 339 978
13. Spring Boot| CQRS| Testing Query functionality using postman | #codewithpratik @PratikDandare
In Axon, an aggregate is a domain object that models a transactional consistency boundary. An aggregate receives commands, which represent changes to the state of the aggregate, and produces events, which represent the outcome of those changes.
The @Aggregate annotation indicates that this is an Axon aggregate. The @AggregateIdentifier annotation specifies that the empId field is the identifier for this aggregate.
The @CommandHandler annotations specify the methods that handle commands for this aggregate. The @EventSourcingHandler annotations specify the methods that handle events for this aggregate.
In the Axon Framework, a @CommandHandler annotation is used to mark a method that handles a specific command message. When a command is sent to the Axon Framework, it will automatically route the command message to the appropriate @CommandHandler method based on the command's payload type.
Axon provides other annotations, such as @EventSourcingHandler and @QueryHandler, that allow you to handle events and queries respectively. These annotations work in a similar way to the @CommandHandler annotation, but are used for different types of messages.
==================================================================================================================================
check source code here : github.com/PratikBlog92/youtube
PowerPoint presentations link : github.com/PratikBlog92/youtu...
for discussion on any topic join this Facebook group : groups/86300...
#codewithpratik
@PratikDandare
#axon
#springboot
#cqrs
Переглядів: 410

Відео

12. Spring Boot| CQRS| Handling query using @QueryHandler | #codewithpratik @PratikDandare
Переглядів 456Рік тому
In Axon, an aggregate is a domain object that models a transactional consistency boundary. An aggregate receives commands, which represent changes to the state of the aggregate, and produces events, which represent the outcome of those changes. The @Aggregate annotation indicates that this is an Axon aggregate. The @AggregateIdentifier annotation specifies that the empId field is the identifier...
11.Spring Boot| CQRS| QueryGateway| Sending query using querygateway|#codewithpratik @PratikDandare
Переглядів 592Рік тому
In the Axon Framework, a @QueryHandler annotation is used to mark a method that handles a specific query message. When a query is sent to the Axon Framework, it will automatically route the query message to the appropriate @QueryHandler method based on the query's payload type. In Axon, an aggregate is a domain object that models a transactional consistency boundary. An aggregate receives comma...
10 Spring Boot| CQRS| Testing command functionality using postman| #codewithpratik @PratikDandare
Переглядів 524Рік тому
In Axon, an aggregate is a domain object that models a transactional consistency boundary. An aggregate receives commands, which represent changes to the state of the aggregate, and produces events, which represent the outcome of those changes. The @Aggregate annotation indicates that this is an Axon aggregate. The @AggregateIdentifier annotation specifies that the empId field is the identifier...
9. Spring Boot| CQRS| Create and handle @EventSourcingHandler and @EventHandler| #codewithpratik
Переглядів 717Рік тому
In Axon, an aggregate is a domain object that models a transactional consistency boundary. An aggregate receives commands, which represent changes to the state of the aggregate, and produces events, which represent the outcome of those changes. The @Aggregate annotation indicates that this is an Axon aggregate. The @AggregateIdentifier annotation specifies that the empId field is the identifier...
8.Spring Boot| CQRS| Create @Aggrigate |Handling commands using @CommandHandler| #codewithpratik
Переглядів 861Рік тому
In Axon, an aggregate is a domain object that models a transactional consistency boundary. An aggregate receives commands, which represent changes to the state of the aggregate, and produces events, which represent the outcome of those changes. The @Aggregate annotation indicates that this is an Axon aggregate. The @AggregateIdentifier annotation specifies that the empId field is the identifier...
7.Spring Boot | CQRS |Command Gateway |Creating Command |@TargetAggregateIdentifier| #codewithpratik
Переглядів 1,3 тис.Рік тому
@TargetAggregateIdentifier is an annotation in the Axon Framework, which is a Java framework for building event-driven, scalable, and resilient applications. The @TargetAggregateIdentifier annotation is used to mark a field or method in a command handling method, indicating that the value of this field or method should be used as the identifier of the aggregate that the command is targeting. Co...
5. Axon Server | Enabling Dev Mode to Reset Event Store | #axon #codewithpratik @PratikDandare
Переглядів 966Рік тому
axoniq.axonserver.devmode.enabled is a configuration property that relates to Axon Server, a messaging and event-sourcing platform for building distributed systems. This property enables or disables development mode in Axon Server. When axoniq.axonserver.devmode.enabled is set to true, Axon Server will allow clients to connect using any client ID without authentication. This is useful for devel...
4. What is CQRS? | CQRS Architecture | CQRS flow diagram | @PratikDandare #codewithpratik
Переглядів 859Рік тому
CQRS (Command Query Responsibility Segregation) is an architectural pattern that separates the read and write operations (i.e., commands and queries) of a system into separate models. The idea behind CQRS is to have a separate model for reading and writing data, where the write model handles commands that change the state of the system, and the read model handles queries that retrieve data from...
6.Spring Boot - Axon Server | How to connect Spring Boot With Axon Server ? | #codewithpratik
Переглядів 1,6 тис.Рік тому
To connect Spring Boot with Axon Server, you will need to perform the following steps: 1. Add the Axon Server dependency to your Spring Boot project. To do this, you can add the following to your project's build file, such as Maven's pom.xml file: Dependancy : axon-server-connector 2. Configure the Axon Server connection. You can do this by adding the following configuration to your Spring Boot...
3.Axon Server| Configuring Axon Server | Axon-Server Configuration properties | @PratikDandare
Переглядів 1,3 тис.Рік тому
Axon Server has a number of configuration properties that can be set in the configuration file (application.properties) or as command line arguments. Some of the most common properties include: axoniq.axonserver.name: The unique name of the Axon Server node. axoniq.axonserver.hostname: The hostname or IP address of the Axon Server node. axoniq.axonserver.port: The port number for incoming Axon ...
13.Spring Boot | Implementing Search and Pagination in Spring Boot using Specification@PratikDandare
Переглядів 6 тис.Рік тому
@PratikDandare #Ccodewithpratik Please checkout spring boot pagination link hear : ua-cam.com/play/PLoyb0HJlmv_kKDuTCZqBwUrKDXbGLPriw.html check source code here : github.com/PratikBlog92/youtube PowerPoint presentations link : github.com/PratikBlog92/youtube/tree/master/PPT for discussion on any topic join this Facebook group : groups/863000077517862
2. Axon Server | Downloading Axon Server | Running Axon Server | #codewithpratik @PratikDandare
Переглядів 1,4 тис.Рік тому
Axon Framework is a library for building complex, event-driven systems. It provides tools for creating and managing event-sourced aggregates, event stores, command buses, and more. To download and run the Axon Jar locally, you will need to have Java installed on your machine. Download the latest version of the Axon Jar from the Axon website (www.axoniq.io/download). Open a command prompt or ter...
1.What is axon sever? | Why to choose axon server ? | Benefits of axon server. | #codewithpratik
Переглядів 2,9 тис.Рік тому
What is Axon Server ?? 1. Axon Server is a tool for managing and scaling distributed systems based on the Axon Framework, an open-source library for building event-driven, microservice-based systems in Java. 2. It provides features such as event storage, event processing, and command handling, and allows multiple instances of an application to share data and communicate with each other. 3. This...
7. Spring Boot | Pagination & Sorting | Native Query Pagination | @PratikDandare #codewithpratik
Переглядів 4 тис.2 роки тому
​ @PratikDandare #codewithpratik check source code here : github.com/PratikBlog92/youtube PowerPoint presentations link : github.com/PratikBlog92/youtube/tree/master/PPT for discussion on any topic join this Facebook group : groups/863000077517862 Description : Pagination is a technique for dividing a list of records into multiple pages, with each page containing a limited number o...
6. Spring Boot | Pagination & Sorting | Pagination on Query Methods | @PratikDandare #codewithpratik
Переглядів 1,4 тис.2 роки тому
6. Spring Boot | Pagination & Sorting | Pagination on Query Methods | @PratikDandare #codewithpratik
5. Spring Boot | Pagination & Sorting | Implementing Pagination on List | PagedListHolder | PageImpl
Переглядів 2,7 тис.2 роки тому
5. Spring Boot | Pagination & Sorting | Implementing Pagination on List | PagedListHolder | PageImpl
4. Spring Boot | Pagination & Sorting | Added Sort functionality in pagination |@PratikDandare
Переглядів 1,8 тис.2 роки тому
4. Spring Boot | Pagination & Sorting | Added Sort functionality in pagination |@PratikDandare
3. Spring Boot | Pagination & Sorting | Implementing Pagination API | Writing code for Pagination
Переглядів 4,1 тис.2 роки тому
3. Spring Boot | Pagination & Sorting | Implementing Pagination API | Writing code for Pagination
2. Spring Boot | Pagination & Sorting | Introduction to PagingAndSortingRepository | @PratikDandare
Переглядів 3,5 тис.2 роки тому
2. Spring Boot | Pagination & Sorting | Introduction to PagingAndSortingRepository | @PratikDandare
1. Spring Boot | Pagination & Sorting | Introduction | What is pagination ? | Basic project setup
Переглядів 6 тис.2 роки тому
1. Spring Boot | Pagination & Sorting | Introduction | What is pagination ? | Basic project setup
12.Spring Boot | Search Specification | Join Tables Predicates | Criteria API
Переглядів 7 тис.2 роки тому
12.Spring Boot | Search Specification | Join Tables Predicates | Criteria API
11.Spring Boot | Search Specification | Added Between Predicates | Criteria API
Переглядів 2,3 тис.2 роки тому
11.Spring Boot | Search Specification | Added Between Predicates | Criteria API
10.Spring Boot | Search Specification | Added Greater Than and Less Than Criteria | Criteria API
Переглядів 2,2 тис.2 роки тому
10.Spring Boot | Search Specification | Added Greater Than and Less Than Criteria | Criteria API
9. Spring Boot | Search Specification | Added IN Operator | Criteria API | @PratikDandare
Переглядів 2,8 тис.2 роки тому
9. Spring Boot | Search Specification | Added IN Operator | Criteria API | @PratikDandare
8.Spring Boot | Search Specification | Added EQUAL and LIKE Operator | Criteria API
Переглядів 3,4 тис.2 роки тому
8.Spring Boot | Search Specification | Added EQUAL and LIKE Operator | Criteria API
7. Spring Boot | Search Specification I Adding list of criteria using OR operator | Criteria API
Переглядів 3,9 тис.2 роки тому
7. Spring Boot | Search Specification I Adding list of criteria using OR operator | Criteria API
6. Spring Boot | Search Specification I Adding list of criteria using AND operator | Criteria API
Переглядів 6 тис.2 роки тому
6. Spring Boot | Search Specification I Adding list of criteria using AND operator | Criteria API
5. Spring Boot | Search Specification | Create Generic Specifications and testing it using postman
Переглядів 8 тис.2 роки тому
5. Spring Boot | Search Specification | Create Generic Specifications and testing it using postman
4. Spring Boot | Search Specification | Need of specifications | specifications Implementation
Переглядів 11 тис.2 роки тому
4. Spring Boot | Search Specification | Need of specifications | specifications Implementation

КОМЕНТАРІ

  • @mkulkarni8942
    @mkulkarni8942 Місяць тому

    Can we read jsonv2 using object mapper?

  • @Iam_karthi
    @Iam_karthi 4 місяці тому

    well done brooo,its nice knowlege about the inventary management software.

  • @YoQi-rm3xn
    @YoQi-rm3xn 5 місяців тому

    Would b great if value is not attached to particular column, if that is possible list of columns against one search input against all input columns in list with like operator... it would b fulltext search..

  • @montagetime5133
    @montagetime5133 6 місяців тому

    thanks , it help me a lot

  • @mhasan-cse
    @mhasan-cse 7 місяців тому

    Thanks a lot... perfectly explained and simply mplemented.

  • @nimishgupta749
    @nimishgupta749 7 місяців тому

    Thanks for the video. Was stuck on this, now issue is fixed.

  • @RajkumarRaj-xd8ql
    @RajkumarRaj-xd8ql 7 місяців тому

    Your name is not pratik you are a chutiya guys please don't watch his vdo

  • @galarto6998
    @galarto6998 8 місяців тому

    Hi! Thanks for your videos. Could you please tell which plugin for colored code do you use?

  • @trihahuy-truocnam25
    @trihahuy-truocnam25 9 місяців тому

    I do the exactly same you, but... not working, can you help me view over the source code, sir?

  • @jayakrishnanvaduthethu3503
    @jayakrishnanvaduthethu3503 9 місяців тому

    Its a super tutorial series. I would like to connect you for a specific requirement. Let me know how can i connect.

  • @maalejmedamine
    @maalejmedamine 9 місяців тому

    hello man thank u for this tutorial i have a problme changing the name of the node even though i fillowed exactly ur steps if u can interact with me to solve this error i would be grateful thank u in advance

  • @helsinkired8523
    @helsinkired8523 9 місяців тому

    hey, do you have a github link for the code?

    • @PratikDandare
      @PratikDandare 9 місяців тому

      Please check the video description

    • @helsinkired8523
      @helsinkired8523 9 місяців тому

      ​@@PratikDandare thank you

    • @PratikDandare
      @PratikDandare 9 місяців тому

      😇

    • @helsinkired8523
      @helsinkired8523 9 місяців тому

      hey looks like this github does not contain code on JPA Specifications@@PratikDandare

    • @PratikDandare
      @PratikDandare 9 місяців тому

      github.com/PratikBlog92/youtube/tree/master/filter

  • @rajjaiswal2050
    @rajjaiswal2050 10 місяців тому

    Its very simple case ,can you show how to update existing item where we need to delete and then save same item ,bcoz due to constraint not working single save

  • @hubertharris6874
    @hubertharris6874 10 місяців тому

    Awsome

  • @shylajagovind7411
    @shylajagovind7411 10 місяців тому

    Hello Sir I am trying to build a get request in which one of the required parameter is a enum with two values . So when ever the other try to get data from the , they can send any of the enum values so how do I handle the variable while building the payload like how can I tell , any of the value can be used

  • @surishtirajkaralia801
    @surishtirajkaralia801 10 місяців тому

    Thank you 👍👍

  • @pratikgaikwad688
    @pratikgaikwad688 11 місяців тому

    Nicely explained.!

  • @meditationandnature3007
    @meditationandnature3007 Рік тому

    Bro I was pulling my hair for 2 days not understanding this concept from spring documentation. Now understood just in few minutes. You are a lifesaver. Please keep doing the great stuff that you already doing.

  • @chukwukennedy7035
    @chukwukennedy7035 Рік тому

    Pratik thank you for this resource. You took your time and took care of all the basic things in Spring boot and did justice to every explanation. Thank you.

  • @hitesh8965
    @hitesh8965 Рік тому

    I have a query. In the subject model you have declared a studentId field which i think is irrelevant and should not be present. Correct me if i am wrong. Considering the db schema it would be wrong to keep the Subject Details with StudentId. It wont be normalized.

  • @martianstarslit3768
    @martianstarslit3768 Рік тому

    Awesome resource here.

  • @hibiyatech
    @hibiyatech Рік тому

    Very helpful for me. Thanks a lot.

  • @prateekdeveloper
    @prateekdeveloper Рік тому

    my name is prateek.. all my name channel already exists.. want to make my channel...

  • @o.abdelaaziz
    @o.abdelaaziz Рік тому

    Thanks for creating this, this is very helpfull.

  • @phoneix24886
    @phoneix24886 Рік тому

    France is a city :D

  • @AadhithyanA
    @AadhithyanA Рік тому

    3:16 -> In controller u r doing Post Mapping but it is getting data in db.,howw...??, when i hit in postman error gets like post is not possible....

  • @bhargavimaddineni6290
    @bhargavimaddineni6290 Рік тому

    Could you provide your mail id anna to get any doubts to approach you in spring boot

  • @bhargavimaddineni6290
    @bhargavimaddineni6290 Рік тому

    Hi anna Your teaching excellence

  • @megadevelopment967
    @megadevelopment967 Рік тому

    Hi. thanks for the tutorial, I have one query, what If in Student class I don't have the address column but I have student column in address Class as oneToOne, now how can I join address column from in Student Specification.

    • @PratikDandare
      @PratikDandare Рік тому

      Just send student I'd in address class specification

    • @megadevelopment967
      @megadevelopment967 Рік тому

      @@PratikDandare but is there any way to do it from Student class itself. It's kind of Unidirectional join.

    • @megadevelopment967
      @megadevelopment967 Рік тому

      Also I was struggling to get distinct object based on single column.

  • @sangduong126
    @sangduong126 Рік тому

    How to start pagination with 1 instead of 0

    • @PratikDandare
      @PratikDandare Рік тому

      Just simple math can do In input pass 1 and while creating pageble make it minus one

  • @BinayKumar-b6t
    @BinayKumar-b6t Рік тому

    it's because u declares "usename" in dto instead of "username"

  • @rjcdz06
    @rjcdz06 Рік тому

    Excelent example, I could do it using opcion nativeQuery=false :) Thanks!

  • @niladrisekharnath
    @niladrisekharnath Рік тому

    This lecture is pure gold thanks for the lecture It contains everything I needed to learn, thank you so much for this help

    • @niladrisekharnath
      @niladrisekharnath Рік тому

      I have a different question can we use specification to return us selected fields and not all fields(table columns), if you know please help

    • @PratikDandare
      @PratikDandare Рік тому

      I am not sure about it

    • @PratikDandare
      @PratikDandare Рік тому

      Check Graphql library

  • @sokhengyim1624
    @sokhengyim1624 Рік тому

    Hi can you check condition if user input wrong column then throw exception invalid, thank you

    • @PratikDandare
      @PratikDandare Рік тому

      Try to add condition like List list = Arrays.asList(Object.getclass().getAttributes()); If(!list.contains(column)) Throw RuntimeException This logic will work Just check for syntax error

  • @marchevka22x
    @marchevka22x Рік тому

    Thank you for the great tutorials ... in this video you select paginated records based upon ID (the primary key), and then sort. Often users want the entire DB sorted, and then paginated. Could you comment on this? How does one sort an entire DB in a reasonable amount of time, if the DB is large. How does one avoid "missing" existing (not new or deleted) records, when records and be deleted or added to the DB?

  • @marchevka22x
    @marchevka22x Рік тому

    If you have a database that is frequently updated, it seems like this method of pagination could "miss a record". For example, if you get records 1-5, then record 3 is deleted, and you get the next set of pages, pages 7-11 would be returned. Is this true?

    • @PratikDandare
      @PratikDandare Рік тому

      No..... Check queries generate in console.

  • @bulbul-dev
    @bulbul-dev Рік тому

    no source code

  • @ashishmahanta7963
    @ashishmahanta7963 Рік тому

    Sir Here Students and location class has been mapped but I need a column value from another class which will have been mapped with location class...how to implement please help me sir

  • @arpit-jain
    @arpit-jain Рік тому

    Just completed the playlist. Thanks Pratik Bhai for creating the tutorials.

  • @yogeshpatel4037
    @yogeshpatel4037 Рік тому

    thanks dear, it's really more useful.

  • @IshbeckMusic
    @IshbeckMusic Рік тому

    Why don't we need criteria builder for IN OPERATION ?

  • @IshbeckMusic
    @IshbeckMusic Рік тому

    Can you please explain why do we pass new Predicate [0] to predicates.toArray ?

  • @IshbeckMusic
    @IshbeckMusic Рік тому

    This whole playlist is super helpful, thanks a lot ❤

  • @NaveenKumar-rb4lh
    @NaveenKumar-rb4lh Рік тому

    this helped a lot. Thanks Pratik

  • @hjp476
    @hjp476 Рік тому

    Thank you so much this video is really helpfull !!

  • @ranjankumarsingh4601
    @ranjankumarsingh4601 Рік тому

    I watched the whole playlist on Search Specification. It was very helpful. Thanks for creating this.

  • @raoufgeorgemdimegh2781
    @raoufgeorgemdimegh2781 Рік тому

    Thanks a lot for this great tutorial

  • @satishkumar-ci7rr
    @satishkumar-ci7rr Рік тому

    this whole series helps me a lot. Thanks Pratik.

  • @abhishek2009fly
    @abhishek2009fly Рік тому

    how to use JPA repository to fetch such object ... I am getting exception as -> cannot deserialize instance of java.lang.string out of start_object token

  • @gowsalyanarayanan7411
    @gowsalyanarayanan7411 Рік тому

    Hi I'm getting null pointer exception for searchRequrst Dto

    • @PratikDandare
      @PratikDandare Рік тому

      Debug it, check for getter setter and constructor