<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Akashgiri on Medium]]></title>
        <description><![CDATA[Stories by Akashgiri on Medium]]></description>
        <link>https://medium.com/@akashgiri3281?source=rss-ffc076808369------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Bm7YmFO3NOV3IYpr</url>
            <title>Stories by Akashgiri on Medium</title>
            <link>https://medium.com/@akashgiri3281?source=rss-ffc076808369------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 00:05:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@akashgiri3281/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Understanding Android Project Structure: A Beginner’s Guide]]></title>
            <link>https://medium.com/@akashgiri3281/understanding-android-project-structure-a-beginners-guide-9d0ffa4f1d63?source=rss-ffc076808369------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d0ffa4f1d63</guid>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[android-programming]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Akashgiri]]></dc:creator>
            <pubDate>Thu, 12 Mar 2026 14:25:48 GMT</pubDate>
            <atom:updated>2026-03-12T14:25:48.044Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>When developing an Android application, one of the first things a developer encounters is the Android project structure. At first glance, the numerous folders and files in an Android Studio project may seem confusing. However, each directory and file has a specific role in building and managing the application.</p><p>Understanding the Android project structure is essential because it helps developers organize their code, manage resources, configure the application, and build the final Android package.</p><p>In this blog, we will explore the main components of an Android project structure including:</p><p>• Java/Kotlin/Flutter Directory<br>• XML Layout Files<br>• Android Manifest File<br>• Gradle Build Scripts</p><p>Understanding these elements will help beginners navigate Android Studio projects more confidently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ueXTgSQu0G1weyiG.png" /></figure><h3>1. Java / Kotlin / Flutter Directory</h3><p>The Java or Kotlin directory is where the main source code of the Android application is written. This folder contains the classes that define the behavior and logic of the application.</p><p>Modern Android development mainly uses Kotlin, although Java is still widely used. In Flutter projects, the logic is written using the Dart programming language.</p><p>Typical files found in this directory include:</p><p>• MainActivity<br>• Other Activity classes<br>• Fragments<br>• Adapters<br>• ViewModels<br>• Utility or helper classes</p><p>These classes control how the application behaves and how it responds to user actions.</p><p>Example project structure:</p><p>app<br>└ java<br>└ com.example.myapp<br>├ MainActivity.java<br>├ LoginActivity.java<br>└ DashboardActivity.java</p><p>Example code for MainActivity:</p><pre>public class MainActivity extends AppCompatActivity {</pre><pre>    @Override<br>    protected void onCreate(Bundle savedInstanceState) {<br>        super.onCreate(savedInstanceState);<br>        setContentView(R.layout.activity_main);<br>    }<br>}</pre><p>This file represents the main screen of the application and controls how the app starts.</p><h3>2. XML Layout Files</h3><p>Android applications use XML (Extensible Markup Language) to design the user interface. XML layout files define how the application looks on the screen.</p><p>These files contain UI elements such as:</p><p>• TextView<br>• Buttons<br>• Images<br>• Input fields<br>• Layout containers</p><p>All layout files are stored inside the res/layout directory.</p><p>Example folder structure:</p><p>res<br>└ layout<br>├ activity_main.xml<br>├ activity_login.xml<br>└ activity_dashboard.xml</p><p>Each layout file usually represents one screen of the application.</p><p>Example XML layout file:</p><pre>&lt;LinearLayout<br>    xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    android:layout_width=&quot;match_parent&quot;<br>    android:layout_height=&quot;match_parent&quot;<br>    android:orientation=&quot;vertical&quot;&gt;</pre><pre>    &lt;TextView<br>        android:layout_width=&quot;wrap_content&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:text=&quot;Welcome to Android App&quot;/&gt;</pre><pre>    &lt;Button<br>        android:layout_width=&quot;wrap_content&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:text=&quot;Click Me&quot;/&gt;</pre><pre>&lt;/LinearLayout&gt;</pre><p>Using XML layouts helps separate the application design from the program logic, making the project easier to manage and maintain.</p><h3>3. Android Manifest File</h3><p>The Android Manifest file is one of the most important configuration files in an Android application. It provides essential information about the application to the Android operating system.</p><p>The file is located at:</p><p>app → manifests → AndroidManifest.xml</p><p>The manifest file defines:</p><p>• Application package name<br>• Activities used in the app<br>• Permissions required by the application<br>• Minimum Android version supported<br>• App components such as services and broadcast receivers</p><p>Example AndroidManifest.xml file:</p><pre>&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    package=&quot;com.example.myapp&quot;&gt;</pre><pre>    &lt;application<br>        android:label=&quot;My App&quot;<br>        android:theme=&quot;@style/Theme.App&quot;&gt;</pre><pre>        &lt;activity android:name=&quot;.MainActivity&quot;&gt;<br>            &lt;intent-filter&gt;<br>                &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;<br>                &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;<br>            &lt;/intent-filter&gt;<br>        &lt;/activity&gt;</pre><pre>    &lt;/application&gt;</pre><pre>&lt;/manifest&gt;</pre><p>This file tells Android which activity should start when the application launches.</p><h3>4. Gradle Build Scripts</h3><p>Gradle is the build system used in Android development. It automates tasks such as compiling the code, managing external libraries, and packaging the application.</p><p>Gradle scripts define how the project is built.</p><p>Important Gradle files include:</p><p>• build.gradle (Project level)<br>• build.gradle (Module: app)<br>• settings.gradle<br>• gradle.properties</p><p>Example of a module-level Gradle configuration:</p><pre>plugins {<br>    id &#39;com.android.application&#39;<br>}</pre><pre>android {<br>    compileSdk 34</pre><pre>    defaultConfig {<br>        applicationId &quot;com.example.myapp&quot;<br>        minSdk 21<br>        targetSdk 34<br>        versionCode 1<br>        versionName &quot;1.0&quot;<br>    }<br>}</pre><pre>dependencies {<br>    implementation &#39;androidx.appcompat:appcompat:1.6.1&#39;<br>}</pre><p>Gradle automatically downloads required libraries and builds the application when the project is compiled.</p><h3>Why Understanding Android Project Structure is Important</h3><p>Understanding the Android project structure provides many advantages for developers.</p><p>Better Organization</p><p>Developers can easily find and manage project files.</p><p>Easier Debugging</p><p>When errors occur, it becomes easier to locate and fix problems.</p><p>Efficient Development</p><p>Well-structured projects help developers build applications faster.</p><p>Scalable Applications</p><p>Large applications require proper project organization to remain maintainable.</p><h3>Conclusion</h3><p>The Android project structure plays a crucial role in organizing an Android application. Each directory and file has a specific responsibility that contributes to the overall development process.</p><p>The key components include:</p><p>• Java/Kotlin/Flutter directory for application logic<br>• XML layout files for designing user interfaces<br>• Android Manifest file for application configuration<br>• Gradle scripts for building and managing dependencies</p><p>For beginners learning Android development, understanding the project structure is an important step toward building well-organized and professional mobile applications. As developers gain more experience, mastering the Android project structure will help them develop scalable, efficient, and maintainable applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d0ffa4f1d63" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Apps Communication A beginners Guide to Intents.]]></title>
            <link>https://medium.com/@akashgiri3281/android-apps-communication-a-beginners-guide-to-intents-5b79159656a7?source=rss-ffc076808369------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b79159656a7</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-programming]]></category>
            <category><![CDATA[android-development]]></category>
            <dc:creator><![CDATA[Akashgiri]]></dc:creator>
            <pubDate>Thu, 12 Mar 2026 14:09:09 GMT</pubDate>
            <atom:updated>2026-03-12T14:09:09.577Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong></p><p>Contemporary Android applications do not usually operate alone. They rather send messages to other parts within the application or even to other applications in the device.</p><p>Apps can use this communication to do things such as opening a web browser, sharing pictures, emailing or screen-navigating within an app. An Intent is one of the most significant processes that facilitate this communication in Android.</p><p>An <strong>Intent </strong>is similar to a message that enables one part of an Android application to demand some action by another part. Using intents, the developers are able to initiate activities, start services, or send messages to other components of the system.</p><p>In this blog, we shall discuss on what intents are, their significance in the development of Android and how intents enable Android applications to communicate with one another.</p><p><strong>What is an Intent in Android?</strong></p><p>Intent is a message object that is employed in Android to direct rights to another element of the application.</p><p>The Android system will know:</p><p>I would like to do a certain thing.</p><p>For example:</p><ul><li>Open a new screen in the app</li><li>Share text with another application</li><li>Open a webpage in a browser</li><li>Send an email</li><li>Open the phone dialer</li></ul><p>The Android system then finds the appropriate component to handle the request.</p><p><strong>Why Intents Are Important</strong></p><p>Intents play a crucial role in Android application development because they allow components to communicate with each other.</p><p><strong>1. Navigation Between Screens</strong></p><p>Apps often have multiple screens (activities). Intents allow users to move between them.</p><p>Example:<br> Login Screen → Dashboard Screen</p><p><strong>2. Interaction Between Applications</strong></p><p>Android allows apps to interact with each other using implicit intents.</p><p>Examples include:</p><ul><li>Sharing a photo from Gallery to WhatsApp</li><li>Opening a location in Google Maps</li><li>Sending a file through Gmail</li></ul><p><strong>3. Decoupled Architecture</strong></p><p>Android components are loosely coupled with the help of intents. Rather than using a direct call to another component the app dispatches an intent and allows the android system to do the calling.</p><p><strong>Types of Intents in Android</strong></p><p>There are two main types of intents in Android:</p><ol><li>Explicit Intents</li><li>Implicit Intents</li></ol><p><strong>Explicit Intent</strong></p><p>An <strong>Explicit Intent</strong> is used when the developer knows exactly which component should handle the request.</p><p>This type of intent is commonly used to navigate between activities within the same application.</p><p><strong>Example Scenario</strong></p><p>A user clicks a button on the <strong>MainActivity</strong>, and the app opens <strong>SecondActivity</strong>.</p><p><strong>Java Code Example</strong></p><p>Intent intent = new Intent(MainActivity.this, SecondActivity.class);</p><p>startActivity(intent);</p><p><strong>Explanation</strong></p><ul><li>Intent creates the message object.</li><li>MainActivity.this represents the current application context.</li><li>SecondActivity.class specifies the activity that should open.</li><li>startActivity() launches the new activity.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*X-IRQOC-2knLfDWDigOsFQ.png" /></figure><p><strong>Implicit Intent</strong></p><p>An <strong>Implicit Intent</strong> does not specify the exact component to run. Instead, it declares a general action to perform.</p><p>The Android system finds the best application available to handle the request.</p><p><strong>Example Scenario</strong></p><p>Opening a website using a browser from inside an Android app.</p><p><strong>Java Code Example</strong></p><p>Intent intent = new Intent(Intent.ACTION_VIEW);</p><p>intent.setData(Uri.parse(“https://www.google.com&quot;));</p><p>startActivity(intent);</p><p><strong>Explanation</strong></p><ul><li>ACTION_VIEW tells Android to display the given data.</li><li>Uri.parse() converts the web address into a readable format for Android.</li><li>Android opens the default web browser to display the website.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*ZBXHylSHDbyYDJ7VFDlBvQ.png" /></figure><p><strong>Common Actions Used in Intents</strong></p><p>Android provides several predefined actions developers can use with intents.</p><p><strong>Action</strong></p><p><strong>Description</strong></p><p>ACTION_VIEW</p><p>View data such as a webpage</p><p>ACTION_SEND</p><p>Share data with another application</p><p>ACTION_DIAL</p><p>Open the phone dialer</p><p>ACTION_CALL</p><p>Make a phone call</p><p>ACTION_SENDTO</p><p>Send an email</p><p><strong>Example: Sharing Text Using an Intent</strong></p><p>One of the most common uses of intents is sharing text between applications.</p><p>Intent intent = new Intent(Intent.ACTION_SEND);</p><p>intent.setType(“text/plain”);</p><p>intent.putExtra(Intent.EXTRA_TEXT, “Hello from my Android App!”);</p><p>startActivity(intent);</p><p><strong>What Happens Here?</strong></p><ul><li>ACTION_SEND indicates that we want to send data.</li><li>setType(“text/plain”) specifies that we are sharing plain text.</li><li>putExtra() attaches the text message.</li><li>Android displays a list of apps that can handle the request.</li></ul><p>Users can then choose apps like:</p><ul><li>WhatsApp</li><li>Gmail</li><li>Telegram</li><li>Instagram</li></ul><p><strong>Screenshot Suggestion</strong></p><p>Insert a screenshot of the <strong>Android share menu showing multiple apps</strong>.</p><p><strong>Intent Filters</strong></p><p>An <strong>Intent Filter</strong> tells Android which intents a component can respond to.</p><p>Developers define intent filters inside the <strong>AndroidManifest.xml</strong> file.</p><p><strong>Example</strong></p><p>&lt;intent-filter&gt;</p><p>&lt;action android:name=”android.intent.action.VIEW” /&gt;</p><p>&lt;category android:name=”android.intent.category.DEFAULT” /&gt;</p><p>&lt;/intent-filter&gt;</p><p>Intent filters allow Android to determine which applications can respond to a specific implicit intent.</p><p><strong>Passing Data Between Activities</strong></p><p>Intents can also be used to pass data between activities.</p><p>This is done using <strong>Extras</strong>.</p><p><strong>Sending Data</strong></p><p>Intent intent = new Intent(MainActivity.this, SecondActivity.class);</p><p>intent.putExtra(“username”, “John”);</p><p>startActivity(intent);</p><p><strong>Receiving Data</strong></p><p>String username = getIntent().getStringExtra(“username”);</p><p>This method is commonly used for passing:</p><ul><li>User information</li><li>Product details</li><li>IDs</li><li>Messages</li></ul><p><strong>Real-World Examples of Intents</strong></p><p>Intents are used in many everyday mobile applications.</p><p><strong>Opening Google Maps</strong></p><p>When users click a location link, Android launches Google Maps using an intent.</p><p><strong>Sharing Photos</strong></p><p>Gallery apps allow users to share images to messaging or social media apps using intents.</p><p><strong>Email Integration</strong></p><p>Many apps use intents to open Gmail when users want to send feedback.</p><p><strong>Phone Dialing</strong></p><p>Clicking a phone number in an app launches the dialer through an intent.</p><p><strong>Best Practices When Using Intents</strong></p><p>Developers should follow certain best practices while working with intents.</p><p><strong>Use Explicit Intents Inside Your App</strong></p><p>Explicit intents are safer and more predictable when navigating between activities within the same application.</p><p><strong>Validate Data Passed Through Intents</strong></p><p>Always ensure that the data passed between activities is valid and secure.</p><p><strong>Avoid Passing Large Data</strong></p><p>Large data objects should not be passed through intents.</p><p>Instead, developers should use:</p><ul><li>Databases</li><li>SharedPreferences</li><li>ViewModel</li></ul><p><strong>Use Intent Chooser for Sharing</strong></p><p>Allow users to choose the app they want to share content with.</p><p>Intent chooser = Intent.createChooser(intent, “Share using”);</p><p>startActivity(chooser);</p><p><strong>Common Mistakes Beginners Make</strong></p><p>Many beginner Android developers make mistakes while working with intents.</p><p><strong>Forgetting to Register Activities</strong></p><p>Every activity must be registered in the <strong>AndroidManifest.xml</strong> file.</p><p><strong>Passing Too Much Data</strong></p><p>Trying to send large objects through intents can lead to performance issues.</p><p><strong>Incorrect Context Usage</strong></p><p>Using the wrong context when creating an intent can cause application crashes.</p><p><strong>Conclusion</strong></p><p>The most potent and important aspects of Android development are intents. They facilitate interaction among various components in an application and even that of various applications in a device.</p><p>With the intents, developers can create flexible, interactive, and interconnected Android applications which would integrate well with the Android ecosystem. Intents are important whether it is between screen navigation, content sharing, or external applications, the way applications work in the Android platform.</p><p>To laypersons on the Android programming, knowledge on intents is a fundamental process in developing more advanced and dynamic mobile applications.</p><p>As developers continue their journey in Android development, mastering intents will help them create smarter, more efficient, and more user-friendly applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b79159656a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Aggregate Data Model in NoSQL: Simple and easy guide for Beginners]]></title>
            <link>https://medium.com/@akashgiri3281/aggregate-data-model-in-nosql-simple-and-easy-guide-for-beginners-4598aaf456e4?source=rss-ffc076808369------2</link>
            <guid isPermaLink="false">https://medium.com/p/4598aaf456e4</guid>
            <category><![CDATA[nepal]]></category>
            <category><![CDATA[nosql]]></category>
            <dc:creator><![CDATA[Akashgiri]]></dc:creator>
            <pubDate>Sun, 14 Sep 2025 17:56:57 GMT</pubDate>
            <atom:updated>2025-09-14T17:56:57.541Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Aggregate Data Model in NoSQL: Simple and easy guide for Beginners</strong></p><p><strong>Description:</strong><br> learn about aggregate data models in NoSQL with simple and easy ex. ,with easy explanation, and case study for early developers.</p><p><strong>Table of Contents</strong></p><ul><li>Introduction</li><li>What is NoSQL and why not SQL only?</li><li>Aggregate data model basics</li><li>Different NoSQL families and aggregates</li><li>How aggregates help in real apps</li><li>Case study: small e-commerce app</li><li>Step-by step learning for using aggregates</li><li>Common anti-patterns and drawbacks</li><li>Migrating from SQL tables to aggregates collection — tips</li><li>Conclusion</li><li>Further reading</li></ul><p><strong>Introduction</strong></p><p>Sql is oldest. its structured based language .its uses rows and columns to store the data .its also neat. but sometimes it is strict as well . NoSQL came like a pro version its flexible, its fast, and easier to scale for many web applications.</p><p>in the nosql world, one idea is very powerful — the <strong>aggregate data model</strong>. if you are an early developer, aggregate thinking will change how you design the applications. Sometimes you may be confused by many terms — document, key-value, column, graph — but aggregate makes it simpler it means : <strong>grouping related pieces of data that they appear together and treat them all as a one unit.</strong></p><p>this post explains aggregate model in a very vary simple way. With lots of ex. step-by-step advice you can use in projects to developed your own web application .</p><p><strong>What is NoSQL and why not SQL only?</strong></p><p>sql databases store data in the forms of tables which includes rows and columns, they have strict schemas and joins. they are great for banking application, accounting applications, and any where we require strong consistency and where normal design matter most.</p><p>But in modern web application like social media, e-commerce, real-time systems — they need:</p><ul><li>fast readability at a specific scale</li><li>flexible schemas that changes quickly during development that will make development easier</li><li>fast access</li></ul><p>NoSQL full-fill all the requirement. different types of NoSQL databases solve different problems. NoSQL means not only use of SQL .</p><p><strong>why people like NoSQL most</strong></p><ul><li>flexible-schema: we can change structure without painful migrations.</li><li>easy to use horizontal scaling for reading and writing operations.</li></ul><p><strong>Compromise to do while using NoSQL</strong></p><p>· you may have duplicate data . duplicates data means we need to do extra work on writing operation.</p><ul><li>not every NoSQL supports strongly multi-document transactions .some can do that and some are unable to do that</li><li>we may do bad design = = messy structure and inconsistency in data may occure. aggregate model aims to reduce this messy bad design .</li></ul><p><strong>Aggregate data model basics</strong></p><p>an <strong>aggregate</strong> = = a collection of co-related data that is treated as one unit of info. Let’s imagine a box.in this box there are related things that they usually travels together.</p><p>Ex : a customer in an e-commerce app. instead of making 5 tables in SQL we can make (customer, addresses, orders, payments, prefs) you can keep it in one document that contains the related pieces of all 5 tables :</p><p>{</p><p>“ customerId “ : “ 2384 “ ,</p><p>“ name “ : “ akash giri “ ,</p><p>“ email “ : “ <a href="/service/mailto:akash.giri@indirauniversity.edu.in">akash.giri@indirauniversity.edu.in</a> “ ,</p><p>“ addresses “ : [</p><p>{ “ type “ : “ home “ , “ city “ : “ pune “ } ,</p><p>{ “ type “ : “ office “ , “ city “ : “ Mumbai “ }</p><p>] ,</p><p>“ orders “ : [</p><p>{ “ orderId “ : “ O201 “ , “ amount “ : 2000 } ,</p><p>{ “ orderId “ : “ O202 “ , “ amount “ : 4500 }</p><p>]</p><p>}</p><p>all together = = one aggregate.</p><p><strong>why its useful ?</strong></p><ul><li>data is easy to fetch: one query gets everything we needed for common use cases.</li><li>Its fits how apps think: a customer profile may needs addresses and recent orders. Its fetch once and render page fast.</li></ul><p><strong>key idea:</strong> we design aggregates on the basis of how our app queries data and not how a relational Entity Relational model looks like.</p><p><strong>Different NoSQL families and aggregates</strong></p><p>every nosql family uses aggregates differently. here’s a simple breakdown.</p><p><strong>document stores (mongodb, couchdb)</strong></p><ul><li>aggregate = document (json-like).</li><li>good for nested data and arrays.</li><li>example: blog post + comments inside one document (if comments count is small).</li></ul><p><strong>key-value stores (redis, dynamodb)</strong></p><ul><li>aggregate = value for a key. value can be json, blob, or serialized object.</li><li>example key: customer:C101 → value: {name:”akash”, orders:[…]}.</li><li>super fast for simple lookups.</li></ul><p><strong>column-family (cassandra, hbase)</strong></p><ul><li>aggregate = row (or partition). row can have many dynamic columns.</li><li>good for large time-series, event logs, user timelines.</li></ul><p><strong>graph databases (neo4j)</strong></p><ul><li>aggregate is less obvious: related node + its neighbors can behave like an aggregate.</li><li>good when relationships are first-class and traversals matter.</li></ul><p><strong>“Overview of NoSQL data model types: key-value, document, column-family, graph”</strong></p><p><strong>How aggregates help in real applications</strong></p><p>think by use-cases, then design aggregates.</p><p><strong>Ex. 1 — in blogging platforms</strong></p><ul><li>aggregate =&gt; one post of blog + its comments section + tags they used.</li><li>Benefits =&gt; fetch post with comments in one read only.</li></ul><p><strong>example 2 — ride sharing</strong></p><ul><li>aggregate: we should give one ride request (driver, rider, route, payment data, status).</li><li>Benefits : it can update status atomically in one document.</li></ul><p><strong>example 3 — inventory management system</strong></p><ul><li>aggregate: products (stock details, supplier ids, variants).</li><li>benefit: quick product detail read without using joins.</li></ul><p>the rule: if two pieces of data always travel together for your application reads, put them in the same aggregate .that we can access and use it in faster way</p><p><strong>Case study: small e-commerce app</strong></p><p>short case study to see how aggregates work for customers, products, carts, orders, and inventory system . this is practical and close to a real small shop.</p><p><strong>“Example of customer-order aggregate with embedded address duplicates (GeeksforGeeks)”</strong></p><p><strong>domain and common queries</strong></p><p>before designing, ask: what queries will api/frontend do most and what is app requirement?</p><ul><li>fetch product list by category</li><li>fetching product detail</li><li>shows customers profile with recent orders</li><li>show cart with product details</li><li>creates order and mark the inventory</li></ul><p>know we should design aggregates to optimize these queries.</p><p><strong>suggested aggregates and sample documents to follow</strong></p><p><strong>for ex:</strong></p><p><strong>product aggregate</strong></p><p>{</p><p>“ productid “ : “ P01 “ ,</p><p>“ title “ : “ toothbrush “,</p><p>“ category “ : “ tooth paste “,</p><p>“ variants “ : [</p><p>{ “ xyz “ : “ p1 “, “ color “ : “ blue “ , “ price “ : 200 , “ stock “ : 150 } ,</p><p>{ “ xyz “: “ P2 “, “ color “ : “ red “ , “ price “ : 210, “ stock “ : 50 }</p><p>] ,</p><p>“ specs “ : { “ weight “ : “ 50g “ , “ brand “ : “ cleanCo “ } ,</p><p>“ updatedAt “ : “ 2025–08–01T10:00:00Z “</p><p>}</p><p>product documents keeps in variants and stock small enough. if stock updates are extremely frequent at variant level, consider to moving stocks to a separate small document or use another methods .</p><p><strong>cart aggregate (per users )</strong></p><p>{</p><p>“ cartId “ : “ C1 “ ,</p><p>“ userId “: “ U1 “,</p><p>“ items “ : [</p><p>{ “ xyz “ : “ P1 “, “ qty “: 2 , “ priceSnapshot “ : 200 } ,</p><p>{ “ sku “ : “ P5 “ , “ qty “ : 1 , “ priceSnapshot “ : 999 }</p><p>] ,</p><p>“ updatedAt “ : “ 2025–08–30T08:00:00Z “</p><p>}</p><p>cart is the temporary aggregate we made . good candidate for a key-value store or small documents. priceSnapshot avoids price surprise when user checks out from the system .</p><p><strong>order aggregate</strong></p><p>{</p><p>“ orderId “ : “ O1 “ ,</p><p>“ customer “ : { “ id “ : “ U1 “ , “ name “ : “ anita “ } ,</p><p>“ items “ : [</p><p>{ “ xyz “ : “ P1 “ , “ qty “ : 2 , “ price “ : 200 } ,</p><p>{ “ xyz “ : “ P5 “ , “ qty “ : 1, “ price “ : 999}</p><p>] ,</p><p>“ payment “ : { “ method “ : “ card “, “ txnId “ : “ TX999 “ } ,</p><p>“ total “ : 1399 ,</p><p>“ status “ : “ delivered “ ,</p><p>“ placedAt “ : “ 2025–09–01T14:00:00Z “</p><p>}</p><p>order aggregates take a snapshot of customer name and item prices. yes this can duplicates data — but it also keeps order history correct even if product name and price later changes.</p><p><strong>sample operations</strong></p><ul><li><strong>read order details:</strong> one document reads — and its fast.</li><li><strong>update order status:</strong> update single document and it can be done atomically.</li><li><strong>inventory update:</strong> if stock is inside product document and you have many concurrent orders for same , that document can become a hotspot .</li><li><strong>solutions:</strong></li><li>move stock counters to a separate small document or use DB atomic counter features.</li><li>We can use a queue to process high-concurrency decrements.</li></ul><p><strong>handling duplications and consistency in aggregations</strong></p><p>duplicates are most common in aggregates design.</p><p>common strategies use to handle duplicates in aggregates :</p><ul><li>accept some duplicates for reading speed . design write paths to update the duplicates</li><li>use id references for large or frequently changing parts (for e.g., product details referenced from order instead of embedding full product information ).</li></ul><p><strong>Step for using aggregates.</strong></p><p>here are practical steps and rules of thumb.</p><ol><li><strong>First start with queries</strong></li></ol><ul><li>list all common reading and writings. design aggregates to serve those reading and writing operations with minimum joins</li></ul><p><strong>2 .group related data together</strong></p><ul><li>if two pieces always come together, combine them. e.g., order and order items.</li></ul><p><strong>3 .size matters</strong></p><ul><li>avoid big documents. mongodb documents limit is 16mb .</li></ul><p><strong>4 .avoid deep nesting</strong></p><ul><li>deep nested objects are more harder to updates.</li></ul><p><strong>5 .consider update frequency</strong></p><ul><li>if a sub-document is updated very very frequently, it may be better as a separate the document</li></ul><p><strong>6 .use index smartly</strong></p><ul><li>index fields you query often (userid, sku, status). but keep indexes limited each indexes adds writing cost.</li></ul><p><strong>7. use ids and naming conventions</strong></p><ul><li>use smart keys (for e.g., order: 2025 : 1111 ) to partition data logically into separate parts. this helps in some key-value stores.</li></ul><p><strong>8 .handle duplicates correctly</strong></p><ul><li>design which fields are authoritative and which are snapshots. use background jobs or event based updates to sync copy when it needed.</li></ul><p><strong>9.plan for sharding</strong></p><ul><li>choose shard key based on query patterns what query we want and write distribution. avoid hot shards keys.</li></ul><p><strong>10.monitor it and test it</strong></p><ul><li>simulate real workloads. watch for hot documents, slow writes, indexes usage.</li></ul><p><strong>11.think about atomicity</strong></p><ul><li>single-document updated atomatically in many NoSQL databases. multi-document changes may needs careful design.<strong>versions and migration</strong></li><li>keep a schemaVersion field in document if your structure will change over time; makes migrations safer .</li></ul><p><strong>12.Common patterns and drawbacks</strong></p><p>avoid these mistakes beginners often make.</p><ul><li><strong>overembedding everything</strong><br> embedding huge arrays (millions of comments) will break performance.</li><li><strong>deep nesting for no reason</strong><br> nested objects that are rarely used make updates slow.</li><li><strong>no thought for write patterns</strong><br> read optimized design that ignores heavy writes hotspots will cause a trouble.</li><li><strong>no indexes or too many indexes</strong><br> missing indexes = = slow queries. too many indexes = = slow writes.so keep it balanced</li><li><strong>treat NoSQL like a poor sql clone</strong><br> we need to understand that nosql is different from sql . each have his own advantages</li><li><strong>handling duplicates</strong><br> hadles duplicates data properly</li></ul><p><strong>Migrating from SQL to aggregates — tips</strong></p><p>if you come from sql world, these steps help.</p><ol><li><strong>Copy queries, not entire tables</strong><br> forget tables for a moment. write down the most frequent queries and design document for them.</li><li><strong>use reference ids when many-to-many</strong><br> for many-to-many relationships, references or join tables (in sql) reimagined as arrays of ids in nosql or linking collections.</li><li><strong>test with real data</strong><br> import a realistic subset and run your queries. Measure it properly .</li><li><strong>incremental migration</strong><br> do not rewrite everything at once. build new services reading and writing nosql while keeping some sql until stable.</li></ol><p><strong>Short examples of common operations (using mongodb)</strong></p><p>simple queries to illustrate the idea.</p><ul><li>find customer:</li></ul><p>db.customers.findOne ( { customerId : “ 2384 “ })</p><ul><li>add order to customer orders array (if small):</li></ul><p>db.customers.updateOne (</p><p>{ customerId : “ 2384 “ } ,</p><p>{ $push : { orders : { orderId : “ O203 “ , amount : 3000 } } }</p><p>)</p><ul><li>update order status in orders collection:</li></ul><p>db . orders . updateOne (</p><p>{ orderId : “ 1234 “ },</p><p>{ $set : { status : “ shipped “ , shippedAt : new Date ( ) } }</p><p>)</p><ul><li>query product by category with pagination:</li></ul><p>db.products.find( { category : “ personal-care “ }) .sort ({ updatedAt : -1 }).limit( 20 )</p><p><strong>Final tips (real-life practical)</strong></p><ul><li><strong>keep it simple at starting.</strong> start with clear and simple aggregates for the most common flows. fix others later.</li><li><strong>monitor frequently.</strong> use db profiling and logs to see which queries are frequently used .</li><li><strong>automate duplicate updates.</strong>if the updates are frequent we can automate it .</li></ul><p><strong>Conclusion</strong></p><p>· Aggregate data model is like a heart of NoSQL design. Because it is very very flexible. It makes data closer to real objects in app.</p><p>· If you are beginner or just starting coding, do not just copy SQL tables into NoSQL. Think about aggregates. Think about natural grouping of data.</p><p>· <strong>How to learn effectively:</strong> we can try</p><ul><li>too do app with embedded tasks on it</li><li>simple shopping hub app with product, cart, order aggregates</li><li>blog with post + small comments embedded on it .</li></ul><p><strong>Further reading</strong></p><ul><li><a href="https://github.com/AkashGiri74/NoSQL/blob/main/NoSql.pdf">NoSQL Distilled</a><em>: A Brief Guide to the Emerging World of Polyglot Persistence</em>. Pramod J. Sadalage Martin Fowler</li><li>MongoDB Docs — <a href="https://www.mongodb.com/docs/manual/data-modeling/">Data Models</a></li></ul><p><strong>Aggregate Data Model in NoSQL: Simple and easy guide for Beginners</strong></p><p><strong>Description:</strong><br> learn about aggregate data models in NoSQL with simple and easy ex. ,with easy explanation, and case study for early developers.</p><p><strong>Table of Contents</strong></p><ul><li>Introduction</li><li>What is NoSQL and why not SQL only?</li><li>Aggregate data model basics</li><li>Different NoSQL families and aggregates</li><li>How aggregates help in real apps</li><li>Case study: small e-commerce app</li><li>Step-by step learning for using aggregates</li><li>Common anti-patterns and drawbacks</li><li>Migrating from SQL tables to aggregates collection — tips</li><li>Conclusion</li><li>Further reading</li></ul><p><strong>Introduction</strong></p><p>Sql is oldest. its structured based language .its uses rows and columns to store the data .its also neat. but sometimes it is strict as well . NoSQL came like a pro version its flexible, its fast, and easier to scale for many web applications.</p><p>in the nosql world, one idea is very powerful — the <strong>aggregate data model</strong>. if you are an early developer, aggregate thinking will change how you design the applications. Sometimes you may be confused by many terms — document, key-value, column, graph — but aggregate makes it simpler it means : <strong>grouping related pieces of data that they appear together and treat them all as a one unit.</strong></p><p>this post explains aggregate model in a very vary simple way. With lots of ex. step-by-step advice you can use in projects to developed your own web application .</p><p><strong>What is NoSQL and why not SQL only?</strong></p><p>sql databases store data in the forms of tables which includes rows and columns, they have strict schemas and joins. they are great for banking application, accounting applications, and any where we require strong consistency and where normal design matter most.</p><p>But in modern web application like social media, e-commerce, real-time systems — they need:</p><ul><li>fast readability at a specific scale</li><li>flexible schemas that changes quickly during development that will make development easier</li><li>fast access</li></ul><p>NoSQL full-fill all the requirement. different types of NoSQL databases solve different problems. NoSQL means not only use of SQL .</p><p><strong>why people like NoSQL most</strong></p><ul><li>flexible-schema: we can change structure without painful migrations.</li><li>easy to use horizontal scaling for reading and writing operations.</li></ul><p><strong>Compromise to do while using NoSQL</strong></p><p>· you may have duplicate data . duplicates data means we need to do extra work on writing operation.</p><ul><li>not every NoSQL supports strongly multi-document transactions .some can do that and some are unable to do that</li><li>we may do bad design = = messy structure and inconsistency in data may occure. aggregate model aims to reduce this messy bad design .</li></ul><p><strong>Aggregate data model basics</strong></p><p>an <strong>aggregate</strong> = = a collection of co-related data that is treated as one unit of info. Let’s imagine a box.in this box there are related things that they usually travels together.</p><p>Ex : a customer in an e-commerce app. instead of making 5 tables in SQL we can make (customer, addresses, orders, payments, prefs) you can keep it in one document that contains the related pieces of all 5 tables :</p><p>{</p><p>“ customerId “ : “ 2384 “ ,</p><p>“ name “ : “ akash giri “ ,</p><p>“ email “ : “ <a href="/service/mailto:akash.giri@indirauniversity.edu.in">akash.giri@indirauniversity.edu.in</a> “ ,</p><p>“ addresses “ : [</p><p>{ “ type “ : “ home “ , “ city “ : “ pune “ } ,</p><p>{ “ type “ : “ office “ , “ city “ : “ Mumbai “ }</p><p>] ,</p><p>“ orders “ : [</p><p>{ “ orderId “ : “ O201 “ , “ amount “ : 2000 } ,</p><p>{ “ orderId “ : “ O202 “ , “ amount “ : 4500 }</p><p>]</p><p>}</p><p>all together = = one aggregate.</p><p><strong>why its useful ?</strong></p><ul><li>data is easy to fetch: one query gets everything we needed for common use cases.</li><li>Its fits how apps think: a customer profile may needs addresses and recent orders. Its fetch once and render page fast.</li></ul><p><strong>key idea:</strong> we design aggregates on the basis of how our app queries data and not how a relational Entity Relational model looks like.</p><p><strong>Different NoSQL families and aggregates</strong></p><p>every nosql family uses aggregates differently. here’s a simple breakdown.</p><p><strong>document stores (mongodb, couchdb)</strong></p><ul><li>aggregate = document (json-like).</li><li>good for nested data and arrays.</li><li>example: blog post + comments inside one document (if comments count is small).</li></ul><p><strong>key-value stores (redis, dynamodb)</strong></p><ul><li>aggregate = value for a key. value can be json, blob, or serialized object.</li><li>example key: customer:C101 → value: {name:”akash”, orders:[…]}.</li><li>super fast for simple lookups.</li></ul><p><strong>column-family (cassandra, hbase)</strong></p><ul><li>aggregate = row (or partition). row can have many dynamic columns.</li><li>good for large time-series, event logs, user timelines.</li></ul><p><strong>graph databases (neo4j)</strong></p><ul><li>aggregate is less obvious: related node + its neighbors can behave like an aggregate.</li><li>good when relationships are first-class and traversals matter.</li></ul><figure><img alt="Overview of NoSQL data model types: key-value, document, column-family, graph" src="https://cdn-images-1.medium.com/max/683/1*3cPzJxaoXAl4t-azlDpagQ.png" /></figure><p><strong>“Overview of NoSQL data model types: key-value, document, column-family, graph”</strong></p><p><strong>How aggregates help in real applications</strong></p><p>think by use-cases, then design aggregates.</p><p><strong>Ex. 1 — in blogging platforms</strong></p><ul><li>aggregate =&gt; one post of blog + its comments section + tags they used.</li><li>Benefits =&gt; fetch post with comments in one read only.</li></ul><p><strong>example 2 — ride sharing</strong></p><ul><li>aggregate: we should give one ride request (driver, rider, route, payment data, status).</li><li>Benefits : it can update status atomically in one document.</li></ul><p><strong>example 3 — inventory management system</strong></p><ul><li>aggregate: products (stock details, supplier ids, variants).</li><li>benefit: quick product detail read without using joins.</li></ul><p>the rule: if two pieces of data always travel together for your application reads, put them in the same aggregate .that we can access and use it in faster way</p><p><strong>Case study: small e-commerce app</strong></p><p>short case study to see how aggregates work for customers, products, carts, orders, and inventory system . this is practical and close to a real small shop.</p><figure><img alt="“Example of customer-order aggregate with embedded address duplicates (GeeksforGeeks)”" src="https://cdn-images-1.medium.com/max/766/1*hp14cKTrtnXUrkn6WNLlXg.png" /></figure><p><strong>“Example of customer-order aggregate with embedded address duplicates (GeeksforGeeks)”</strong></p><p><strong>domain and common queries</strong></p><p>before designing, ask: what queries will api/frontend do most and what is app requirement?</p><ul><li>fetch product list by category</li><li>fetching product detail</li><li>shows customers profile with recent orders</li><li>show cart with product details</li><li>creates order and mark the inventory</li></ul><p>know we should design aggregates to optimize these queries.</p><p><strong>suggested aggregates and sample documents to follow</strong></p><p><strong>for ex:</strong></p><p><strong>product aggregate</strong></p><p>{</p><p>“ productid “ : “ P01 “ ,</p><p>“ title “ : “ toothbrush “,</p><p>“ category “ : “ tooth paste “,</p><p>“ variants “ : [</p><p>{ “ xyz “ : “ p1 “, “ color “ : “ blue “ , “ price “ : 200 , “ stock “ : 150 } ,</p><p>{ “ xyz “: “ P2 “, “ color “ : “ red “ , “ price “ : 210, “ stock “ : 50 }</p><p>] ,</p><p>“ specs “ : { “ weight “ : “ 50g “ , “ brand “ : “ cleanCo “ } ,</p><p>“ updatedAt “ : “ 2025–08–01T10:00:00Z “</p><p>}</p><p>product documents keeps in variants and stock small enough. if stock updates are extremely frequent at variant level, consider to moving stocks to a separate small document or use another methods .</p><p><strong>cart aggregate (per users )</strong></p><p>{</p><p>“ cartId “ : “ C1 “ ,</p><p>“ userId “: “ U1 “,</p><p>“ items “ : [</p><p>{ “ xyz “ : “ P1 “, “ qty “: 2 , “ priceSnapshot “ : 200 } ,</p><p>{ “ sku “ : “ P5 “ , “ qty “ : 1 , “ priceSnapshot “ : 999 }</p><p>] ,</p><p>“ updatedAt “ : “ 2025–08–30T08:00:00Z “</p><p>}</p><p>cart is the temporary aggregate we made . good candidate for a key-value store or small documents. priceSnapshot avoids price surprise when user checks out from the system .</p><p><strong>order aggregate</strong></p><p>{</p><p>“ orderId “ : “ O1 “ ,</p><p>“ customer “ : { “ id “ : “ U1 “ , “ name “ : “ anita “ } ,</p><p>“ items “ : [</p><p>{ “ xyz “ : “ P1 “ , “ qty “ : 2 , “ price “ : 200 } ,</p><p>{ “ xyz “ : “ P5 “ , “ qty “ : 1, “ price “ : 999}</p><p>] ,</p><p>“ payment “ : { “ method “ : “ card “, “ txnId “ : “ TX999 “ } ,</p><p>“ total “ : 1399 ,</p><p>“ status “ : “ delivered “ ,</p><p>“ placedAt “ : “ 2025–09–01T14:00:00Z “</p><p>}</p><p>order aggregates take a snapshot of customer name and item prices. yes this can duplicates data — but it also keeps order history correct even if product name and price later changes.</p><p><strong>sample operations</strong></p><ul><li><strong>read order details:</strong> one document reads — and its fast.</li><li><strong>update order status:</strong> update single document and it can be done atomically.</li><li><strong>inventory update:</strong> if stock is inside product document and you have many concurrent orders for same , that document can become a hotspot .</li><li><strong>solutions:</strong></li><li>move stock counters to a separate small document or use DB atomic counter features.</li><li>We can use a queue to process high-concurrency decrements.</li></ul><p><strong>handling duplications and consistency in aggregations</strong></p><p>duplicates are most common in aggregates design.</p><p>common strategies use to handle duplicates in aggregates :</p><ul><li>accept some duplicates for reading speed . design write paths to update the duplicates</li><li>use id references for large or frequently changing parts (for e.g., product details referenced from order instead of embedding full product information ).</li></ul><p><strong>Step for using aggregates.</strong></p><p>here are practical steps and rules of thumb.</p><p><strong>.First start with queries</strong></p><ul><li>list all common reading and writings. design aggregates to serve those reading and writing operations with minimum joins</li></ul><p><strong>.group related data together</strong></p><ul><li>if two pieces always come together, combine them. e.g., order and order items.</li></ul><p><strong>.size matters</strong></p><ul><li>avoid big documents. mongodb documents limit is 16mb .</li></ul><p><strong>.avoid deep nesting</strong></p><ul><li>deep nested objects are more harder to updates.</li></ul><p><strong>.consider update frequency</strong></p><ul><li>if a sub-document is updated very very frequently, it may be better as a separate the document</li></ul><p><strong>.use index smartly</strong></p><ul><li>index fields you query often (userid, sku, status). but keep indexes limited each indexes adds writing cost.</li></ul><p><strong>.use ids and naming conventions</strong></p><ul><li>use smart keys (for e.g., order: 2025 : 1111 ) to partition data logically into separate parts. this helps in some key-value stores.</li></ul><p><strong>.handle duplicates correctly</strong></p><ul><li>design which fields are authoritative and which are snapshots. use background jobs or event based updates to sync copy when it needed.</li></ul><p><strong>.plan for sharding</strong></p><ul><li>choose shard key based on query patterns what query we want and write distribution. avoid hot shards keys.</li></ul><p><strong>.monitor it and test it</strong></p><ul><li>simulate real workloads. watch for hot documents, slow writes, indexes usage.</li></ul><p><strong>.think about atomicity</strong></p><ul><li>single-document updated atomatically in many NoSQL databases. multi-document changes may needs careful design.</li></ul><p><strong>.versions and migration</strong></p><ul><li>keep a schemaVersion field in document if your structure will change over time; makes migrations safer .</li></ul><p><strong>Common patterns and drawbacks</strong></p><p>avoid these mistakes beginners often make.</p><ul><li><strong>overembedding everything</strong><br> embedding huge arrays (millions of comments) will break performance.</li><li><strong>deep nesting for no reason</strong><br> nested objects that are rarely used make updates slow.</li><li><strong>no thought for write patterns</strong><br> read optimized design that ignores heavy writes hotspots will cause a trouble.</li><li><strong>no indexes or too many indexes</strong><br> missing indexes = = slow queries. too many indexes = = slow writes.so keep it balanced</li><li><strong>treat NoSQL like a poor sql clone</strong><br> we need to understand that nosql is different from sql . each have his own advantages</li><li><strong>handling duplicates</strong><br> hadles duplicates data properly</li></ul><p><strong>Migrating from SQL to aggregates — tips</strong></p><p>if you come from sql world, these steps help.</p><ol><li><strong>Copy queries, not entire tables</strong><br> forget tables for a moment. write down the most frequent queries and design document for them.</li><li><strong>use reference ids when many-to-many</strong><br> for many-to-many relationships, references or join tables (in sql) reimagined as arrays of ids in nosql or linking collections.</li><li><strong>test with real data</strong><br> import a realistic subset and run your queries. Measure it properly .</li><li><strong>incremental migration</strong><br> do not rewrite everything at once. build new services reading and writing nosql while keeping some sql until stable.</li></ol><p><strong>Short examples of common operations (using mongodb)</strong></p><p>simple queries to illustrate the idea.</p><ul><li>find customer:</li></ul><p>db.customers.findOne ( { customerId : “ 2384 “ })</p><ul><li>add order to customer orders array (if small):</li></ul><p>db.customers.updateOne (</p><p>{ customerId : “ 2384 “ } ,</p><p>{ $push : { orders : { orderId : “ O203 “ , amount : 3000 } } }</p><p>)</p><ul><li>update order status in orders collection:</li></ul><p>db . orders . updateOne (</p><p>{ orderId : “ 1234 “ },</p><p>{ $set : { status : “ shipped “ , shippedAt : new Date ( ) } }</p><p>)</p><ul><li>query product by category with pagination:</li></ul><p>db.products.find( { category : “ personal-care “ }) .sort ({ updatedAt : -1 }).limit( 20 )</p><p><strong>Final tips (real-life practical)</strong></p><ul><li><strong>keep it simple at starting.</strong> start with clear and simple aggregates for the most common flows. fix others later.</li><li><strong>monitor frequently.</strong> use db profiling and logs to see which queries are frequently used .</li><li><strong>automate duplicate updates.</strong>if the updates are frequent we can automate it .</li></ul><p><strong>Conclusion</strong></p><p>· Aggregate data model is like a heart of NoSQL design. Because it is very very flexible. It makes data closer to real objects in app.</p><p>· If you are beginner or just starting coding, do not just copy SQL tables into NoSQL. Think about aggregates. Think about natural grouping of data.</p><p>· <strong>How to learn effectively:</strong> we can try</p><ul><li>too do app with embedded tasks on it</li><li>simple shopping hub app with product, cart, order aggregates</li><li>blog with post + small comments embedded on it .</li></ul><p><strong>Further reading</strong></p><ul><li><a href="https://github.com/AkashGiri74/NoSQL/blob/main/NoSql.pdf">NoSQL Distilled</a><em>: A Brief Guide to the Emerging World of Polyglot Persistence</em>. Pramod J. Sadalage Martin Fowler</li><li>MongoDB Docs — <a href="https://www.mongodb.com/docs/manual/data-modeling/">Data Models</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4598aaf456e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>