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

Поділитися
Вставка
  • Опубліковано 5 лис 2024

КОМЕНТАРІ • 39

  • @codefarm0
    @codefarm0  4 роки тому +3

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

    • @trevorluciano4295
      @trevorluciano4295 3 роки тому

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

    • @michaelkyrie6836
      @michaelkyrie6836 3 роки тому

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

    • @lewisoliver5212
      @lewisoliver5212 3 роки тому

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

    • @damiendalton8397
      @damiendalton8397 3 роки тому

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

    • @antoniojudson6474
      @antoniojudson6474 3 роки тому

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

  • @vipinkoul595
    @vipinkoul595 3 роки тому +5

    Very nice explaination

  • @shasking19
    @shasking19 3 роки тому +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!

  • @KumarA-mt5wd
    @KumarA-mt5wd Рік тому +1

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

  • @PavanKumar-yj8fu
    @PavanKumar-yj8fu 3 роки тому +2

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

    • @codefarm0
      @codefarm0  3 роки тому

      Glad it was helpful!
      Demo will be added soon.

  • @Riteshtandon23
    @Riteshtandon23 Рік тому +1

    Very well explained😊

  • @flyingbirds4235
    @flyingbirds4235 3 роки тому

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

  • @rahotmanp5212
    @rahotmanp5212 3 роки тому +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  3 роки тому

      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.

  • @manishdadheech8440
    @manishdadheech8440 3 роки тому +1

    The best explanation..

  • @jeyaseelanjaandukondaan9869
    @jeyaseelanjaandukondaan9869 2 роки тому

    Very nice explanation

  • @vivekguptacs
    @vivekguptacs 4 роки тому +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  4 роки тому +1

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

  • @munsifkhani4475
    @munsifkhani4475 3 роки тому +2

    improve voice quality 👍...
    Good content 🙏

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

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

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

      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 Рік тому

    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  Рік тому

      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 Рік тому

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

    • @devangikacha1477
      @devangikacha1477 Рік тому +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 Рік тому

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

    • @codefarm0
      @codefarm0  Рік тому +1

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

  • @SHIVAMPANDEYSJTG
    @SHIVAMPANDEYSJTG 2 роки тому

    You explained it so good !

  • @rajeshm5138
    @rajeshm5138 4 роки тому +1

    Thanks bro

  • @interstellar1896
    @interstellar1896 4 роки тому

    appreciate sir.....

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

    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  Рік тому

      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 Рік тому

      @@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.

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

    sound problem

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

    Poor quality Audio..
    Disturbing Audio....