Database Patterns: CQRS || What is CQRS? || Database Patterns for Microservices

SdĂ­let
VloĹžit
  • čas přidĂĄn 4. 09. 2020
  • 👉What is CQRS - Command Query Responsibility Segregation
    👉 Usecase of CQRS
    👉 Detailed explanation with real time example
    Complete video playlist - • Microservices Architec...
    Github page for course plan & Other supporting Docs - github.com/greenlearner01/Mic...
    To get the notification of every upload on the channel hit the subscribe button and if you found the videos useful press like and share the video with your friends.
    ---------------------------------------------
    Other Videos on the channel that you may like
    ---------------------------------------------
    WireMock - EndToEnd API Testing - • WireMock || WireMock T...
    Spring Boot Internals tutorial - • Spring Boot Internals ...
    Serialization In Java tutorial - • Serialization In Java ...
    RestApi Validation tutorial - • REST API Validation ||...
    Redis Cache + SpringBoot tutorial - • Redis Cache With Sprin...
    Ehcache + SpringBoot tutorial - • Ehcache with SpringBoo...
    Spring Boot Cache tutorial - • Spring Boot Caching ||...
    JSON tutorial - • JSON || JavaScript Obj...
    Spring Cloud Netflix Ribbon - • Load Balancing In Micr...
    Yaml and properties - • Yaml & Properties
    Service registry and discovery - • Microservice Registry ...
    Distributed log tracing - • Request/Distributed lo...
    Communication among microservices using RestTemplate - • Spring RestTemplate
    Spring cloud config server - • Spring cloud config
    Spring cloud gateway - • API Gateway in microse...
    Spring cloud OpenFeign - • Spring Cloud OpenFeign
    Hystrix circuit breaker - • Circuit Breaker In Mic...
    Resilience4j Circuit breaker - • Resilience4j - Fault t...
    Spring Data JPA - • Spring Data JPA
    Spring Boot actuators - • Spring boot actuators
    -----------------------------------------------------------
    Join Us on Social Media -
    Facebook - / greenlearner
    LinkedIn - / arvind-kumar-108a4b2b
    Twitter - / arvind4gl
    Quora - www.quora.com/profile/Arvind-...
    Instagram - / arvind4greenlearner
    Medium - / arvind4greenlearner
    #CQRS #DatabasePatternsForMicroservices #MicroservicesArchitecture #Microservices #DistributedSystems #MicroservicesInterviews
    #MicroservicesGuide #DemystifyingMicroservices #BreakingMicroservices #MicroservicesConcepts #AllAboutMicroservices
    Cheers!!
    Happy Coding!!
  • Věda a technologie

