Razorpay's Journey to Microservices w/ Arjun | Ep 1

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ม.ค. 2025

ความคิดเห็น •

  • @pradiptagure7492
    @pradiptagure7492 2 ปีที่แล้ว +64

    You should continue this podcast series. Out of all the podcasts or technical tutorials, there is no one in this niche. Students or experienced professionals will learn a lot from this. Kudos to you.

    • @AsliEngineering
      @AsliEngineering  2 ปีที่แล้ว +4

      Check out other videos on my channel. You will find them interesting.

    • @romabharti
      @romabharti 2 ปีที่แล้ว

      Pp0

  • @marcusaureliusfanboy
    @marcusaureliusfanboy 2 ปีที่แล้ว +36

    *timestamps:*
    0:00 Introduction
    2:48 Initial architecture/techstack of RazorPay
    4:30 ensuring strong consistency on monolithic architecture
    9:06 check constraints
    10:47 deciding to move from monolith to microservices
    15:23 splitting of databases/application logic when moving to microservices
    18:25 dual writing of data into monolith as well as microservice dbs(during transition phase), transaction outbox pattern
    21:19 databases in current microservice architecture
    22:45 deciding on SQL vs NOSQL
    25:10 ensuring consistency in microservice architecture
    28:10 payment flow with eventual consistency
    34:40 prioritization for settlements@T+0
    37:20 chaos testing
    39:00 integration tests on interface between 2 services
    41:00 incidents when things went wrong
    47:40 outro

  • @kunalsharma1621
    @kunalsharma1621 2 ปีที่แล้ว +23

    The way you progress the communication through passively narrating and curiously listening made this podcast different from other existing system design podcasts.

  • @bhanvaibhav
    @bhanvaibhav ปีที่แล้ว +2

    This is truly asli engineering . Seedhi Baat no bakwaas, Real domain challenges and solution . I know that no architectures is The BEST. OutBox CDC ... amazing stuff ... please continue making stuff like this.

  • @arnabsen1729
    @arnabsen1729 2 ปีที่แล้ว +4

    Such a technical dense podcast, rare to find such podcasts, nothing less than a technical conference talk. Great job Arpit !!

  • @mayankbinayake8975
    @mayankbinayake8975 ปีที่แล้ว +4

    These 49.48 mins went pass like some couple of minutes.
    This is so much learning and that also in such such basic terminology. That's one heck of a enginnering.
    Thanks for the podcast Arpit and Arjun. I wish this series never comes to an end ❤️

  • @arunrajput1007
    @arunrajput1007 2 ปีที่แล้ว +11

    Few things amazed me and I am not sure about whether its worth it.
    1. Just for connection pooling they migrated monolith to microservice.
    2. They remove foreign key constraints in their table and made custom orm.

    • @harvendrasinghrathore2848
      @harvendrasinghrathore2848 7 วันที่ผ่านมา +1

      I can surely say just connection pooling will be not the single reason.

  • @atulsingh29
    @atulsingh29 ปีที่แล้ว +2

    Can’t state how insightful it was. It blew my mind. Discussion really took my understanding to next level.

  • @navinmittal4809
    @navinmittal4809 2 ปีที่แล้ว +2

    Great podcast Arpit. Best thing I loved was that you were paraphrasing most of the things that Arjun said. I think you already know most of the things and still you sounded like a newbie with excitement who's listening about systems for the first time :)

  • @unspoken_verbose1825
    @unspoken_verbose1825 ปีที่แล้ว +1

    This is one of the best Podcasts I have ever seen. Such deep and niche insights. Beauty of Engineering!

  • @ajaybabupatel1665
    @ajaybabupatel1665 7 หลายเดือนก่อน +2

    Real engineering hits more than any dopamine.
    Got facinated by the number of DBs razorpay is using depends on seevice.
    Really cool stuff with cool Engineer

  • @travelism6385
    @travelism6385 2 ปีที่แล้ว +2

    Just one word.. Brilliant Podcast
    This is really Asli Engineering Stuff. Worth watching every second of this podcast, can't skip anything. Very Insightful.

  • @HimanshuKumar-xz5tk
    @HimanshuKumar-xz5tk 2 ปีที่แล้ว +2

    This style of system design discussion is lit and interesting af

    • @AsliEngineering
      @AsliEngineering  2 ปีที่แล้ว +1

      There are bunch of videos on my channel on real-world System Design. You will definitely find them interesting.

  • @mystryb345
    @mystryb345 2 ปีที่แล้ว +2

    As always superb content and also I had recently cracked offered from Razorpay and Its Interview Process is also Amazing.

  • @rishabhkalra9505
    @rishabhkalra9505 2 ปีที่แล้ว +3

    loved this episode, so much to learn from razorpay. The data consistency section and ledger settlement is such a creative insight for anybody who hasn't worked on it yet. Thanks for recording this session and happy 1 month @google Arpit!!!

  • @abhishekdutta6189
    @abhishekdutta6189 2 ปีที่แล้ว +2

    Keep this series going!!! So much knowledge in one video

    • @AsliEngineering
      @AsliEngineering  2 ปีที่แล้ว +1

      I have a ton of videos on various topics that you'll find more interesting than this. Scroll through my channel once.

  • @dasmala9175
    @dasmala9175 ปีที่แล้ว

    woow, my mind blows away, so much knowledge on a plate, lots of things to get to know about how the actual digital payment system works, which may appear simple from a normal person's perspective. Thank you, Arpit.

  • @tusharagarwal331
    @tusharagarwal331 2 ปีที่แล้ว +2

    Loved every bit of it . Please continue this series .

  • @aniruddhkhera510
    @aniruddhkhera510 11 หลายเดือนก่อน

    Hi Arpit & Arjun,
    I've been thoroughly enjoying your content and have been binge-watching your videos.
    At 18:25, Arjun discussed implementing the outbox pattern for dual writes. While I understand the concept well (and have implemented something similar), I wanted to delve deeper into the actual implementation. The traditional use case for this pattern involves achieving ACD (a form of transactionality) for database writes and event publication in the message queue or a different DB.
    Once the data is transactionally written to both the monolith table and the outbox table, an asynchronous job, using transactional log tailing (binlog consumption), allows us to consistently write to the microservice table.
    However, let's consider a scenario where the broker is down (acting as a SPoF). How does the OUTBOX PATTERN ensure consistency in this situation?
    In my implementation, instead of relying on binlog consumption, I've set up a cronjob (using a serverless service) to read from the outbox table and publish the event to the message queue. If it succeeds, it updates the status in the outbox table to prevent the next run of the cronjob from picking it up again.
    I'd love to hear your thoughts.

  • @saswatsenapati7870
    @saswatsenapati7870 2 ปีที่แล้ว +1

    Thank you so muchh arpit.... It is true knowledge that will help engineers in real time, who are newly taking you challenges.

  • @varunnmiglani2531
    @varunnmiglani2531 2 ปีที่แล้ว +3

    Wow great video, such complex concepts put so simple without using a single diagram.
    Good going arjun…

    • @saumitrashukla591
      @saumitrashukla591 2 ปีที่แล้ว

      video aane se pehle hi dekh liya tumne

    • @varunnmiglani2531
      @varunnmiglani2531 2 ปีที่แล้ว

      @@saumitrashukla591 ji shukla ji, it was open for sometime, you got late

    • @arjuntomer8427
      @arjuntomer8427 2 ปีที่แล้ว

      Thanks Varun 😊

  • @kunalsharma1621
    @kunalsharma1621 2 ปีที่แล้ว +4

    Pure gold content 👏

  • @tesla1772
    @tesla1772 2 ปีที่แล้ว +3

    Such an amazing and detailed conversation. Absolutely loved it 💯

  • @pushpaksrivastava6576
    @pushpaksrivastava6576 2 ปีที่แล้ว +1

    Wow Arpit....very knowledgeable session, Thanks for bringing him and the insights

  • @ujjalroy1442
    @ujjalroy1442 ปีที่แล้ว

    You must continue this series.... Phenomenal insights... Waiting for more

  • @SahilRajput03
    @SahilRajput03 2 ปีที่แล้ว +1

    Thanks for the video to both of you, the content is really phaad!!

  • @joobis.b4568
    @joobis.b4568 2 ปีที่แล้ว +1

    Great conversation !! Covered almost end to end high level architecture, challenges etc.

  • @surajpatil3247
    @surajpatil3247 ปีที่แล้ว +1

    need more podcasts like this

  • @sweiscool
    @sweiscool 2 ปีที่แล้ว +5

    Wow! What a knowledge packed podcast and this is just ep1! So glad this exists! Really enjoyed conversations between both of you!
    Excited for future eps! Thanks Arpit!

  • @niharpatel2631
    @niharpatel2631 ปีที่แล้ว +1

    Really inspiring series of videos, arpit. Keep it going I am sure it is inspiring a lot of Indian techies to dive deep and try these things on, it will definitely make better quality made in india for the world systems at an unbelievable price point.

  • @adarshpathak3839
    @adarshpathak3839 2 ปีที่แล้ว +2

    Brilliant Engineering by razorpay.

  • @сойка-и8й
    @сойка-и8й ปีที่แล้ว +1

    10:10 Arpit one question Isn't it risky that even Check constraints are removed from DB, bcoz maybe possible that DBA can accidentally run a insert or update query with Bad data.. This can lead to data corruption in DB if certain bad record make there way to the DB.. any thoughts ??

    • @AsliEngineering
      @AsliEngineering  ปีที่แล้ว +1

      but if check constraints are becoming a bottleneck for you to scale then this is exactly what you have to do

  • @sunnychaturvedi9958
    @sunnychaturvedi9958 2 ปีที่แล้ว +1

    Brilliant value addition to engineering contents, real stuff! ❤️

  • @anshulgupta9754
    @anshulgupta9754 ปีที่แล้ว

    This is Asli Hardcore Engineering! Thanks a lot Arpit for bringing this amazing episode. Really amazed by the engineering practices at Razorpay. The way Arjun explained each and every detail was enlightening; definitely a skill to be learned by every software engineer. It is one of the best engineering podcasts and I got to learn so much!

  • @exquisite_moment
    @exquisite_moment 2 ปีที่แล้ว +1

    Wow! what an amazing podcast. Looking forward for more such Videos.

  • @abhinavvsinhaa
    @abhinavvsinhaa ปีที่แล้ว

    Learned a lot from these 49 minutes! Hats off to the engineers!!

  • @namankumar7275
    @namankumar7275 2 ปีที่แล้ว +1

    loved It, amazing things are doing by Razorpay Engineers. 😍

  • @sumanthreddy9391
    @sumanthreddy9391 2 ปีที่แล้ว +1

    Informative session. Learnt so much!

  • @phLife_13
    @phLife_13 2 ปีที่แล้ว +1

    i am very excited for this series.
    #thanks#gratefulToArpit

  • @adarsh0431
    @adarsh0431 2 ปีที่แล้ว

    Best engineering interview out there. loved it.

  • @amitbansal7754
    @amitbansal7754 2 ปีที่แล้ว +1

    Awesome talk. Thanks for doing this.

  • @ashutoshsrivastava6951
    @ashutoshsrivastava6951 ปีที่แล้ว

    A brilliant show. Thank you guys. One thing that I am still interested to know. I have seen so many people talks about a lot of requests we were getting. But there is no number. So if you could tell this in your next video. Then it would be really great.

  • @ashutosh887_
    @ashutosh887_ 2 ปีที่แล้ว +1

    Thanks Arpit Bhaiya for this awesome podcast.

  • @jagrit07
    @jagrit07 หลายเดือนก่อน

    Amazing video, both legends and true engineers

  • @raghavddps2
    @raghavddps2 2 ปีที่แล้ว

    Brilliant podcast! Thank you arpit for doing this!!

  • @nishanksoni7120
    @nishanksoni7120 2 ปีที่แล้ว +1

    gold content. I got to learn from this video a lot .Thanks Arpit .

  • @yashwanth1777
    @yashwanth1777 2 ปีที่แล้ว +1

    Great start of the day.

  • @myaccount09011975
    @myaccount09011975 ปีที่แล้ว

    Great watch. Couldn't understand few of the technology used as my experience is mostly related to MS stack. But it has generated lot of curiosity about the stack used at RazorPay. Looking for more such podcasts. Thanks Arjan/Arpit for this wonderful discussion.

  • @AbhishekVerma-vh7gi
    @AbhishekVerma-vh7gi 2 ปีที่แล้ว

    Amazing stuff! Looking forward to more such podcasts.

  • @ALEEMKHAWAR1
    @ALEEMKHAWAR1 2 ปีที่แล้ว +1

    Thanks arpit such a wonderful podcast

  • @jyotsnamadhavi6203
    @jyotsnamadhavi6203 2 ปีที่แล้ว

    We really need these kind of podcasts. Thank you Arpit

    • @AsliEngineering
      @AsliEngineering  2 ปีที่แล้ว

      Would recommend going through other videos of my channel.

  • @prashantshubham
    @prashantshubham 2 ปีที่แล้ว +1

    Great video, one interesting question would’ve been what have been some issues with microservice architecture which still they’re in process of solving or need to evolve more

  • @rite2riddhi
    @rite2riddhi 2 ปีที่แล้ว +1

    Was waiting for this one.

  • @jaydipaawte7324
    @jaydipaawte7324 2 ปีที่แล้ว +1

    Really Enjoyed it
    thanks
    Need More Sir

  • @sanjeevrajora7335
    @sanjeevrajora7335 ปีที่แล้ว

    Really loved this one, thanks Arpit for bringing such insightful engineering podcast

  • @sasanknvs5603
    @sasanknvs5603 2 ปีที่แล้ว +1

    Very interesting and informative. Loved it.

  • @Cocoloves-boba
    @Cocoloves-boba ปีที่แล้ว

    The interviewee is providing calm and composed answers. I liked the clarity and the interviewer has to improve and avoid rephrasing every answer for such.a long time

  • @sritejaparimi6605
    @sritejaparimi6605 2 ปีที่แล้ว +1

    Looking forward!!

  • @akhil1996kc
    @akhil1996kc ปีที่แล้ว +1

    It’s really difficult to think that a foreign key validation at PHP (application) level would be faster than what MySQL can do. Database are optimized for these things.

    • @AsliEngineering
      @AsliEngineering  ปีที่แล้ว

      not about the speed. But having the ability to split.

  • @bhargavbehara7747
    @bhargavbehara7747 ปีที่แล้ว

    It always amazes to see real world problems.

  • @pranayreddy5824
    @pranayreddy5824 2 ปีที่แล้ว +1

    Thanks for this amazing video.

  • @adityaagrawal8507
    @adityaagrawal8507 2 ปีที่แล้ว

    really insightful video , keep up the good work

  • @sepraveen
    @sepraveen ปีที่แล้ว

    Intial tech stack:Php, Larvel, Route 53, alb, mysql rds

  • @iam_kundan
    @iam_kundan 2 ปีที่แล้ว

    Lots of engineering insights and technical points. Got to learn many new things.

  • @utsavprabhakar5072
    @utsavprabhakar5072 ปีที่แล้ว

    Would love a 20 mins video where you can make notes about this conversation and explain. There were some terms and flows which i couldnt follow. CDC was new, sounds like ddb streams. Also the part where they ensure the ledger update was pretty cool but I couldnt understand it fully.

  • @bibekkakati
    @bibekkakati 2 ปีที่แล้ว

    Great discussion. Enjoyed and got to learn new things. 🔥

  • @yogeshgophane653
    @yogeshgophane653 ปีที่แล้ว

    As Always Arjun is great at explaining!

  • @plenue
    @plenue 2 ปีที่แล้ว +1

    Hey Arpit,
    Do read LedgerStore paper by Uber. With that in mind, you will love the beauty of both razorpay and Ubers ledger system, especially the way uber migrated their db from aws to in house and writing to both db parallels to test thing out.

    • @AsliEngineering
      @AsliEngineering  2 ปีที่แล้ว

      Thanks a ton for sharing. Definitely going through it.

    • @plenue
      @plenue 2 ปีที่แล้ว

      @@AsliEngineering
      Please do make video on same if possible. I think it is good enough for everyone to learn something from a large db migration.
      Love your content and open for any help you need (not for technical perspective as I am still learning and growing but any other task or any initiative) in growing your community.

  • @prasangsinghal7887
    @prasangsinghal7887 ปีที่แล้ว

    Really insightful and learnt a lot.

  • @pranupranav5563
    @pranupranav5563 ปีที่แล้ว +1

    Tazorpay walo ne abhi naya merchant ko onboard nhi kar raha hai 😭😭😭😭Muze phonepe or paym pg jaana pad raha hai.

  • @utsavanand5558
    @utsavanand5558 2 ปีที่แล้ว +1

    Loved it.. insightful

  • @sumitnegi2708
    @sumitnegi2708 2 ปีที่แล้ว

    Thankyou for providing this content ❤, really insightful

  • @manikeshverma7102
    @manikeshverma7102 2 ปีที่แล้ว

    When we said MySQL is high on consistency. which consistency we r referring here..ACID one or CAP one.. it sound like acid one but then you removed all the constraints from db.. which is bit conflicting @arujn

  • @Engineerhoon
    @Engineerhoon 2 ปีที่แล้ว

    Mind blown podcast 🤯Thanks Arpit. You really inspires many like me. 😁

  • @JardaniJovonovich192
    @JardaniJovonovich192 2 ปีที่แล้ว

    Great video, we want more of these

  • @charan775
    @charan775 2 ปีที่แล้ว

    I think one more step before dual write is to backup the existing data so that traffic can be served

  • @adityajha3116
    @adityajha3116 2 ปีที่แล้ว +1

    Pure Gold

  • @gmmkeshav
    @gmmkeshav ปีที่แล้ว

    maja agaya sir bas 🙏
    ase podcast kar te rahiye

  • @rvs99
    @rvs99 2 ปีที่แล้ว

    superb… really learned lot of things from this session.🤘🏻

  • @harsh3305
    @harsh3305 ปีที่แล้ว

    I have always wondered about this scenario with the foreign key/constraint validation being done in application code because I have seen a couple of threads where big companies don't use foreign key constraints. Consider a situation where you are persisting entity X (which must have a unique name) and it also holds a bunch of foreign refs(say Y,Z,..). Won't performing the validation in the application code involve querying the entire X table with the name projection (check unique), querying the Y,Z,.. other tables by ID? Why is this a better option than letting the relational database handle this ? As far as I understand it, this approach will make you perform more queries than required. What if there are millions of rows (say users table) in each of the tables ?

    • @vorishirne_7539
      @vorishirne_7539 ปีที่แล้ว

      the orm does this only for data which they wouldn't have to query for.

  • @bharathn1059
    @bharathn1059 2 ปีที่แล้ว

    Great podcast very informative, thanks

  • @mr.tarun.hr26
    @mr.tarun.hr26 2 ปีที่แล้ว

    Very nice podcast , Enjoying the technology

  • @trustaniket
    @trustaniket 2 ปีที่แล้ว

    just one word: wow!

  • @dipanjanm
    @dipanjanm 2 ปีที่แล้ว

    Payments data can be huge is rdbms enough to support the data , are you removing payments data periodically to some cold store from the transactional rdbms?

  • @cshivani
    @cshivani ปีที่แล้ว

    Deadlock not raising exception (Causing dirty ready) should this not be happening by default in all rdbms databases? Curious is this also the case in other db's which guarantee acid?.
    The last section on incidents and their resolution was good.

  • @soumyasengupta7018
    @soumyasengupta7018 ปีที่แล้ว

    Curious about how uniqueness & race conditions regd database writes were achieved by moving db validations & constraints to application layers.

  • @Vivek-yh1ns
    @Vivek-yh1ns 2 ปีที่แล้ว +3

    Good one Arpit and Arjun learned a lot, I am so stuck with AWS that can only relate to amazon specific service be it queue or notification topics, this is triggering an alarm for me to look into other similar products used at scale worldwide.
    PS:~ Not sure their UTs are with 95% code coverage; hahaha Arjun can reply and confirm.

  • @undergraduate6050
    @undergraduate6050 ปีที่แล้ว

    Hmm, if im not wrong then every DB has to do foreign key check before insert, update or delete of each linked tables. This slow downs the entire thing.

  • @vkhemant
    @vkhemant 4 หลายเดือนก่อน

    What a fantastic session 👌

  • @antrapurohit8010
    @antrapurohit8010 2 ปีที่แล้ว +1

    Very informative content

  • @singhsaurabh920
    @singhsaurabh920 ปีที่แล้ว

    How can you decide to which bank you should route request its chooseen by customer

  • @karanpk28
    @karanpk28 ปีที่แล้ว

    Hi Arpit! Eager to listen to Dr. Kailash of Zerodha in such podcasts as well. Thanks!

  • @singh.aadarsh
    @singh.aadarsh ปีที่แล้ว

    Amazing 48:05

  • @akshitadixit9568
    @akshitadixit9568 2 ปีที่แล้ว +2

    Please get this up on Spotify 🥺

    • @rohan_devarc
      @rohan_devarc 2 ปีที่แล้ว

      AsliEngineering is already on Spotify. I think it's would be available on Spotify by default.

    • @AsliEngineering
      @AsliEngineering  2 ปีที่แล้ว

      Will upload on it soon.

    • @koushikvss7638
      @koushikvss7638 2 ปีที่แล้ว +1

      @@AsliEngineering also upload to other podcast platforms like Apple Podcasts, Amazon Music etc.

  • @tarunstv796
    @tarunstv796 2 ปีที่แล้ว

    You can add visual explanations of some technical concepts as every one might not understand/know all the concepts.

  • @karankap00r
    @karankap00r 2 ปีที่แล้ว +1

    Amazing discussion! :D
    Being a part of debugging through the last issue mentioned would be lit af :D

    • @AsliEngineering
      @AsliEngineering  2 ปีที่แล้ว

      Yeah. Even I got engrossed and tried to get max info on it 😀

  • @hrishikeshh
    @hrishikeshh ปีที่แล้ว +1

    All the possible links in the description but NO mention of the speaker's linkedin or socials.

    • @AsliEngineering
      @AsliEngineering  ปีที่แล้ว +1

      It is there when posted on LinkedIn and Twitter. Missed adding it in description. Just search Arjun Tomar on LinkedIn and you'll find him.

    • @hrishikeshh
      @hrishikeshh ปีที่แล้ว

      @@AsliEngineering Thanks.

  • @singhsaurabh920
    @singhsaurabh920 ปีที่แล้ว

    Instead of outboxer pattern cant we use read replica

  • @santoshbhatnagar2155
    @santoshbhatnagar2155 ปีที่แล้ว

    Please get more such videos

  • @dipanjanm
    @dipanjanm 2 ปีที่แล้ว

    Nice idea but validation on application will still need atleast the primary key on the table and transaction between app and db and will need to avoid any such case where there is m:n cardinality between entities if we have such cases then the only better way is to use relation tables where foreign key constraint is inevitable.

    • @dipanjanm
      @dipanjanm 2 ปีที่แล้ว

      Additional way is to even manage that relation table manually through app instead of using foreign key on the relation table , but how efficient will it be is a question again. May be it more efficient as it has to do a lot less that db has to do.