Managing Distributed Transactions
Introduction In a monolithic system, updating inventory and creating an order happen within a single transaction, ensuring atomicity and consistency. However, in a microservices architecture, these...
Introduction In a monolithic system, updating inventory and creating an order happen within a single transaction, ensuring atomicity and consistency. However, in a microservices architecture, these...
LeetCode Calendar This problem is taken from LeetCode: https://leetcode.com/problems/my-calendar-i/ You are implementing a program to use as your calendar. You can add a new event if adding the...
Fundamentals Redis (Remote Dictionary Server) is an open-source, in-memory data structure store that serves as a database, cache, and message broker. It’s known for its blazing-fast performance an...
Overview of ACID and BASE ACID and BASE are database transaction models that determine how databases organize and manipulate data. They differ in their approach to consistency and availability. AC...
Subset Pattern: Optimizing MongoDB Working Sets Large documents with infrequently used data can cause working sets to exceed RAM, leading to performance issues. The Subset Pattern addresses this ...
Computed Pattern The Computed Pattern involves precomputing values and storing the results to optimize performance and reduce CPU workload. This approach is particularly beneficial for application...
Outlier Pattern Imagine you’re building a social media platform where users can create posts, and others can like, comment, or share those posts. In most cases, the number of interactions per post...
The Attribute Pattern is especially useful in the following scenarios: When dealing with large documents that have numerous similar fields, but a subset of these fields shares common characteri...
The Bucket Pattern When dealing with time series data, storing each measurement in its own document can lead to issues with data and index size as the application scales. For instance, a system re...
Problem In e-commerce systems, double payment errors can occur when customers are charged twice for the same transaction. graph TD subgraph paymentErrors["fa:fa-credit-card Double Payment Erro...
Core Concepts Components: The building blocks of a React application. They are functional and are used to encapsulate parts of the UI. JSX: A syntax extension that allows writing...
Fundamentals Express.js is a popular web application framework for Node.js that simplifies building web applications and APIs. Middleware: Functions that access the request and response o...
MongoDB Architecture MongoDB is a popular NoSQL database designed for high performance, high availability, and easy scalability. It stores data in flexible, JSON-like documents, making it easy to ...
Basic What is NodeJs ? Node.js is a JavaScript runtime built on Chrome’s V8 JavaScript engine. It uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js is i...
Throttling vs Rate Limiting Definitions Throttling is often applied within a single application or service to control resource use. It dynamically adjusts the rate of request processing based on cu...
The architecture landscape is varied, offering a multitude of options to developers. Among the most popular choices are microservices, modular monoliths, and distributed monoliths. Each architectur...
High Traffic E-Commerce Site: Handling Concurrent Requests graph LR subgraph HighTraffic["🛍️ High Traffic Event"] MultipleUsers["👥 Multiple Users"] SimultaneousRequests["🔃 Simu...
Security Vulnerabilities Cors Cross-Origin Resource Sharing (CORS) is a mechanism that uses additional HTTP headers to tell browsers to give a web application running at one origin, access to sele...
Deploying a Lottery Smart Contract with Truffle The Lottery smart contract is a simple Ethereum smart contract that allows users to enter a lottery by sending a minimum amount of Ether. The contra...
In this post, we will explore the Truffle Pet Shop interface and the underlying code that powers it. The Truffle Pet Shop is a sample decentralized application (DApp) that showcases how to interact...
Truffle is the development framework for Ethereum, simplifying smart contract creation, testing, and deployment. Read more about Truffle here. About the Pet Shop Tutorial The Truffle Pet Shop tu...
In this guide, we will explore the creation of a simple lottery smart contract using Solidity and Remix. We will cover the key concepts of smart contracts, such as state variables, functions, modif...
Before reading this article, you should have a basic understanding of concepts and blockchain technology at this post blockchain-for-dummies Introduction to Solidity Solidity is a high-level prog...
In this article, we will cover the basics of blockchain technology in a simple and easy-to-understand way. Each section start with a simple diagram to explain the concept and then followed by a bri...
I have known Dragon Ball since I was a child. Back then, I dreamed of being a character who could help Goku in his battles. I still have this habit as an adult when I have trouble sleeping. The fig...
Sigmund Freud Sigmund Freu (/ˈzɪɡmʊnt frɔɪd/), born in 1856 in Austria, was a neurologist and the founder of psychoanalysis. He revolutionized the understanding of the human mind and its workings,...
Secure File Handling With PGP Encryption Secure file handling is crucial for protecting sensitive information. This article explores a robust approach to file encryption, compression, and handling...
Why Hash Passwords? 🛡️ Plaintext storage is dangerous graph LR subgraph storingPasswords["fa:fa-database Storing Passwords"] plainText["fa:fa-file-alt Password: 'password123'"] -->|"Insecu...
Public key cryptography is a method of encrypting or signing data with two different keys and making one of the keys, the public key, available for anyone to use. The other key is known as the priv...
Symmetric encryption is a type of encryption where the same key is used for both encryption and decryption. We will cover the basics of encryption, how to implement it using Node.js, and how to ens...