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

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 39

  • @codefarm0
    @codefarm0  4 года назад +3

    Complete Course Plan - github.com/greenlearner01/Microservices-Architecture
    Playlist - ruclips.net/p/PLq3uEqRnr_2EDsuxPboP9_WtVRR_TaMrF

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

  • @Riteshtandon23
    @Riteshtandon23 Год назад +1

    Very well explained😊

  • @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!

  • @manishdadheech8440
    @manishdadheech8440 3 года назад +1

    The best explanation..

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

  • @jeyaseelanjaandukondaan9869
    @jeyaseelanjaandukondaan9869 2 года назад

    Very nice explanation

  • @SHIVAMPANDEYSJTG
    @SHIVAMPANDEYSJTG 2 года назад

    You explained it so good !

  • @KumarA-mt5wd
    @KumarA-mt5wd Год назад +1

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

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

  • @rajeshm5138
    @rajeshm5138 4 года назад +1

    Thanks bro

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

  • @flyingbirds4235
    @flyingbirds4235 3 года назад

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

  • @munsifkhani4475
    @munsifkhani4475 3 года назад +2

    improve voice quality 👍...
    Good content 🙏

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

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

  • @interstellar1896
    @interstellar1896 4 года назад

    appreciate sir.....

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

  • @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 9 месяцев назад

    sound problem

  • @rahulsood81
    @rahulsood81 8 месяцев назад

    Poor quality Audio..
    Disturbing Audio....