[{"data":1,"prerenderedAt":757},["ShallowReactive",2],{"blog-cap-theorem":3,"blog-all-for-related":300},{"id":4,"title":5,"author":6,"body":7,"cardAlt":5,"categories":284,"description":287,"draft":288,"extension":289,"headerImage":290,"keywords":291,"meta":292,"name":293,"navigation":294,"path":295,"seo":296,"series":6,"stem":297,"updated":6,"year":298,"__hash__":299},"blog\u002Fblog\u002Fcap-theorem.md","CAP Theorem Explained",null,{"type":8,"value":9,"toc":276},"minimark",[10,14,31],[11,12,13],"p",{},"CAP Theorem is one of the most common and important topic for system design interviews. In the world of distributed system it is important to understand the concept of CAP theorem that enables us to choose better design based on the requirements. In this blog we will deep dive into the details of CAP theorem and clear out the misconceptions around it.",[15,16,17],"blockquote",{},[11,18,19],{},[20,21,22,23,30],"strong",{},"Preparing for Interviews? I highly recommend ",[24,25,29],"a",{"href":26,"rel":27},"https:\u002F\u002Fwww.educative.io\u002Fcourses\u002Fgrokking-the-system-design-interview?aff=K3zN",[28],"nofollow","Mastering System Design"," course on Educative.",[32,33,38,43,46,51,64,90],"image-responsive",{"imageurl":34,"classes":35,"imagecontainerclasses":36,"alt":37},"blog\u002Fcap-theorem\u002Fcap-characteristics.png","blogImage","blogImageContainer","CAP theorem characteristics",[39,40,42],"h2",{"id":41},"understanding-the-cap-characteristics","Understanding the CAP characteristics",[11,44,45],{},"Before learning about what CAP theorem states, we need to understand the three characteristics - Consistency, Availability and Partition Tolerance.",[47,48,50],"h3",{"id":49},"consistency","Consistency",[11,52,53,54,57,58,63],{},"Consistency essentially means that a read request by any client should receive the same data at same point of time irrespective of which node the call is made to in the distributed system. So every read receives the most recent write or an error (if occured). ",[55,56,50],"em",{}," in CAP actually means ",[24,59,62],{"href":60,"rel":61},"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FLinearizability#:~:text=Linearizability%20is%20a%20strong%20correctness,an%20unexpected%20or%20unpredictable%20manner.",[28],"linearizability"," and is not related to C in ACID property.",[11,65,66,67,71,72,75,76,79,80,82,83,86,87,89],{},"Imagine there are two nodes N1 and N2 in a system. At ",[68,69,70],"code",{},"t = 0"," we have ",[68,73,74],{},"a = 1",". Now at ",[68,77,78],{},"t = 1"," node N1 recieves a write request with ",[68,81,74],{},". Then, at ",[68,84,85],{},"t = 2"," we receive 2 read requests - one at N1 and other at N2. If the system is consistent it should return ",[68,88,74],{}," for both read request on N1 and N2.",[32,91,94,97,101,104],{"imageurl":92,"classes":35,"imagecontainerclasses":36,"alt":93},"blog\u002Fcap-theorem\u002Fcap-consistent.png","CAP theorem consistent system",[11,95,96],{},"If a system wants to be consistent then it has to instantly forward or replicate data to all the other nodes in the distributed system whenever data is written to one node.",[47,98,100],{"id":99},"availability","Availability",[11,102,103],{},"This characteristic is fulfilled if a system can serve every request it receives with a non-error response. Since we are always returning a result, we are fine even if the data is not the most recent write as of now but will be in future requests. A very simple example is that a person should be able to search for a product on Amazon even if the some of the nodes for this service are down. So every non-failing node in a system should return a valid response.",[32,105,108,112,123],{"imageurl":106,"classes":35,"imagecontainerclasses":36,"alt":107},"blog\u002Fcap-theorem\u002Fcap-availability.png","CAP theorem availability",[47,109,111],{"id":110},"partition-tolerance","Partition tolerance",[11,113,114,115,122],{},"A system is \"Partition tolerant\" if it continues to operate despite an arbitrary number of messages being dropped (due to network failure) or delayed by the network between nodes. This system is allowed to lose messages sent from one node to another if the communication goes down\u002Fdelayed due to any network issue. But, we know that in a distributed world, network failures are always possible and can happen at any point in time. It is one of the ",[24,116,119],{"href":117,"rel":118},"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FFallacies_of_Distributed_Computing",[28],[55,120,121],{},"fallacy of distributed computing"," is that networks are reliable.",[124,125,126,129,133,136,146,153,156],"ads",{},[127,128],"hr",{},[39,130,132],{"id":131},"what-is-cap-theorem","What is CAP Theorem?",[11,134,135],{},"CAP theorem states that it is impossible for a distributed data system to simultaneously provide more than two out of the following three guarantees.",[137,138,139,142,144],"ul",{},[140,141,50],"li",{},[140,143,100],{},[140,145,111],{},[11,147,148,149,152],{},"It is also known as ",[20,150,151],{},"Brewer's theorem"," after computer scientist Professor Eric Brewer who first advanced this in 2000.",[11,154,155],{},"As we learned in the previous section that no distributed system is safe from network failures, thus partition tolerance is always present. Based on CAP theorem, we are left with choosing either consistency or availability. Let's learn about both options and when to choose one over other.",[32,157,160,164,167,171,174,176,180,193,195,199,221,225,248,257,259,262,271],{"imageurl":158,"classes":35,"imagecontainerclasses":36,"alt":159},"blog\u002Fcap-theorem\u002Fcorrect-cap.png","Partition tolerance - CAP",[47,161,163],{"id":162},"consistency-over-availability","Consistency over Availability",[11,165,166],{},"In this case the system will return an error or a time out if particular information cannot be guaranteed to be up to date due to network partitioning. An example would be a financial system where you need data to be consistent for all request. Imagine getting a higher price in a stock trade while the actual price has reduced. Obviously this is not acceptable and thus consistency over availability is preferred in such systems.",[47,168,170],{"id":169},"availability-over-consistency","Availability over Consistency",[11,172,173],{},"Here the system will always process the query and try to return the most recent available version of the information irrespective of whether it can guarantee latest data or not. Example for this would apply for sites like amazon, flipkart, etc where it is okay to show delayed or limited response to customer search queries rather than showing nothing at all.",[127,175],{},[39,177,179],{"id":178},"misconceptions-around-cap-theorem","Misconceptions around CAP theorem",[11,181,182,183,186,187,192],{},"Now that you are aware about the CAP theorem and this might help you in your system design interview. But, CAP uses very narrow definitions and is too simplistic. It specifies a specific model of the distributed system where only network failures are considered. I would ",[20,184,185],{},"highly recommend"," you to read this ",[24,188,191],{"href":189,"rel":190},"https:\u002F\u002Fmartin.kleppmann.com\u002F2015\u002F05\u002F11\u002Fplease-stop-calling-databases-cp-or-ap.html",[28],"brilliant post"," by Martin Kleppmann to understand the misconceptions around CAP theorem. I wrote this post so that you get idea about CAP theorem and then go and read about the misconceptions from Martin's article.",[127,194],{},[39,196,198],{"id":197},"resources","Resources",[137,200,201,208,214],{},[140,202,203],{},[24,204,207],{"href":205,"rel":206},"https:\u002F\u002Frobertgreiner.com\u002Fcap-theorem-revisited\u002F",[28],"CAP revisted",[140,209,210],{},[24,211,213],{"href":189,"rel":212},[28],"Please stop calling databases CP or AP",[140,215,216],{},[24,217,220],{"href":218,"rel":219},"https:\u002F\u002Fmwhittaker.github.io\u002Fblog\u002Fan_illustrated_proof_of_the_cap_theorem\u002F",[28],"Illustrated Proof - CAP",[47,222,224],{"id":223},"books-for-mastering-system-design","Books for mastering system design",[137,226,227,234,241],{},[140,228,229],{},[24,230,233],{"href":231,"rel":232},"https:\u002F\u002Famzn.to\u002F3zzNHQc",[28],"Designing Data-Intensive Applications",[140,235,236],{},[24,237,240],{"href":238,"rel":239},"https:\u002F\u002Famzn.to\u002F3iRFIHh",[28],"System Design Interview – An Insider's Guide",[140,242,243],{},[24,244,247],{"href":245,"rel":246},"https:\u002F\u002Famzn.to\u002F2VfbqGh",[28],"Clean Architecture: A Craftsman's Guide to Software Structure and Design",[11,249,250,251,256],{},"Liked the article? Consider ",[24,252,255],{"href":253,"rel":254},"https:\u002F\u002Fwww.buymeacoffee.com\u002FchHAzigTb",[28],"supporting me"," ☕️",[127,258],{},[11,260,261],{},"I hope you learned something new. Feel free to suggest improvements ✔️",[11,263,264,265,270],{},"I share regular updates and resources on ",[24,266,269],{"href":267,"rel":268},"https:\u002F\u002Ftwitter.com\u002Fmkfeuhrer",[28],"Twitter",". Let's connect!",[11,272,273],{},[20,274,275],{},"Keep exploring 🔎 Keep learning 🚀",{"title":277,"searchDepth":278,"depth":278,"links":279},"",2,[280],{"id":41,"depth":278,"text":42,"children":281},[282],{"id":49,"depth":283,"text":50},3,[285,286],"System Design","Programming","Learn the concept and misconceptions around popular CAP theorem in system design.",false,"md","blog\u002Fcap-theorem\u002Fcap-theorem-card.webp","cap theorem, what is cap theorem",{},"cap-theorem",true,"\u002Fblog\u002Fcap-theorem",{"title":5,"description":287},"blog\u002Fcap-theorem","2021-07-26","lTKQMZBk1cT27owYEavAiivZ9rI3MBhwJL1WJkpA3Mk",[301,308,315,323,332,334,341,348,354,360,366,372,378,384,391,397,403,409,415,421,427,433,439,446,453,459,465,471,477,483,489,495,501,507,513,519,525,531,538,544,550,556,563,569,575,582,589,595,602,608,615,621,628,634,640,646,652,658,664,670,676,682,688,694,700,707,713,720,726,732,738,745,751],{"path":302,"title":303,"description":304,"categories":305,"draft":294,"year":307,"series":6},"\u002Fblog\u002Fai-assisted-workstation","Building an AI-Assisted Personal Workstation","A living log of building a practical AI-assisted workstation for software and startup work.",[306,286],"Productivity","2026-08-08",{"path":309,"title":310,"description":311,"categories":312,"draft":288,"year":314,"series":6},"\u002Fblog\u002Faws-s3-golang","Uploading images to AWS S3 in Golang","In this tutorial I cover how to upload, fetch and manage other operations for objects on AWS S3 in Golang",[313,286],"Golang","2020-01-12",{"path":316,"title":317,"description":318,"categories":319,"draft":288,"year":322,"series":6},"\u002Fblog\u002Fbooks-for-engineers","Best Books for Software Engineers","Best Books to help you build you software engineering career - ranging from fundamentats, interview prep to productivity.",[320,321],"Books","Life","2021-12-26",{"path":324,"title":325,"description":326,"categories":327,"draft":288,"year":331,"series":6},"\u002Fblog\u002Fbuilding-acrons","Building Acrons 🚀","Building Acrons, a one-stop tool to decode everyday acronyms like DIY, FOMO, and BRB without losing your flow.",[328,329,330],"Side Projects","Web","Tools","2020-05-26",{"path":295,"title":5,"description":287,"categories":333,"draft":288,"year":298,"series":6},[285,286],{"path":335,"title":336,"description":337,"categories":338,"draft":288,"year":340,"series":6},"\u002Fblog\u002Fcode-reviews","Code Review Checklist","Why code reviews matter, and best practices that catch bugs early and keep code quality high before merge.",[339],"Engineering Principles","2020-07-20",{"path":342,"title":343,"description":344,"categories":345,"draft":288,"year":347,"series":6},"\u002Fblog\u002Fdark-mode","Add Dark mode to websites","Dark mode is ❤️️ Add it to your websites with little CSS and JS",[346,329],"Javascript","2020-07-04",{"path":349,"title":350,"description":351,"categories":352,"draft":288,"year":353,"series":6},"\u002Fblog\u002Fdate-time-golang","Working with Date and Time in Go","Learn how to use time in Golang - Multiple formats, locations and using date.",[313,286],"2020-10-09",{"path":355,"title":356,"description":357,"categories":358,"draft":288,"year":359,"series":6},"\u002Fblog\u002Fdefer-in-golang","Understanding Defer In Golang","Learn about defer keyword in golang and how it can help you avoid panics due to bugs.",[313,286],"2021-05-05",{"path":361,"title":362,"description":363,"categories":364,"draft":288,"year":365,"series":6},"\u002Fblog\u002Fenums-golang","Implementing Enums in Golang","Enums are a way to defined set of constant values. Learn how to implement enums in Go using iota with examples.",[313,286],"2021-12-18",{"path":367,"title":368,"description":369,"categories":370,"draft":288,"year":371,"series":6},"\u002Fblog\u002Fenvironment-variable-golang","Guide to Environment variables in Go","Learn what are environment variables and how to use them in Go",[313,286],"2020-08-14",{"path":373,"title":374,"description":375,"categories":376,"draft":288,"year":377,"series":6},"\u002Fblog\u002Ferror-handling-golang","Handle errors the right way — Golang","How to handle errors in golang to make your life easy",[313,286],"2020-01-30",{"path":379,"title":380,"description":381,"categories":382,"draft":288,"year":383,"series":6},"\u002Fblog\u002Ffile-upload-golang","Uploading Files in Golang with Multipart Request","Learn how to upload files from your client to server as a multipart request in Golang.",[313,286],"2021-03-13",{"path":385,"title":386,"description":387,"categories":388,"draft":288,"year":390,"series":6},"\u002Fblog\u002Fgit-branch","Git Branch 101","Branching is a new path of development that makes it a lot easier to build features. Learn why and how to use branching in git.",[389,286],"Git","2022-03-20",{"path":392,"title":393,"description":394,"categories":395,"draft":288,"year":396,"series":6},"\u002Fblog\u002Fgit-pull-request-template","Guide to Pull Request Templates","Improve collaboration and code reviews with pull request templates. Blog include PR template and how to create one on github\u002Fgitlab",[389,286],"2023-08-24",{"path":398,"title":399,"description":400,"categories":401,"draft":288,"year":402,"series":6},"\u002Fblog\u002Fgit-remove-sensitive-info","Securing Git: Remove Sensitive Information","Protect your code from security breaches by using BFG tool to remove sensitive information from Git history. Learn how to do it in this comprehensive guide.",[389,286],"2023-10-16",{"path":404,"title":405,"description":406,"categories":407,"draft":288,"year":408,"series":6},"\u002Fblog\u002Fgit-tags-explained","Git tags : Explained","What Git tags are, why and when to use them, and how to start tagging releases in your own projects.",[389,286],"2020-06-18",{"path":410,"title":411,"description":412,"categories":413,"draft":288,"year":414,"series":6},"\u002Fblog\u002Fgo-dependency-injection","Dependency Injection in Go using Wire","Learn about dependency injection, its benefits and how to implement it in Go services using wire",[313,286],"2022-11-26",{"path":416,"title":417,"description":418,"categories":419,"draft":288,"year":420,"series":6},"\u002Fblog\u002Fgo-generics","Introduction to Generics in Go","Learn about generics in Golang, it's benefits and how to implement it in applications.",[313,286],"2022-11-27",{"path":422,"title":423,"description":424,"categories":425,"draft":288,"year":426,"series":6},"\u002Fblog\u002Fgo-in-memory-cache","Building In-Memory Cache in Go","Learn about in-memory caching in Golang, it's benefits and how to implement it with and without generics with a TTL(expiry).",[313,286],"2024-03-28",{"path":428,"title":429,"description":430,"categories":431,"draft":288,"year":432,"series":6},"\u002Fblog\u002Fgo-makefile","Ultimate Makefile for Golang","Boost your productivity and save time with ultimate Makefile for Golang projects.",[313,286],"2024-06-10",{"path":434,"title":435,"description":436,"categories":437,"draft":288,"year":438,"series":6},"\u002Fblog\u002Fgo-middleware","Mastering Middlewares in Golang","Learn about middlewares, their use cases and how to implement them in Golang applications",[313,286],"2022-03-13",{"path":440,"title":441,"description":442,"categories":443,"draft":288,"year":445,"series":6},"\u002Fblog\u002Fgo-naming-conventions","Naming Conventions in Golang","Why naming conventions matter in Go, with best practices and practical examples for clear, readable, maintainable code.",[313,286,444],"Code Quality","2023-05-19",{"path":447,"title":448,"description":449,"categories":450,"draft":288,"year":452,"series":6},"\u002Fblog\u002Fgo-with-redis","Go with Redis","A practical introduction to using Redis with Golang to make your applications faster with in-memory data storage.",[313,451,286],"Database","2020-05-03",{"path":454,"title":455,"description":456,"categories":457,"draft":288,"year":458,"series":6},"\u002Fblog\u002Fgolang-maps","Learn Maps in Golang (with examples)","A complete guide to maps in Golang: creating maps, adding and removing items, iterating, and how map equality works.",[313,286],"2020-09-10",{"path":460,"title":461,"description":462,"categories":463,"draft":288,"year":464,"series":6},"\u002Fblog\u002Fguide-to-cdn","Guide to Content Delivery Network","CDN is one of the backbone of modern world internet infrastructure. Learn about Content Delivery Network, it's working, types and benefits.",[285,286],"2022-01-23",{"path":466,"title":467,"description":468,"categories":469,"draft":288,"year":470,"series":6},"\u002Fblog\u002Fguide-to-rule-engines","Guide to Rule Engines","Rule Engines help in solving changing business requirements with ease. Learn all about Rule engines, it's working, benefits and how to implement one in Golang",[313,286],"2022-09-12",{"path":472,"title":473,"description":474,"categories":475,"draft":288,"year":476,"series":6},"\u002Fblog\u002Fhexagonal-architecture","Guide to Hexagonal Architecture","Learn how to design efficient application with hexagonal architecture with practical example",[285,286],"2020-12-13",{"path":478,"title":479,"description":480,"categories":481,"draft":288,"year":482,"series":6},"\u002Fblog\u002Fhttp-status-codes","Learn HTTP Status Codes","A tour of HTTP response status codes, what each class means, and when to use which code in your applications.",[329,286],"2020-07-30",{"path":484,"title":485,"description":486,"categories":487,"draft":288,"year":488,"series":6},"\u002Fblog\u002Fintroduction-to-goroutines","Introduction to Goroutines","Understand the basics of concurrency and learn how to work with Goroutines in golang.",[313,286],"2021-04-10",{"path":490,"title":491,"description":492,"categories":493,"draft":288,"year":494,"series":6},"\u002Fblog\u002Fjson-in-postgres-with-golang","Storing JSON in Postgres with Golang","Learn how to store JSON objects in Postgres and how to implement it in Golang.",[286,451,313],"2021-02-13",{"path":496,"title":497,"description":498,"categories":499,"draft":288,"year":500,"series":6},"\u002Fblog\u002Fjson-web-token","Complete Guide to JWT","JSON Web Tokens are a very compact way to carry information. Learn about JWTs in depth, from its structure to when to use it.",[286,329],"2021-11-20",{"path":502,"title":503,"description":504,"categories":505,"draft":288,"year":506,"series":6},"\u002Fblog\u002Flearn-to-say-no","Learning to say No","Learn why it's important to say 'NO'. How it helps in increasing productivity and explore strategies for saying No",[321,320],"2022-04-09",{"path":508,"title":509,"description":510,"categories":511,"draft":288,"year":512,"series":6},"\u002Fblog\u002Flearn-unlearn-relearn","Learn - Unlearn - Relearn","Unlearning things to learn new is the way to grow. Discover how to do that!",[306,321],"2020-09-25",{"path":514,"title":515,"description":516,"categories":517,"draft":288,"year":518,"series":6},"\u002Fblog\u002Flinting-in-golang","Introduction to Linting in Go","Introduction to improving code quality using linting. Learn how to add linting in your Go projects.",[313,286],"2021-07-07",{"path":520,"title":521,"description":522,"categories":523,"draft":288,"year":524,"series":6},"\u002Fblog\u002Fload-balancing","Load Balancing 101","Complete guide on load balancers explaining the internal working and how does it help in making applications efficient.",[285,286],"2021-05-29",{"path":526,"title":527,"description":528,"categories":529,"draft":288,"year":530,"series":6},"\u002Fblog\u002Fmaking-decisions-the-right-way","Making Decisions: The right way","Decisions are hard! Learn how to make the right decisions always",[306,321],"2020-06-07",{"path":532,"title":533,"description":534,"categories":535,"draft":288,"year":537,"series":6},"\u002Fblog\u002Fmanage-logs-with-logrotate","Using Logrotate to manage logs","Learn how to use logrotate system utility to manage logs with example",[536,286],"Linux","2020-09-08",{"path":539,"title":540,"description":541,"categories":542,"draft":288,"year":543,"series":6},"\u002Fblog\u002Fmarshal-structs-golang","Marshal structs the right way: Golang","Why Golang marshals empty structs into your JSON instead of null, and how to marshal structs the right way.",[313,286],"2020-03-31",{"path":545,"title":546,"description":547,"categories":548,"draft":288,"year":549,"series":6},"\u002Fblog\u002Fnotes-almanack-naval","Book Notes : Almanack of Naval Ravikant","My notes\u002Fhighlights from Almanack of Naval Ravikant book by Eric Jorgenson",[320,321],"2020-10-17",{"path":551,"title":552,"description":553,"categories":554,"draft":288,"year":555,"series":6},"\u002Fblog\u002Fnotes-anything-you-want","Book Notes : Anything you want","My notes\u002Fhighlights from Anything you want book by Derek Sivers",[320,321],"2021-09-25",{"path":557,"title":558,"description":559,"categories":560,"draft":288,"year":562,"series":6},"\u002Fblog\u002Fnotes-getting-real","Book Notes : Getting Real","My notes and highlights from Getting Real by Jason Fried and David Heinemeier Hansson on building web applications.",[320,561],"Startups","2020-11-03",{"path":564,"title":565,"description":566,"categories":567,"draft":288,"year":568,"series":6},"\u002Fblog\u002Fnotes-hell-yeah-or-no","Book Notes : Hell Yeah or No","My notes\u002Fhighlights from Hell Yeah or No book by Derek Sivers",[320,321],"2020-09-16",{"path":570,"title":571,"description":572,"categories":573,"draft":288,"year":574,"series":6},"\u002Fblog\u002Fnotes-how-to-be-a-capitalist","Book Notes : How to Be a Capitalist Without Any Capital","My notes\u002Fhighlights from How to Be a Capitalist Without Any Capital by Nathan Latka",[320,561],"2020-01-07",{"path":576,"title":577,"description":578,"categories":579,"draft":288,"year":581,"series":6},"\u002Fblog\u002Fnotes-lean-b2b","Book Notes : Lean B2B","My notes and highlights from Lean B2B by Étienne Garbugli on assessing markets, building MVPs, and selling to businesses.",[320,580],"Entrepreneurship","2022-07-02",{"path":583,"title":584,"description":585,"categories":586,"draft":288,"year":588,"series":6},"\u002Fblog\u002Fnotes-lets-talk-money","Book Notes : Let's Talk Money","My notes and highlights from Let's Talk Money by Monica Halan on managing personal finances and savings.",[320,587],"Personal Finance","2021-02-26",{"path":590,"title":591,"description":592,"categories":593,"draft":288,"year":594,"series":6},"\u002Fblog\u002Fnotes-obviously-awesome","Book Notes : Obviously Awesome","My notes and highlights from Obviously Awesome by April Dunford on product positioning and marketing strategy.",[320,561],"2020-04-26",{"path":596,"title":597,"description":598,"categories":599,"draft":288,"year":601,"series":6},"\u002Fblog\u002Fnotes-refactoring-ui","Book Notes: Refactoring UI","My notes and highlights from Refactoring UI by Adam Wathan and Steve Schoger, full of practical design tips for engineers.",[320,600],"Design","2020-05-09",{"path":603,"title":604,"description":605,"categories":606,"draft":288,"year":607,"series":6},"\u002Fblog\u002Fnotes-rework","Book Notes: Rework","My notes and highlights from Rework by Jason Fried and David Heinemeier Hansson on a better way to succeed in business.",[320,561],"2021-04-14",{"path":609,"title":610,"description":611,"categories":612,"draft":288,"year":614,"series":6},"\u002Fblog\u002Fone-on-one-meetings","Guide to Effective 1:1 Meetings","One on One meetings are important for your personal & professional growth. Learn how to master 1:1s with your manager and peers.",[613,306],"Career","2023-03-05",{"path":616,"title":617,"description":618,"categories":619,"draft":288,"year":620,"series":6},"\u002Fblog\u002Fpersonal-okrs","Personal OKRs for Success","Why one should set personal OKRs and how to achieve success with them",[306,321],"2020-06-27",{"path":622,"title":623,"description":624,"categories":625,"draft":288,"year":627,"series":6},"\u002Fblog\u002Fpoker-tips","Poker Tips: Johns Hopkins Poker Class","Notes from Johns Hopkins poker course. This guide will help you improve in Poker and win some large pots.",[321,626],"Poker","2020-06-13",{"path":629,"title":630,"description":631,"categories":632,"draft":288,"year":633,"series":6},"\u002Fblog\u002Fpomodoro","Get work done: The Pomo Way","Learn to focus and get productive by following the Pomodoro Technique",[306],"2020-10-24",{"path":635,"title":636,"description":637,"categories":638,"draft":288,"year":639,"series":6},"\u002Fblog\u002Fpostgres-constraints","Postgres Constraints","Constraints are line of defense for database. Explore various types of constrainsts in postgres",[451,286],"2020-11-07",{"path":641,"title":642,"description":643,"categories":644,"draft":288,"year":645,"series":6},"\u002Fblog\u002Fppf-explained","PPF Explained","Learn basics about Public Provident Fund and why you should invest",[321,587],"2020-12-24",{"path":647,"title":648,"description":649,"categories":650,"draft":288,"year":651,"series":6},"\u002Fblog\u002Fproductivity-chrome-extensions","Boost Productivity with Chrome Extensions","Utitizing chrome extensions to boost your productivity!",[306,330,329],"2020-04-24",{"path":653,"title":654,"description":655,"categories":656,"draft":288,"year":657,"series":6},"\u002Fblog\u002Fproductivity-in-vscode","Improve your productivity with VS Code","Key VS Code features like the integrated terminal, shortcuts, and extensions that improved my everyday productivity.",[306,286],"2020-03-12",{"path":659,"title":660,"description":661,"categories":662,"draft":288,"year":663,"series":6},"\u002Fblog\u002Freading-101","Improving Reading 101","Why reading matters, how to build a reading habit, and what to read next - from my own journey into books.",[320,321],"2020-04-04",{"path":665,"title":666,"description":667,"categories":668,"draft":288,"year":669,"series":6},"\u002Fblog\u002Freverse-proxy","Understanding Reverse Proxy","Learn about reverse proxy, how it is different from forward proxy and explore advantages of using it in system design.",[285,286],"2021-10-03",{"path":671,"title":672,"description":673,"categories":674,"draft":288,"year":675,"series":6},"\u002Fblog\u002Frunning-periodic-background-task-golang","Running periodic background tasks in Golang","How to run periodic background tasks in Golang by combining cron-style scheduling with background execution.",[313,286],"2019-11-21",{"path":677,"title":678,"description":679,"categories":680,"draft":288,"year":681,"series":6},"\u002Fblog\u002Fsessions-in-golang","Sessions using Golang and Redis","How cookies and sessions work, and how to implement persistent login sessions in Golang using Redis.",[313,451,286],"2020-02-25",{"path":683,"title":684,"description":685,"categories":686,"draft":288,"year":687,"series":6},"\u002Fblog\u002Fsolid-dry-kiss-yagni","Solid Dry Kiss Yagni","An introduction to the SOLID, DRY, KISS, and YAGNI principles and how they help you write cleaner, robust code.",[339],"2020-07-17",{"path":689,"title":690,"description":691,"categories":692,"draft":288,"year":693,"series":6},"\u002Fblog\u002Fstack-in-golang","Implement Stack in Golang","Learn how to implement stack data structure in Golang (Full code)",[313,286],"2020-09-14",{"path":695,"title":696,"description":697,"categories":698,"draft":288,"year":699,"series":6},"\u002Fblog\u002Fstart-oss-today","Start your Open Source journey today","Start your OSS journey with intro to GIT. Participate in Hacktoberfest!",[389,286],"2020-09-19",{"path":701,"title":702,"description":703,"categories":704,"draft":288,"year":706,"series":6},"\u002Fblog\u002Fsticky-social-bar","Sticky social share component in HTML","Learn how to build a social media sharing component in HTML and add it to your website.",[286,705],"Frontend","2021-02-05",{"path":708,"title":709,"description":710,"categories":711,"draft":288,"year":712,"series":6},"\u002Fblog\u002Fterm-insurance","Term insurance Simplified","Everything you need to know before you buy a term insurance.",[321,587],"2020-11-29",{"path":714,"title":715,"description":716,"categories":717,"draft":288,"year":719,"series":6},"\u002Fblog\u002Fterminal-output-with-redirection","Handling terminal outputs with Redirection","Learn how to handle terminal outputs with Redirection and saving it to files",[536,718,286],"Terminal","2020-09-06",{"path":721,"title":722,"description":723,"categories":724,"draft":288,"year":725,"series":6},"\u002Fblog\u002Fthink-and-grow-rich","Book Notes: Think and Grow Rich","My notes and highlights from Think and Grow Rich by Napoleon Hill, covering its process for building wealth.",[320,321],"2020-05-19",{"path":727,"title":728,"description":729,"categories":730,"draft":288,"year":731,"series":6},"\u002Fblog\u002Ftransactions-postgres-golang","Transactions on Postgres with Golang","Performing Postgres database operations in Golang with GORM, from basic queries to full transaction support.",[313,451,286],"2020-03-18",{"path":733,"title":734,"description":735,"categories":736,"draft":288,"year":737,"series":6},"\u002Fblog\u002Fwaitgroups-in-golang","WaitGroups in Golang","Learn about WaitGroups in golang and how to use them to perform concurrent operations without blocking the main thread.",[313,286],"2022-05-31",{"path":739,"title":740,"description":741,"categories":742,"draft":288,"year":744,"series":6},"\u002Fblog\u002Fwhat-i-use","What I Use: Products and Softwares","List of what I use in my day to day life ranging from terminal, editors, softwares, devices to accessories",[321,743],"Tech","2024-06-01",{"path":746,"title":747,"description":748,"categories":749,"draft":288,"year":750,"series":6},"\u002Fblog\u002Fyear-in-review-2020","Year in Review: 2020","It's a wrap! 2020 was a crazy year, See how my year went!",[321],"2020-12-31",{"path":752,"title":753,"description":754,"categories":755,"draft":288,"year":756,"series":6},"\u002Fblog\u002Fyear-in-review-2021","Year in Review: 2021","It's a wrap! 2021 was a mixed bag, full of ups and downs. Key Goal for 2022: Start now!",[321],"2021-12-31",1787743427985]