Komentáře • 39

  • @codefarm0
    @codefarm0  Před 3 lety +3

    Complete Course Plan - github.com/greenlearner01/Microservices-Architecture
    Playlist - czcams.com/play/PLq3uEqRnr_2EDsuxPboP9_WtVRR_TaMrF.html

    • @trevorluciano4295
      @trevorluciano4295 Před 3 lety

      pro tip : you can watch series on flixzone. Been using it for watching loads of movies these days.

    • @michaelkyrie6836
      @michaelkyrie6836 Před 3 lety

      @Trevor Luciano Yup, have been using Flixzone} for months myself =)

    • @lewisoliver5212
      @lewisoliver5212 Před 3 lety

      @Trevor Luciano Yup, I've been watching on flixzone} for since november myself :)

    • @damiendalton8397
      @damiendalton8397 Před 3 lety

      @Trevor Luciano yup, have been using flixzone} for since december myself :)

    • @antoniojudson6474
      @antoniojudson6474 Před 3 lety

      @Trevor Luciano yup, I have been watching on flixzone} for months myself :D

  • @vipinkoul595
    @vipinkoul595 Před 2 lety +5

    Very nice explaination

  • @SHIVAMPANDEYSJTG
    @SHIVAMPANDEYSJTG Před rokem

    You explained it so good !

  • @Riteshtandon23
    @Riteshtandon23 Před rokem +1

    Very well explained😊

  • @manishdadheech8440
    @manishdadheech8440 Před 3 lety +1

    The best explanation..

  • @jeyaseelanjaandukondaan9869

    Very nice explanation

  • @interstellar1896
    @interstellar1896 Před 3 lety

    appreciate sir.....

  • @shasking19
    @shasking19 Před 3 lety +5

    I could have heard the full video but the audio is very poor, please improve audio mic and upload a new video if possible, thanks!

  • @rajeshm5138
    @rajeshm5138 Před 3 lety +1

    Thanks bro

  • @PavanKumar-yj8fu
    @PavanKumar-yj8fu Před 3 lety +2

    The best explanation, thank u so much, it would have been much better if there was a demo on implementation aswell.

    • @codefarm0
      @codefarm0  Před 3 lety

      Glad it was helpful!
      Demo will be added soon.

  • @flyingbirds4235
    @flyingbirds4235 Před 3 lety

    Sir, Hindi mai bhi kuch lectures dal dein. By the way, you did explain very nicely. Thanks

  • @KumarA-mt5wd
    @KumarA-mt5wd Před rokem +1

    Consider using a good quality mic for recording.
    Nicely explained.

  • @vivekguptacs
    @vivekguptacs Před 3 lety +1

    Nice video sir, do you have any plan for video on cqrs implementation
    Its good if you create any short api on this pattern

    • @codefarm0
      @codefarm0  Před 3 lety +1

      Yea. After this series ends, I'll try to cover the demo as much as possible.

  • @munsifkhani4475
    @munsifkhani4475 Před 2 lety +2

    improve voice quality 👍...
    Good content 🙏

  • @rahotmanp5212
    @rahotmanp5212 Před 3 lety +1

    Suppose when we are placing the order, if we got msg "the product is out of stock" as some other order has booked it. Do we have a way to avoid it? where in who added to basket first will get those items.

    • @codefarm0
      @codefarm0  Před 3 lety

      If it's out of stock, others won't get chance to book it.
      If by chance due to parallel systems or some glitch it gets ordered then it will be cancelled in subsequent flows.

  • @reynasebasti3635
    @reynasebasti3635 Před rokem

    What r tools or frameworks, to synch data between read n write dbs? so data / system could b consistent..

    • @codefarm0
      @codefarm0  Před rokem

      Asynchronous replication mechanism is used to sync data form write to read DB.
      lets say you have one master DB which accepts write from user and there are multiple slave DB instances which are used for user read queries.
      All the write requests on master are replicated to slave DB instance asynchrounously without affecting the latency on user request processing. Its worth noting that this will be Eventual consistency of data so might be some delay(not necessarily noticeable to user) to reflect to read DB instances.

  • @souviksardar9913
    @souviksardar9913 Před 10 měsĂ­ci

    why we need to copy the same data of 2 databases into another database? if ends up with data duplication?
    why we do that?
    studying CQRS for first time hence asking

    • @codefarm0
      @codefarm0  Před 10 měsĂ­ci

      Different purpose of the databases.
      1. User facing databases shouldn't be used for analytics purpose
      2. Data backup
      3. If there are huge traffic then we have to use one db for one purpose only

  • @KrishnaDasPC
    @KrishnaDasPC Před rokem

    what is advantage of seperating ? or what is the problem if we read from same db

    • @devangikacha1477
      @devangikacha1477 Před rokem +2

      you can handle read traffic separately, you can have multiple read replica to decrease response time for all read operations and only one writeable database.

    • @iamnoob7593
      @iamnoob7593 Před rokem

      @@devangikacha1477 what is the exact use of having read and write DB separately ?

    • @codefarm0
      @codefarm0  Před rokem +1

      when you have huge data load and different amount of load on write and read then its necessary to separate both

  • @pradeeppalai
    @pradeeppalai Před 3 měsĂ­ci

    sound problem

  • @pankajdalvi6521
    @pankajdalvi6521 Před 10 měsĂ­ci

    Why use Event handlers and Database triggers . That would be too much of code handling. A better way would be synchronous replication of the database.

    • @codefarm0
      @codefarm0  Před 10 měsĂ­ci

      It's about latency. When optimization is considered then there are some operations which can be handled in async way so that user don't have to wait

    • @pankajdalvi6521
      @pankajdalvi6521 Před 10 měsĂ­ci

      @@codefarm0 But what if you have to do a read operation just after a write operation. In that case an async call will not give you updated results.

  • @rahulsood81
    @rahulsood81 Před 2 měsĂ­ci

    Poor quality Audio..
    Disturbing Audio....