<?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 Mina Golzari Dalir on Medium]]></title>
        <description><![CDATA[Stories by Mina Golzari Dalir on Medium]]></description>
        <link>https://medium.com/@minagolzaridalir?source=rss-f8f5503b053a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*4Fikcq3weyp4zkY8</url>
            <title>Stories by Mina Golzari Dalir on Medium</title>
            <link>https://medium.com/@minagolzaridalir?source=rss-f8f5503b053a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 11:24:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@minagolzaridalir/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[From State Machines to Configurable Workflows]]></title>
            <link>https://medium.com/@minagolzaridalir/from-state-machines-to-configurable-workflows-7da81dc1ad0c?source=rss-f8f5503b053a------2</link>
            <guid isPermaLink="false">https://medium.com/p/7da81dc1ad0c</guid>
            <category><![CDATA[workflow]]></category>
            <category><![CDATA[state-machine]]></category>
            <category><![CDATA[configuration]]></category>
            <category><![CDATA[handler]]></category>
            <dc:creator><![CDATA[Mina Golzari Dalir]]></dc:creator>
            <pubDate>Fri, 09 Oct 2026 13:18:38 GMT</pubDate>
            <atom:updated>2026-10-09T13:24:59.575Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>When a Good Design Starts Limiting Your System</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LZIdzXmwMtl_FUFqFWC6mg.png" /></figure><p>There is a stage in software development where the hardest problem is no longer writing the code.</p><p>It is deciding whether the architecture you chose six months ago is still the right architecture today.</p><p>Recently, I found myself dealing with exactly this situation while designing a workflow-heavy .NET system.</p><p>The initial problem looked like a perfect use case for a state machine.</p><p>An entity had a lifecycle.</p><p>It moved from one state to another.</p><p>Some transitions were allowed, some were not.</p><p>The rules could be expressed clearly in code.</p><p>So we implemented a state-machine-oriented design.</p><p>It worked.</p><p>And that is important.</p><p><strong>The state machine was not a bad decision.</strong></p><p>In fact, it was the right decision for the problem we had at that time.</p><p>The problem appeared later, when the business scenarios started changing.</p><p>New scenarios appeared.</p><p>Different customers needed different processes.</p><p>Some steps became optional.</p><p>Some steps were conditional.</p><p>Some processes needed additional approval.</p><p>Existing running processes had to continue using their original rules.</p><p>At that point, the question changed from:</p><blockquote><em>“What state is this entity in?”</em></blockquote><p>to:</p><blockquote><em>“Which business process should this entity follow?”</em></blockquote><p>That distinction completely changed my view of the architecture.</p><p>This article explains that evolution.</p><ol><li>The Original Problem</li></ol><p>Let’s use a fictional example.</p><p>Imagine we are building an <strong>Order Fulfillment Platform</strong> for an e-commerce company.</p><p>An order goes through a process like:</p><pre>Created<br>   ↓<br>Payment Verified<br>   ↓<br>Inventory Reserved<br>   ↓<br>Packed<br>   ↓<br>Shipped<br>   ↓<br>Delivered</pre><p>Initially, this looks like a textbook state machine.</p><p>We can define:</p><pre>public enum OrderState<br>{<br>    Created,<br>    PaymentVerified,<br>    InventoryReserved,<br>    Packed,<br>    Shipped,<br>    Delivered,<br>    Cancelled<br>}</pre><p>And events:</p><pre>public enum OrderEvent<br>{<br>    VerifyPayment,<br>    ReserveInventory,<br>    Pack,<br>    Ship,<br>    Deliver,<br>    Cancel<br>}</pre><p>Then transitions:</p><pre>Created<br>   ├── VerifyPayment → PaymentVerified<br>   └── Cancel → Cancelled<br><br>PaymentVerified<br>   ├── ReserveInventory → InventoryReserved<br>   └── Cancel → Cancelled<br><br>InventoryReserved<br>   └── Pack → Packed<br><br>Packed<br>   └── Ship → Shipped<br><br>Shipped<br>   └── Deliver → Delivered</pre><p>This is clean.</p><p>It is easy to understand.</p><p>It is easy to test.</p><p>And most importantly, it protects the business rules.</p><p>An order cannot simply jump from:</p><pre>Created → Delivered</pre><p>because that transition doesn’t exist.</p><p>For a stable process, this is exactly what we want.</p><h3>2. Why We Initially Chose a State Machine</h3><p>A state machine gave us several useful properties.</p><h3>Explicit states</h3><p>The possible lifecycle states were clearly defined.</p><h3>Explicit transitions</h3><p>We could see exactly which transitions were legal.</p><h3>Centralized rules</h3><p>Instead of scattering conditions throughout controllers and services, transition rules were concentrated in one place.</p><h3>Type safety</h3><p>The compiler knew about states and events.</p><h3>Testability</h3><p>We could easily test:</p><pre>Given Created<br>When VerifyPayment<br>Then PaymentVerified</pre><p>and:</p><pre>Given Created<br>When Deliver<br>Then Reject</pre><p>This is much safer than having arbitrary status updates throughout the application.</p><p>At this point, choosing a state machine was a reasonable engineering decision.</p><h3>3. Then the Business Changed</h3><p>The first new requirement was simple:</p><blockquote><em>Premium customers should have priority packing.</em></blockquote><p>We added a condition.</p><p>Then another requirement appeared:</p><blockquote><em>Orders above $1,000 require manual fraud review.</em></blockquote><p>So the process became:</p><pre>Created<br>   ↓<br>Payment Verified<br>   ↓<br>Fraud Review<br>   ↓<br>Inventory Reserved<br>   ↓<br>Packed<br>   ↓<br>Shipped</pre><p>But only for some orders.</p><p>Then:</p><blockquote><em>Digital products don’t need shipping.</em></blockquote><p>Now we had:</p><pre>Physical Order:<br><br>Payment<br> ↓<br>Inventory<br> ↓<br>Packing<br> ↓<br>Shipping<br> ↓<br>Delivery</pre><p>while:</p><pre>Digital Order:<br><br>Payment<br> ↓<br>Fulfillment<br> ↓<br>Completed</pre><p>Then another customer introduced:</p><blockquote><em>Orders containing regulated products require compliance verification.</em></blockquote><p>And another:</p><blockquote><em>Enterprise customers require account-manager approval before fulfillment.</em></blockquote><p>The process was no longer one fixed sequence.</p><p>It had become a collection of possible processes.</p><h3>4. The State Machine Started Growing</h3><p>The state machine itself could still handle these requirements.</p><p>That is important.</p><p>A state machine is not incapable of handling conditional logic.</p><p>We could add guards:</p><pre>if (order.IsDigital)<br>{<br>    // Skip physical fulfillment<br>}<br><br>if (order.TotalAmount &gt; 1000)<br>{<br>    // Require fraud review<br>}<br><br>if (order.ContainsRegulatedProducts)<br>{<br>    // Require compliance<br>}<br><br>if (order.CustomerType == CustomerType.Enterprise)<br>{<br>    // Require account manager approval<br>}</pre><p>But something started bothering me.</p><p>The state machine was increasingly responsible for understanding:</p><ul><li>customer type</li><li>product type</li><li>order value</li><li>risk level</li><li>geography</li><li>compliance requirements</li><li>approval policies</li><li>fulfillment strategy</li></ul><p>The question was no longer simply:</p><pre>&quot;What state is the order in?&quot;</pre><p>The state machine was starting to answer:</p><pre>&quot;Which business process should this order follow?&quot;</pre><p>That is a different responsibility.</p><h3>5. The Real Problem: State vs Process</h3><p>This became the key architectural insight.</p><p>A <strong>state</strong> describes the current condition of something.</p><p>For example:</p><pre>PaymentVerified</pre><p>A <strong>workflow</strong> describes how something should progress through a business process.</p><p>For example:</p><pre>Payment<br> → Fraud Review<br> → Inventory<br> → Packing<br> → Shipping</pre><p>These are related, but they are not the same concept.</p><p>A state machine is excellent at answering:</p><blockquote><em>“Can this entity move from state A to state B?”</em></blockquote><p>A workflow engine needs to answer:</p><blockquote><em>“Which steps should this business process execute, in what order, under which conditions?”</em></blockquote><p>Once we recognized this distinction, the architecture became much clearer.</p><h3>6. What We Actually Needed</h3><p>We needed the process itself to become configurable.</p><p>Instead of hard-coding:</p><pre>Payment<br> → Fraud Review<br> → Inventory<br> → Packing<br> → Shipping</pre><p>we wanted to define:</p><pre>Workflow<br>    ↓<br>Version<br>    ↓<br>Steps<br>    ↓<br>Conditions<br>    ↓<br>Handlers</pre><p>For example:</p><pre>OrderFulfillment-Version 1<br><br>1. VerifyPayment<br>2. ReserveInventory<br>3. Pack<br>4. Ship<br>5. Deliver</pre><p>Another version could be:</p><pre>OrderFulfillment-Version 2<br><br>1. VerifyPayment<br>2. FraudReview<br>3. ReserveInventory<br>4. Pack<br>5. Ship<br>6. Deliver</pre><p>And a digital-product workflow could be:</p><pre>DigitalOrderFulfillment-Version 1<br><br>1. VerifyPayment<br>2. PrepareDownload<br>3. CompleteOrder</pre><p>The workflow itself is now data.</p><h3>7. But We Didn’t Want a “Everything Is JSON” System</h3><p>This was an important design constraint.</p><p>A configurable workflow can easily become dangerous.</p><p>It is tempting to put everything into JSON:</p><pre>{<br>  &quot;condition&quot;: &quot;order.amount &gt; 1000 &amp;&amp; customer.type == &#39;Enterprise&#39;&quot;<br>}</pre><p>Then create a generic interpreter.</p><p>Eventually, you have effectively invented your own programming language.</p><p>That creates a different class of problems:</p><ul><li>difficult debugging</li><li>weak type safety</li><li>difficult refactoring</li><li>runtime failures</li><li>complicated validation</li><li>security concerns</li><li>difficult IDE support</li></ul><p>We wanted configurability without abandoning normal .NET engineering practices.</p><p>That led us to the <strong>handler-based model</strong>.</p><h3>8. The Handler-Based Workflow</h3><p>The workflow defines <strong>what should happen</strong>.</p><p>The handler defines <strong>how it happens</strong>.</p><p>For example:</p><pre>Workflow Step<br>      ↓<br>Handler Key<br>      ↓<br>Handler</pre><p>A workflow might contain:</p><pre>VerifyPayment<br>ReserveInventory<br>FraudReview<br>PackOrder<br>ShipOrder</pre><p>These map to handlers:</p><pre>VerifyPayment<br>      ↓<br>VerifyPaymentHandler</pre><pre>ReserveInventory<br>      ↓<br>ReserveInventoryHandler</pre><pre>FraudReview<br>      ↓<br>FraudReviewHandler</pre><pre>PackOrder<br>      ↓<br>PackOrderHandler</pre><pre>ShipOrder<br>      ↓<br>ShipOrderHandler</pre><p>A simple interface could look like:</p><pre>public interface IWorkflowHandler<br>{<br>    string Key { get;}<br>    Task&lt;WorkflowStepResult&gt; ExecuteAsync(<br>        WorkflowContext context,<br>        CancellationToken cancellationToken);<br>}</pre><p>An implementation:</p><pre>public sealed class VerifyPaymentHandler: IWorkflowHandler<br>{<br>   public string Key =&gt; &quot;VerifyPayment&quot;;<br>   public async Task&lt;WorkflowStepResult&gt; ExecuteAsync(<br>        WorkflowContext context,<br>        CancellationToken cancellationToken)<br>    {<br>        // Payment verification logic<br>        return WorkflowStepResult.Success();<br>    }<br>}</pre><p>The workflow engine doesn’t need to know how payment verification works.</p><p>It only knows:</p><pre>Execute &quot;VerifyPayment&quot;</pre><p>The handler contains the actual business/application logic.</p><h3>9. Handler Resolution</h3><p>The application can register handlers using normal .NET dependency injection:</p><pre>services.AddScoped&lt;IWorkflowHandler, VerifyPaymentHandler&gt;();<br>services.AddScoped&lt;IWorkflowHandler, ReserveInventoryHandler&gt;();<br>services.AddScoped&lt;IWorkflowHandler, FraudReviewHandler&gt;();<br>services.AddScoped&lt;IWorkflowHandler, PackOrderHandler&gt;();<br>services.AddScoped&lt;IWorkflowHandler, ShipOrderHandler&gt;();</pre><p>A resolver can then find a handler by its key:</p><pre>public sealed class WorkflowHandlerResolver<br>{<br>    private readonly IEnumerable&lt;IWorkflowHandler&gt; _handlers;<br>    public WorkflowHandlerResolver(<br>        IEnumerable&lt;IWorkflowHandler&gt; handlers)<br>    {<br>        _handlers = handlers;<br>    }   public IWorkflowHandler Resolve(string key)<br>    {<br>        return _handlers.FirstOrDefault(x =&gt; x.Key == key)<br>            ?? throw new InvalidOperationException(<br>                $&quot;Handler &#39;{key}&#39; was not found.&quot;);<br>    }<br>}</pre><p>This gives us a useful boundary.</p><p>The workflow is configurable.</p><p>The executable business capabilities remain strongly typed.</p><h3>10. Workflow Configuration</h3><p>A workflow definition might conceptually look like:</p><pre>WorkflowDefinition<br>-------------------------<br>Key<br>Name<br>Version<br>Status</pre><p>And its steps:</p><pre>WorkflowStep<br>-------------------------<br>WorkflowVersionId<br>Key<br>Order<br>Configuration</pre><p>Transitions:</p><pre>WorkflowTransition<br>-------------------------<br>FromStep<br>ToStep<br>Condition</pre><p>For example:</p><pre>OrderFulfillment v3<br><br>VerifyPayment<br>      ↓<br>FraudReview<br>      ↓<br>ReserveInventory<br>      ↓<br>PackOrder<br>      ↓<br>ShipOrder<br>      ↓<br>DeliverOrder</pre><p>The important part is that the workflow engine doesn’t need to be changed when we rearrange these existing capabilities.</p><h3>11. Versioning Changes Everything</h3><p>This was one of the strongest reasons to move toward a versioned workflow.</p><p>Imagine that version 1 is currently being used by thousands of orders.</p><p>Then the business introduces mandatory fraud screening.</p><p>We don’t want to modify the meaning of an existing order’s process.</p><p>Instead:</p><pre>OrderFulfillment v1</pre><p>remains unchanged.</p><p>We publish:</p><pre>OrderFulfillment v2</pre><p>with:</p><pre>VerifyPayment<br>    ↓<br>FraudReview<br>    ↓<br>ReserveInventory<br>    ↓<br>PackOrder<br>    ↓<br>ShipOrder</pre><p>New orders use v2.</p><p>Existing orders continue using v1.</p><p>This gives us <strong>historical reproducibility</strong>.</p><p>We can answer:</p><blockquote><em>“Which process governed this order?”</em></blockquote><p>with:</p><pre>Order #12345<br>Workflow: OrderFulfillment<br>Version: 1</pre><p>rather than trying to reconstruct the rules from the current application code.</p><h3>12. The Most Important Rule: A Workflow Instance Has a Version</h3><p>I would strongly recommend that a running workflow instance stores its workflow version.</p><p>Conceptually:</p><pre>WorkflowInstance<br>-------------------------<br>Id<br>WorkflowDefinitionId<br>WorkflowVersionId<br>BusinessEntityId<br>CurrentStep<br>Status<br>StartedAt<br>CompletedAt</pre><p>This means:</p><pre>Order #1001 → Fulfillment v1<br>Order #1002 → Fulfillment v1<br>Order #1003 → Fulfillment v2<br>Order #1004 → Fulfillment v2</pre><p>The active workflow can evolve without rewriting history.</p><p>This becomes especially important for systems involving:</p><ul><li>regulations</li><li>financial processes</li><li>approvals</li><li>contracts</li><li>compliance</li><li>long-running operations</li></ul><h3>13. What Happens When the Business Changes Again?</h3><p>Suppose we currently have:</p><pre>v2:<br>Payment<br> ↓<br>Fraud Review<br> ↓<br>Inventory<br> ↓<br>Packing<br> ↓<br>Shipping</pre><p>Now the business says:</p><blockquote><em>Orders above $5,000 require manager approval.</em></blockquote><p>We can create:</p><pre>v3:<br>Payment<br> ↓<br>Fraud Review<br> ↓<br>Inventory<br> ↓<br>Manager Approval<br> ↓<br>Packing<br> ↓<br>Shipping</pre><p>The workflow engine remains unchanged.</p><p>If ManagerApprovalHandler already exists, this can potentially be <strong>configuration-only</strong>.</p><p>That is the key advantage.</p><h3>14. Three Levels of Change</h3><p>This led me to a useful way of thinking about the architecture.</p><h3>Level 1 — Change the process</h3><p>Existing handlers are sufficient.</p><pre>A → B → C</pre><p>becomes:</p><pre>A → C → B</pre><p>No application code needs to change.</p><p>Only the workflow definition changes.</p><h3>Level 2 — Change handler configuration</h3><p>The capability already exists, but its behavior needs parameters.</p><p>For example:</p><pre>FraudReviewHandler</pre><p>could receive configuration:</p><pre>{<br>    &quot;riskThreshold&quot;: 700,<br>    &quot;manualReviewRequired&quot;: true<br>}</pre><p>Different workflow versions can configure the same handler differently.</p><h3>Level 3 — Introduce a new capability</h3><p>The business introduces something that doesn’t exist.</p><p>For example:</p><pre>GovernmentComplianceCheck</pre><p>There is no existing handler.</p><p>We implement:</p><pre>GovernmentComplianceCheckHandler</pre><p>After that, the handler becomes another reusable building block for future workflows.</p><p>This is the boundary I find most useful.</p><p><strong>Configuration should compose capabilities. Code should create new capabilities.</strong></p><h3>15. Conditional Branching</h3><p>The workflow can also represent conditional paths.</p><p>For example:</p><pre>                Payment<br>                    ↓<br>               Fraud Check<br>                    ↓<br>              Risk Level?<br>              /          \<br>           Low            High<br>            ↓               ↓<br>       Inventory        Manual Review<br>            │               │<br>            └───────┬───────┘<br>                    ↓<br>                  Packing</pre><p>The workflow definition can reference a rule:</p><pre>HighRiskOrder</pre><p>rather than embedding arbitrary code into configuration.</p><p>The rule itself can remain strongly typed:</p><pre>public interface IWorkflowRule<br>{<br>    string Key { get; <br>}</pre><pre>Task&lt;bool&gt; EvaluateAsync(<br>        WorkflowContext context,<br>        CancellationToken cancellationToken);<br>}</pre><p>This keeps the dynamic part controlled.</p><h3>16. Parallel Steps</h3><p>Another situation where the workflow abstraction becomes attractive is parallel execution.</p><p>Suppose after payment verification we need:</p><pre>             Payment<br>                ↓<br>        ┌───────┼────────┐<br>        ↓       ↓        ↓<br>      Fraud   Inventory  Compliance<br>        │       │        │<br>        └───────┼────────┘<br>                ↓<br>              Packing</pre><p>These checks are conceptually independent.</p><p>A workflow engine can represent:</p><pre>Parallel<br>   ├── Fraud<br>   ├── Inventory<br>   └── Compliance<br>        ↓<br>       Join<br>        ↓<br>      Packing</pre><p>A state machine can also model this.</p><p>But as the number of parallel activities increases, a state machine often starts requiring composite states, flags, guards, and synchronization logic.</p><p>At that point, we’re gradually building a workflow engine inside the state machine.</p><h3>17. Human Tasks and Long-Running Processes</h3><p>Another difference appears when the process needs human interaction.</p><p>For example:</p><pre>Fraud Review<br>      ↓<br>Manual Approval<br>      ↓<br>Wait for Manager<br>      ↓<br>Continue</pre><p>The manager may approve it:</p><pre>in 30 seconds</pre><p>or:</p><pre>in 3 days</pre><p>A workflow instance can persist:</p><pre>Status = Waiting<br>CurrentStep = ManagerApproval<br>AssignedTo = Manager<br>DueAt = ...</pre><p>and resume later.</p><p>Again, a state machine can support this, but now we need to build persistence, resumption, scheduling, timeout handling, and related infrastructure around it.</p><p>The workflow abstraction naturally starts to fit the problem better.</p><h3>18. So Is a Configurable Workflow Always Better?</h3><p>No.</p><p>This is probably the most important conclusion of this whole exercise.</p><p>A configurable workflow introduces significant complexity.</p><p>You now need to think about:</p><ul><li>workflow definitions</li><li>versions</li><li>instance persistence</li><li>step execution</li><li>retries</li><li>idempotency</li><li>concurrency</li><li>conditions</li><li>failure handling</li><li>timeouts</li><li>audit history</li><li>authorization</li><li>migrations</li><li>debugging</li><li>configuration validation</li></ul><p>A simple state machine does not need all of this.</p><p>If the process is:</p><pre>Created<br> ↓<br>Approved<br> ↓<br>Completed</pre><p>building a workflow engine would be overengineering.</p><p>A state machine is probably the better solution.</p><h3>19. State Machine vs Configurable Workflow</h3><p>The comparison I now use is not:</p><blockquote><em>“Which one is more powerful?”</em></blockquote><p>It is:</p><blockquote><em>“Which type of change does the system need to optimize for?”</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*VNhiKHVFjaSOZloq93B72Q.png" /></figure><h3>20. The Architectural Lesson</h3><p>The biggest lesson for me was not:</p><blockquote><em>“State machines are bad.”</em></blockquote><p>They aren’t.</p><p>The lesson was:</p><blockquote><strong><em>We had initially modeled the problem as state transitions, but the problem eventually became process orchestration.</em></strong></blockquote><p>That is a very different problem.</p><p>A state machine asks:</p><pre>What state am I in?<br>What transitions are legal?</pre><p>A configurable workflow asks:</p><pre>Which process applies?<br>Which version applies?<br>Which step comes next?<br>Which conditions apply?<br>Which handler executes it?<br>Can this step run in parallel?<br>Should we wait?<br>Can we retry?<br>How do we resume?</pre><p>Once the business starts asking those questions, a workflow abstraction becomes much more appropriate.</p><h3>21. The Architecture I Would Choose</h3><p>The resulting architecture looks roughly like this:</p><pre>                 ┌───────────────────────┐<br>                 │ Workflow Definition   │<br>                 │       Version         │<br>                 └───────────┬───────────┘<br>                             │<br>                             ↓<br>                 ┌───────────────────────┐<br>                 │    Workflow Engine    │<br>                 └───────────┬───────────┘<br>                             │<br>              ┌──────────────┼──────────────┐<br>              ↓              ↓              ↓<br>           Steps        Conditions       Rules<br>              │              │              │<br>              ↓              ↓              ↓<br>       Handler Keys      Rule Keys       Rule Handlers<br>              │<br>              ↓<br>       Handler Resolver<br>              │<br>      ┌───────┼────────┐<br>      ↓       ↓        ↓<br>   Payment  Fraud   Inventory<br>   Handler  Handler  Handler<br>      │       │        │<br>      └───────┼────────┘<br>              ↓<br>        Domain/Application<br>            Services</pre><p>The responsibilities are separated:</p><h3>Workflow</h3><p>Defines:</p><p><strong>What, when, order, branching, version.</strong></p><h3>Handler</h3><p>Defines:</p><p><strong>How a specific capability is executed.</strong></p><h3>Domain/Application services</h3><p>Define:</p><p><strong>Actual business behavior and invariants.</strong></p><h3>Database</h3><p>Stores:</p><p><strong>Definitions, versions, instances, history, and execution state.</strong></p><h3>22. The Most Important Design Principle</h3><p>If I had to summarize the entire architectural decision in one sentence:</p><blockquote><strong><em>Configuration should compose existing capabilities; code should create new capabilities.</em></strong></blockquote><p>That gives us a useful balance.</p><p>We don’t need to deploy the application every time the business rearranges an existing process.</p><p>But we also don’t pretend that every possible future behavior can magically be represented by configuration.</p><p>When a genuinely new capability appears, we write code.</p><p>Then that capability becomes available to future workflow versions.</p><h3>23. Final Takeaway</h3><p>I would still happily use a state machine in a new .NET project.</p><p>If I know the lifecycle is stable, I would probably prefer it.</p><p>It is simple, explicit, strongly typed, testable, and easy to reason about.</p><p>But if I discover that:</p><ul><li>the sequence of steps changes frequently,</li><li>different customers need different processes,</li><li>business rules evolve independently of deployments,</li><li>old processes must remain reproducible,</li><li>steps can be conditional or parallel,</li><li>human approval is involved,</li><li>processes can run for days or weeks,</li></ul><p>then I would stop trying to make the state machine handle everything.</p><p>At that point, I would consider a <strong>versioned configurable workflow composed of strongly typed handlers</strong>.</p><p>Not because it is more sophisticated.</p><p>Because it models the problem more accurately.</p><p>And that is perhaps the most important lesson in system design:</p><blockquote><strong><em>The best architecture is not the one with the most features. It is the one whose abstractions match the kind of change the system is expected to absorb.</em></strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7da81dc1ad0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Benchmarking EF Core LINQ, Dapper Raw SQL, and Stored Procedures in .NET:]]></title>
            <link>https://medium.com/@minagolzaridalir/benchmarking-ef-core-linq-dapper-raw-sql-and-stored-procedures-in-net-74cda26790df?source=rss-f8f5503b053a------2</link>
            <guid isPermaLink="false">https://medium.com/p/74cda26790df</guid>
            <dc:creator><![CDATA[Mina Golzari Dalir]]></dc:creator>
            <pubDate>Mon, 05 Jan 2026 12:41:30 GMT</pubDate>
            <atom:updated>2026-01-05T12:58:13.463Z</atom:updated>
            <content:encoded><![CDATA[<h3>Benchmarking EF Core LINQ, Dapper Raw SQL, and Stored Procedures in .NET: A Real-World Performance Comparison (2026)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*1SpHOZrFIleBpOyO.png" /></figure><p>In .NET development, selecting the right data access strategy is crucial for balancing performance, maintainability, and developer productivity. Entity Framework Core (EF Core) with LINQ provides a powerful full ORM experience, Dapper offers lightweight micro-ORM speed with raw SQL control, and Stored Procedures deliver database-level optimization and security.<br> This post explores a practical benchmark comparing these approaches on a real-world query: calculating team performance summaries (total tasks, completed tasks, and completion rate) with optional date range and team filters. The test uses a database with over 50,000 tasks, executed via BenchmarkDotNet in .NET (likely .NET 8+).</p><p><strong>Understanding BenchmarkDotNet Results: A Quick Guide</strong><br> BenchmarkDotNet produces detailed statistical reports to ensure reliable comparisons. Here’s how to interpret the key columns in the results table:</p><ul><li><strong>Mean</strong>: The average (arithmetic mean) execution time across all iterations. Lower is better.</li><li><strong>Error</strong>: Half of the 99.9% confidence interval-indicates the uncertainty in the Mean value.</li><li><strong>StdDev</strong> (Standard Deviation): Measures variability in measurements. Low StdDev means consistent results.</li><li><strong>Ratio</strong>: The performance ratio relative to the baseline (here, EF Core LINQ marked as baseline).</li></ul><p>1.00 = same as baseline</p><p>&lt;1.00 = faster (e.g., 0.50 = 2x faster)</p><p>1.00 = slower (e.g., 1.34 = 34% slower)</p><ul><li><strong>RatioSD</strong>: Standard deviation of the ratio-shows how stable the relative performance is.</li><li><strong>Allocated</strong>: Managed memory allocated per operation (in KB or bytes). Lower means less GC pressure.</li><li><strong>Alloc Ratio</strong>: Memory allocation ratio relative to the baseline.</li></ul><p>These metrics come from multiple warm-up and actual iterations, eliminating noise and providing statistically sound data.</p><p><strong>The Technologies</strong><br><strong>EF Core with LINQ</strong><br>EF Core translates LINQ queries to SQL, handling change tracking, migrations, and complex mappings.<br> Example from the benchmark:</p><pre>var result = await (from task in tasksQuery<br>                    join team in _context.Teams on task.TeamId equals team.Id<br>                    group task by new { team.Id, team.Name } into g<br>                    select new TeamPerformanceSummaryResponseDto<br>                    {<br>                        TeamId = g.Key.Id,<br>                        TeamName = g.Key.Name,<br>                        TotalTasks = g.Count(),<br>                        CompletedTasks = g.Count(t =&gt; t.Status == &quot;Completed&quot; || t.CompletedAt != null),<br>                        CompletionRate = g.Count() &gt; 0 ? (decimal)g.Count(t =&gt; t.Status == &quot;Completed&quot; || t.CompletedAt != null) * 100 / g.Count() : 0<br>                    }).ToListAsync();</pre><p><strong>Dapper with Raw SQL</strong><br> Dapper maps raw SQL results to objects with minimal overhead and full SQL control.<br> Example:</p><pre>var sql = @&quot;<br>    SELECT t.Id AS TeamId, t.Name AS TeamName,<br>           COUNT(task.Id) AS TotalTasks,<br>           SUM(CASE WHEN task.Status = &#39;Completed&#39; OR task.CompletedAt IS NOT NULL THEN 1 ELSE 0 END) AS CompletedTasks,<br>           CASE WHEN COUNT(task.Id) &gt; 0 <br>                THEN CAST(SUM(CASE WHEN task.Status = &#39;Completed&#39; OR task.CompletedAt IS NOT NULL THEN 1 ELSE 0 END) * 100.0 / COUNT(task.Id) AS DECIMAL(18,2))<br>                ELSE 0 END AS CompletionRate<br>    FROM Teams t<br>    INNER JOIN Tasks task ON t.Id = task.TeamId<br>    WHERE 1 = 1 [optional filters]<br>    GROUP BY t.Id, t.Name<br>    ORDER BY t.Id&quot;;<br>var result = await connection.QueryAsync&lt;TeamPerformanceSummaryResponseDto&gt;(sql, parameters);</pre><p><strong>Stored Procedures</strong><br> Pre-compiled SQL in the database, called via Dapper here for fairness.<br> Example Procedure:</p><pre>CREATE PROCEDURE sp_GetTeamPerformanceSummary<br>    @StartDate DATETIME2 = NULL,<br>    @EndDate DATETIME2 = NULL,<br>    @TeamId INT = NULL<br>AS<br>BEGIN<br>    SELECT t.Id AS TeamId, t.Name AS TeamName, ... [same aggregation logic]<br>    FROM Teams t INNER JOIN Tasks task ON t.Id = task.TeamId<br>    WHERE (@StartDate IS NULL OR task.CreatedAt &gt;= @StartDate) ...<br>    GROUP BY t.Id, t.Name<br>    ORDER BY t.Id;<br>END</pre><p>Calling with Dapper:</p><pre>var result = await connection.QueryAsync&lt;TeamPerformanceSummaryResponseDto&gt;(<br>    &quot;sp_GetTeamPerformanceSummary&quot;, parameters, commandType: CommandType.StoredProcedure);</pre><p><strong>Real Benchmark Results (50,000+ Tasks)</strong><br> The benchmark ran on modern hardware (Intel Core i7–7500U equivalent) with warm-up and multiple iterations.<br> Results Table:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hYpAy5VqyaNzRU8xegD1GQ.png" /></figure><p>Key Insights:</p><ul><li>EF Core LINQ is the fastest here (baseline), likely due to optimized query translation and connection management in this aggregation scenario.</li><li>Dapper Raw SQL is ~34% slower but allocates less than half the memory.</li><li>Stored Procedure is the slowest (~62% over EF) but uses the least memory (~22% of EF).</li><li>High error/stddev in Dapper/SP suggests variability-possibly from connection handling or plan caching.</li><li>Recent 2024–2025 benchmarks show EF Core closing the gap significantly, often outperforming or matching Dapper in complex queries when tuned (e.g., no tracking).</li></ul><p>These results contrast with many older benchmarks where Dapper dominated simple reads, but for aggregations/joins with large data, EF Core’s optimizations shine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*TIjqPYjg0JJBnXlQj8dm-Q.png" /></figure><p><strong>Overall Insights:</strong></p><p>EF Core often leads or ties in speed for complex aggregations, thanks to modern optimizations in .NET 8+.<br> Dapper and Stored Procedures consistently use less memory.<br> Variability (higher Error/StdDev in some runs) points to factors like connection pooling and query plan caching.</p><h4><strong>Pros and Cons</strong></h4><p><strong>EF Core LINQ</strong></p><p><strong>Pros:</strong></p><ul><li>High productivity with type-safe LINQ.</li><li>Excellent for complex domains and rapid development.</li><li>Strong migrations and change tracking.</li></ul><p><strong>Cons:</strong></p><ul><li>Higher memory usage.</li><li>Potential for suboptimal SQL if not careful.</li></ul><p><strong>Dapper Raw SQL</strong><br> <strong>Pros:</strong></p><ul><li>Low memory footprint.</li><li>Full SQL control for tuning.</li><li>Great for read-heavy or high-throughput apps.</li></ul><p><strong>Cons:</strong></p><ul><li>More boilerplate (manual SQL, parameters).</li><li>No built-in migrations or tracking.</li></ul><p><strong>Stored Procedures</strong><br> <strong>Pros:</strong></p><ul><li>Minimal client-side allocation.</li><li>Pre-compiled plans and security benefits.</li><li>Ideal for regulated or legacy environments.</li></ul><p><strong>Cons:</strong></p><ul><li>Logic in database → harder versioning/maintenance.</li><li>Less flexible for dynamic queries.<br><strong>When to Choose Each (2026 Perspective)</strong></li><li>EF Core LINQ → Default for most apps. Productivity wins, and performance is now excellent (especially .NET 8+). Use for CRUD, complex models.</li><li>Dapper → Performance hotspots, APIs with massive reads, or when you need precise SQL control. Hybrid approach common.</li><li>Stored Procedures → Security-critical ops, heavy DB logic, or when DBAs own optimizations. Call via Dapper for best results.</li></ul><p>Recent discussions (2025) confirm: EF Core is the go-to unless extreme performance demands raw SQL.</p><p><strong>Conclusion</strong><br> No universal winner-EF Core offers the best balance for most modern .NET apps in 2026, with surprising speed in aggregations. Dapper excels in memory efficiency, and Stored Procedures in allocation/security.<br> Always benchmark your specific workload!</p><p>The full code (including interface, DTOs, and benchmark setup) is shared above for easy replication.<br> The complete benchmark project is available on GitHub:<br><a href="https://github.com/Productive-Build-Cycle/Reporting/tree/perf/benchmark-query">https://github.com/Productive-Build-Cycle/Reporting/tree/perf/benchmark-query</a><br> I invite you to star the repo, fork it, run the benchmarks on your setup, add more scenarios (e.g., bulk inserts, different data sizes), or share your results! Open issues for discussions or pull requests for improvements contributions are very welcome!<br> _<br> What’s your experience? Share in the comments!<br> What do your benchmarks show? Comment here or on GitHub!_</p><p><em>Originally published at </em><a href="https://dev.to/mina_golzari_dalir/benchmarking-ef-core-linq-dapper-raw-sql-and-stored-procedures-in-net-a-real-world-performance-54e4"><em>https://dev.to</em></a><em> on January 5, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74cda26790df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Evolution of Angular: Key Features and Benefits from Version 12 to 21]]></title>
            <link>https://medium.com/@minagolzaridalir/the-evolution-of-angular-key-features-and-benefits-from-version-12-to-21-9bb7b79852d8?source=rss-f8f5503b053a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9bb7b79852d8</guid>
            <category><![CDATA[features]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[evolution]]></category>
            <dc:creator><![CDATA[Mina Golzari Dalir]]></dc:creator>
            <pubDate>Fri, 12 Dec 2025 16:11:41 GMT</pubDate>
            <atom:updated>2025-12-14T12:29:37.549Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*jdeecq8qrVkz10fSEszU7A.webp" /></figure><p>Over the past several years, Angular has undergone one of the most significant transformations in its history, shifting from a module-heavy, change-detection-driven framework into a modern, high-performance, developer-focused platform. From version 12 through version 21, Angular has introduced major architectural advancements such as standalone components, signals, the new template control flow, an ESBuild-powered build system, and advanced SSR hydration. These changes not only simplify development and reduce boilerplate but also deliver measurable improvements in rendering speed, scalability, and user experience. Whether you are maintaining an older application or preparing to adopt the latest version, understanding this evolution is essential for making informed technical decisions and maximizing Angular’s capabilities.</p><p>Below is a professional, business-friendly, technical explanation of the main Angular features across versions 12 → 16 → 18 → 21, along with what each feature does and the measurable benefits (performance, maintainability, architectural quality).</p><p>This will help you clearly understand why each Angular generation matters and how they improve both developer experience and application performance.</p><p><strong>1. Standalone Components</strong><br> A component that works without NgModule.<br> You no longer need app.module.ts, product.module.ts, etc.</p><pre>@Component({<br>  selector: &#39;user-card&#39;,<br>  standalone: true,<br>  template: `&lt;h3&gt;{{ user().name }}&lt;/h3&gt;`<br>})<br>export class UserCard {<br>  user = signal({ name: &#39;Mina&#39; });<br>}</pre><p><strong>Benefit</strong></p><ul><li>Eliminates unnecessary boilerplate</li><li>Reduces architectural complexity</li><li>Faster onboarding for developers</li><li>Smaller codebase, fewer files</li><li>Better tree-shaking → smaller final bundle</li></ul><p><strong>Introduced</strong>: Angular 14<br><strong>Default</strong>: Angular 18<br><strong>Fully enforced</strong>: Angular 21</p><p><strong>2. Signals (Reactive State System)</strong></p><p>A new built-in reactivity model that tracks data changes synchronously and efficiently, similar to SolidJS or React’s state.</p><pre>const counter = signal(0);<br><br>function increment() {<br>  counter.update(n =&gt; n + 1);<br>}</pre><p><strong>Benefit</strong></p><ul><li>Eliminates ChangeDetection complexity</li><li>Minimal re-renders → massive performance improvement</li><li>Avoids RxJS boilerplate where not needed</li><li>Makes code more predictable and easier to debug</li><li>Works perfectly with Angular’s new template system</li></ul><p><strong>Preview</strong>: Angular 16<br><strong>Stable</strong>: Angular 18<br><strong>Recommended</strong>: Angular 21</p><p><strong>3. New Control Flow (@if, </strong><a href="https://dev.to/for"><strong>@for</strong></a><strong>, </strong><a href="https://dev.to/switch"><strong>@switch</strong></a><strong>)</strong></p><p>Modern template syntax replacing *ngIf and *ngFor.</p><pre>@if (loading()) {<br>  &lt;p&gt;Loading…&lt;/p&gt;<br>} @else {<br>  @for (item of items(); track item.id) {<br>    &lt;div&gt;{{ item.title }}&lt;/div&gt;<br>  }<br>}</pre><p><strong>Benefit</strong></p><ul><li>Faster runtime (because Angular compiles these more efficiently)</li><li>Much cleaner templates</li><li>Better type checking</li><li>Built for signal reactivity</li><li>Supports better tracking with track keyword</li></ul><p><strong>Introduced</strong>: Angular 17<br><strong>Fully optimized</strong>: Angular 18–21</p><p><strong>4. ESBuild-Based Build System</strong></p><p>Angular replaced Webpack with ESBuild for compilation and bundling.</p><pre>angular.json<br><br>{<br>  &quot;builder&quot;: &quot;@angular-devkit/build-angular:browser-esbuild&quot;<br>}</pre><p><strong>Benefit</strong></p><ul><li>Up to 10x faster builds</li><li>Instant hot reload (almost zero refresh time in dev mode)</li><li>Smaller output bundles</li><li>Less configuration headaches</li></ul><p><strong>Introduced</strong>: Angular 15–16<br><strong>Default</strong>: Angular 18+</p><p><strong>5. SSR Hydration + Partial Hydration</strong><br> SSR = Server-Side Rendering<br> Hydration = Reconnecting server-rendered HTML to client-side Angular<br> Partial Hydration = Only hydrate the parts that require interaction</p><pre>provideClientHydration()</pre><p><strong>Benefit</strong></p><ul><li>Faster page load + better SEO</li><li>First Contentful Paint (FCP) drastically improved</li><li>Angular feels more like Next.js or Remix</li><li>Lower memory usage on the client</li><li>Perfect for e-commerce and blogs</li></ul><p><strong>Early version</strong>: Angular 16<br><strong>Non-destructive hydration</strong>: Angular 18<br><strong>Partial hydration + advanced SSR</strong>: Angular 21</p><p><strong>6. Deferrable Views (</strong><a href="https://dev.to/defer"><strong>@defer</strong></a><strong>)</strong><br> Lazy-rendering of parts of a page based on conditions.</p><pre>@Component({<br>  selector: &#39;analytics-widget&#39;,<br>  standalone: true,<br>  hydration: { mode: &#39;client&#39; },<br>  template: `&lt;dashboard-chart /&gt;`<br>})<br>export class AnalyticsWidget {}</pre><p><strong>Benefit</strong></p><ul><li>Reduce initial load time</li><li>Render heavy components only when user needs them</li><li>Move expensive logic out of the critical path</li><li>Very useful for large dashboards or media-heavy pages</li></ul><p><strong>Stable</strong>: Angular 17+</p><p><strong>7. Required Inputs</strong></p><p>A Component Input must be set or Angular will show an error.</p><pre>@defer (on idle) {<br>  &lt;chart-dashboard&gt;&lt;/chart-dashboard&gt;<br>}</pre><p><strong>Benefit</strong></p><ul><li>Prevents undefined bugs</li><li>Stronger API contract between components</li><li>Better maintainability</li></ul><p><strong>Introduced</strong>: Angular 16</p><p><strong>8. Modern Angular Material (Material 3)</strong></p><p>Complete redesign of Angular Material based on Google’s M3 spec.</p><pre>&lt;mat-card appearance=&quot;outlined&quot;&gt;<br>  &lt;mat-card-header&gt;<br>    &lt;mat-card-title&gt;Product Details&lt;/mat-card-title&gt;<br>  &lt;/mat-card-header&gt;<br>&lt;/mat-card&gt;</pre><p><strong>Benefit</strong></p><ul><li>More modern UI</li><li>Better accessibility</li><li>More customizable themes</li><li>More consistent spacing, typography, and layout</li></ul><p><strong>Default</strong>: Angular 18–21</p><p><strong>9. Better TypeScript Support</strong></p><p>Each Angular version moves TS</p><pre>function logMessage&lt;T extends string&gt;(msg: T): T {<br>  return msg;<br>}</pre><p><strong>Benefit</strong></p><ul><li>Better IntelliSense</li><li>Stricter type checking</li><li>Renaming, refactoring, and autocomplete improvements</li><li>Faster compilation</li><li>Support for decorators, generics, async functions</li></ul><p><strong>10. Web Test Runner (instead of Karma/Jasmine)</strong></p><p>A faster, modern test runner.</p><pre>import { test, expect } from &#39;@angular/testing&#39;;<br><br>test(&#39;price should be greater than zero&#39;, () =&gt; {<br>  const price = 120;<br>  expect(price).toBeGreaterThan(0);<br>});</pre><p><strong>Benefit</strong></p><ul><li>~15x faster test runs</li><li>Better debugging</li><li>Cleaner test environment setup</li><li>Supports modern ES modules</li></ul><p><strong>Introduced</strong>: Angular 17<br><strong>Default</strong>: Angular 18+</p><p><strong>11. Improved Runtime Performance</strong><br> Angular removed almost all heavy, legacy ChangeDetection logic.</p><p><strong>Benefit</strong></p><ul><li>Faster rendering</li><li>Less CPU usage</li><li>Better battery life on mobile devices</li><li>Higher scalability (tens of thousands of DOM nodes)</li></ul><p><strong>Optimized</strong>: Angular 16–21</p><p><strong>PROJECT EXAMPLE: “Product Management Module”</strong><br> Features included:</p><ul><li>List products</li><li>Add new product</li><li>Loading state</li><li>API service integration We will show how this same feature looks in Angular 12, 16, 18, and 21.</li></ul><p><strong>ANGULAR 12 — Legacy Architecture</strong></p><p><strong>Folder Structure</strong></p><pre>/src/app/<br>   app.module.ts<br>   product/<br>      product.module.ts<br>      product-list/<br>          product-list.component.ts<br>          product-list.component.html<br>      product-add/<br>          product-add.component.ts<br>          product-add.component.html<br>      product.service.ts<br>      product.model.ts</pre><p><strong>Module-Based Architecture</strong></p><pre>// product.module.ts<br>@NgModule({<br>  declarations: [<br>    ProductListComponent,<br>    ProductAddComponent<br>  ],<br>  imports: [CommonModule, FormsModule],<br>  providers: [ProductService]<br>})<br>export class ProductModule {}</pre><p><strong>Component (Angular 12 style)</strong></p><pre>export class ProductListComponent implements OnInit {<br>  products: Product[] = [];<br><br>  constructor(private srv: ProductService) {}<br><br>  ngOnInit() {<br>    this.srv.getAll().subscribe(res =&gt; this.products = res);<br>  }<br>}</pre><p><strong>Template</strong></p><pre>&lt;div *ngFor=&quot;let p of products&quot;&gt;<br>  {{ p.name }} - {{ p.price }}<br>&lt;/div&gt;</pre><p><strong>ANGULAR 16 — Transition Architecture</strong></p><p><strong>Folder Structure</strong></p><pre>/src/app/<br>   product/<br>      product-list.component.ts<br>      product-add.component.ts<br>      product.service.ts</pre><p><strong>Standalone Component (Optional)</strong></p><pre>@Component({<br>  selector: &#39;product-list&#39;,<br>  standalone: true,<br>  imports: [CommonModule],<br>  templateUrl: &#39;./product-list.component.html&#39;<br>})<br>export class ProductListComponent {<br>  products = signal&lt;Product[]&gt;([]);<br><br>  constructor(private srv: ProductService) {<br>    this.srv.getAll().subscribe(r =&gt; this.products.set(r));<br>  }<br>}</pre><p><strong>Template (Still using *ngFor)</strong></p><pre>&lt;div *ngFor=&quot;let p of products()&quot;&gt;<br>  {{ p.name }} - {{ p.price }}<br>&lt;/div&gt;</pre><p><strong>ANGULAR 18 — Modern Angular</strong></p><p><strong>Folder Structure (Modular by Feature)</strong></p><pre>/src/app/<br>   product/<br>      list/<br>         product-list.component.ts<br>      add/<br>         product-add.component.ts<br>      product.service.ts</pre><p><strong>Signal-Based Component (Modern)</strong></p><pre>@Component({<br>  selector: &#39;product-list&#39;,<br>  standalone: true,<br>  template: `<br>    @for (p of products(); track p.id) {<br>      &lt;div&gt;<br>        {{ p.name }} - {{ p.price }}<br>      &lt;/div&gt;<br>    }<br>  `<br>})<br>export class ProductListComponent {<br>  products = signal&lt;Product[]&gt;([]);<br>  loading = signal(true);<br><br>  constructor(srv: ProductService) {<br>    srv.getAll().subscribe(res =&gt; {<br>      this.products.set(res);<br>      this.loading.set(false);<br>    });<br>  }<br>}</pre><p><strong>ANGULAR 21 — Latest Architecture (Full Signal Components + Modern Control Flow)</strong></p><p><strong>Folder Structure (Modern Clean)</strong></p><pre>/src/app/product/<br>   list.component.ts<br>   add.component.ts<br>   product.service.ts</pre><p><strong>Full Signal Component</strong></p><pre>@Component({<br>  selector: &#39;product-list&#39;,<br>  standalone: true,<br>  template: `<br>    @if (loading()) {<br>      &lt;p&gt;Loading...&lt;/p&gt;<br>    } @else {<br>      @for (p of products(); track p.id) {<br>        &lt;div&gt;{{ p.name }} - {{ p.price }}&lt;/div&gt;<br>      }<br>    }<br>  `<br>})<br>export class ProductListComponent {<br>  loading = signal(true);<br>  products = signal&lt;Product[]&gt;([]);<br><br>  constructor(srv: ProductService) {<br>    srv.getAll().subscribe(data =&gt; {<br>      this.products.set(data);<br>      this.loading.set(false);<br>    });<br>  }<br>}</pre><p><em>Originally published at </em><a href="https://dev.to/mina_golzari_dalir/the-evolution-of-angular-key-features-and-benefits-from-version-12-to-21-12a"><em>https://dev.to</em></a><em> on December 12, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bb7b79852d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker for Developers: From Zero to Running Your First Production-Grade Next.js App in 1 Hour]]></title>
            <link>https://medium.com/@minagolzaridalir/docker-for-developers-from-zero-to-running-your-first-production-grade-next-js-app-in-1-hour-17851377984c?source=rss-f8f5503b053a------2</link>
            <guid isPermaLink="false">https://medium.com/p/17851377984c</guid>
            <dc:creator><![CDATA[Mina Golzari Dalir]]></dc:creator>
            <pubDate>Wed, 26 Nov 2025 14:04:08 GMT</pubDate>
            <atom:updated>2025-12-04T08:49:40.625Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*15qafHCJA7w8Mwzy.png" /></figure><p>Hey there! Welcome to the only Next.js + Docker guide you&#39;ll ever need in 2025.<br> By the end of this single post (and ~60 minutes of your time), you will:</p><p>Ship a real Next.js 15 app in a container smaller than 90 MB<br> Run it exactly the same way on Mac, Windows, Linux, or even in the cloud<br> Make your entire team happy (no more “it works on my machine”)<br> Be ready to deploy to Railway, Render, Fly.io, or Kubernetes with zero changes</p><p>Let’s go — coffee ready?</p><p><strong>What You’ll Build Today</strong><br> A production-grade Next.js 15 (App Router) app that includes:</p><ul><li>&lt; 90 MB Docker image</li><li>Multi-stage build (no dev dependencies in production)</li><li>Non-root user + health checks</li><li>Hot reload for development</li><li>One-command workflow for the whole team</li><li>Works everywhere: local, CI, GitHub Codespaces, Gitpod</li></ul><p><strong>Prerequisites</strong><br> Make sure you have these installed:</p><ol><li>Node.js ≥ 18 (preferably 20 or 22) → <a href="https://nodejs.org/">https://nodejs.org</a> Check with:node -v</li><li>Git → <a href="https://git-scm.com/downloads">https://git-scm.com/downloads</a> Check with:git --version</li><li>Docker Desktop (Windows/Mac) or Docker Engine (Linux) → <a href="https://www.docker.com/products/docker-desktop">https://www.docker.com/products/docker-desktop</a> Check with:docker --version and docker compose version (Compose V2 is now built-in) If any of these are missing, install them first.</li></ol><p><strong>Step 1: Create the Next.js App</strong></p><pre># 1. Create the project<br>npx create-next-app@latest my-nextjs-app --ts --app --eslint --tailwind --src-dir --import-alias &quot;@/*&quot;<br># 2. Go into the folder<br>cd my-nextjs-app<br># 3. Open it in your editor<br>code .    # if you use VS Code</pre><p>What we just chose and why (important for Docker later):</p><p>--app→ App Router (new standard, better for Docker + Server Actions)<br>--src-dir → Keeps everything clean inside /src<br>--turbo → Uses Turbopack in dev (faster than webpack)<br>--import-alias &quot;@/*&quot; → Clean imports like @/components/Button</p><p>Test it quickly: npm run dev → <a href="http://localhost:3000/">http://localhost:3000</a><br> your package.json scripts should look like this</p><pre>&quot;scripts&quot;: {<br>  &quot;dev&quot;: &quot;next dev --turbo&quot;,<br>  &quot;build&quot;: &quot;next build&quot;,<br>  &quot;start&quot;: &quot;next start&quot;,<br>  &quot;lint&quot;: &quot;next lint&quot;<br>}</pre><p><strong>Initialize Git + create GitHub repo + first commit</strong><br> Run these commands one by one in your project folder:</p><pre># 1. Initialize git<br>git init<br><br># 2. Create a nice .gitignore (Next.js already has one, but we make it perfect for Docker)<br><br># Docker<br>.dockerignore<br>Dockerfile<br>docker-compose.yml<br><br># Node<br>node_modules/<br>.env.local<br>EOF<br><br># 3. First commit<br>git add .<br>git commit -m &quot;feat: initial commit - Next.js app ready for Docker&quot;<br><br># 4. Create the GitHub repo (do this in your browser)<br># → Go to https://github.com/new<br># Name: my-nextjs-docker-app (or whatever you want)<br># Keep it Public or Private — your choice<br># DO NOT initialize with README (we already have one)<br># Click &quot;Create repository&quot;<br><br># 5. Link and push (replace YOUR_USERNAME with your GitHub username)<br>git remote add origin https://github.com/YOUR_USERNAME/my-nextjs-docker-app.git<br>git branch -M main<br>git push -u origin main</pre><p><strong>Step 2: The 2025 Production Dockerfile (The One Everyone Copies)</strong><br> Create Dockerfile(root of project):</p><pre># Build stage -&gt; we name this stage so we can copy from it later<br>FROM node:22-alpine AS builder <br># All following commands run inside /app folder<br>WORKDIR /app<br># Copy ONLY dependency files first → Docker can cache this layer<br>COPY package*.json ./<br>#clean install (faster + reproducible, perfect for Docker)<br>RUN npm ci<br># Now copy the rest of your code<br>COPY . .<br># Runs next build → creates the optimized .next folder + standalone server<br>RUN npm run build<br><br># Prune dev dependencies<br>FROM node:22-alpine AS pruner<br>WORKDIR /app<br>COPY --from=builder /app ./<br>RUN npm ci --omit=dev &amp;&amp; npm cache clean --force<br><br># Final tiny image<br>FROM node:22-alpine AS runtime<br>WORKDIR /app<br>RUN addgroup --system --gid 1001 nodejs<br>RUN adduser --system --uid 1001 nextjs<br><br>COPY --from=pruner --chown=nextjs:nodejs /app/node_modules ./node_modules<br>COPY --from=pruner --chown=nextjs:nodejs /app/package.json ./<br>COPY --from=pruner --chown=nextjs:nodejs /app/public ./public<br>COPY --from=pruner --chown=nextjs:nodejs /app/.next/standalone ./<br>COPY --from=pruner --chown=nextjs:nodejs /app/.next/static ./.next/static<br><br>USER nextjs<br>EXPOSE 3000<br><br>HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \<br>  CMD wget -qO- http://localhost:3000/api/health || exit 1<br><br>CMD [&quot;node&quot;, &quot;server.js&quot;]</pre><p><strong>Magic Line You Must Add (next.config.js)</strong></p><pre>/** @type {import(&#39;next&#39;).NextConfig} */<br>const nextConfig = {<br>  output: &#39;standalone&#39;, // This makes Next.js create server.js<br>};<br><br>module.exports = nextConfig;</pre><p><strong>Tiny Health Check (app/api/health/route.ts)</strong></p><pre>import { NextResponse } from &#39;next/server&#39;;<br><br>export async function GET() {<br>  return NextResponse.json({ <br>    status: &#39;ok&#39;, <br>    timestamp: new Date().toISOString() <br>  });<br>}</pre><p><strong>.dockerignore (Speeds Up Builds 5x)</strong></p><pre>node_modules<br>.next<br>.env*.local<br>.git<br>.gitignore<br>README.md<br>Dockerfile<br>docker-compose*.yml</pre><p><strong>Build &amp; Run It (The Moment of Truth)</strong></p><pre>docker build -t nextjs-prod .<br>docker run -d -p 3000:3000 --name prod nextjs-prod</pre><p>Open http://localhost:3000 → It just works.<br> Check image size:</p><pre>docker images nextjs-prod<br># → ~84 MB (vs 1 GB+ the &quot;wrong&quot; way)</pre><p>Removing Container and Image</p><pre>docker rm -f nextjs-prod <br>docker rm -f nextjs-prod-app<br><br>docker rmi nextjs-prod </pre><p><strong>docker-compose.yml (new file in root)-Two services explained</strong></p><pre>services:<br>nextjs-dev:                     # ← Development container<br>    build: .                      # Use the same Dockerfile<br>    ports:<br>      - &quot;3000:3000&quot;               # Host port 3000 → container port 3000<br>    environment:<br>      NODE_ENV: development       # Enables hot reload<br>    volumes:<br>      - .:/app                    # Your code changes instantly appear inside container<br>      - /app/node_modules         # Don’t let host node_modules override container ones<br>      - /app/.next                # Keep build cache on host (faster restarts)<br>    command: npm run dev          # Override CMD from Dockerfile<br><br>  nextjs-prod:                    # ← Real production preview<br>    build: .<br>    ports:<br>      - &quot;3001:3000&quot;               # Different host port so you can run both at once<br>    environment:<br>      NODE_ENV: production<br>    restart: unless-stopped<br>    healthcheck:<br>      test: [&quot;CMD&quot;, &quot;wget&quot;, &quot;--no-verbose&quot;, &quot;--tries=1&quot;, &quot;--spider&quot;, &quot;http://localhost:3000&quot;]<br>      interval: 30s<br>      timeout: 10s<br>      retries: 3</pre><p>Now run in your terminal (PowerShell or cmd):</p><pre>docker compose up --build</pre><p>You should see it build and start on <a href="http://localhost:3000/">http://localhost:3000</a> with hot reload.<br> Then open a second terminal and run:</p><pre>docker compose up --build nextjs-prod<br>docker compose up --build nextjs-dev</pre><p>if you want both at the same time in one terminal</p><pre>docker compose up nextjs-dev nextjs-prod</pre><p>→ <a href="http://localhost:3001/">http://localhost:3001</a> will show the real production version (super fast and tiny image ~90MB).</p><p>A common super common on Windows with WSL2 + Docker Desktop when it’s still configured to use Linux containers but somehow tries to pull a Windows image.</p><pre>no matching manifest for windows/amd64 10.0.26100 in the manifest list entries</pre><p>Right-click the Docker Desktop whale icon in your system tray → make sure it says “Linux containers” (not “Windows containers”).</p><pre>DesktopLinuxEngine: The system cannot find the file specified.</pre><p>This error means Docker Desktop’s Linux engine is not running right now (it probably stopped or crashed after the long prod build).</p><ol><li>Look at your system tray (bottom-right near the clock)</li><li>Find the Docker whale icon</li><li>If it’s gray or has a red dot → Docker is stopped</li><li>Just double-click the whale icon → Docker Desktop will restart automatically</li></ol><p><strong>Rebuild and run</strong></p><pre># Remove old broken images<br>docker compose down --rmi all<br><br># Build &amp; start dev (this time it WILL have the next binary)<br>docker compose up --build nextjs-dev</pre><p><strong>Stop / Start only the dev container</strong></p><pre># Stop dev only<br>docker compose stop nextjs-dev<br><br># Start dev again (instant, no rebuild)<br>docker compose start nextjs-dev<br><br># Or restart dev in one command<br>docker compose restart nextjs-dev</pre><p><strong>Stop BOTH at once</strong></p><pre>docker compose down</pre><p><strong>When hot-reload feels weird or .next is corrupted</strong></p><pre>docker compose down -v<br>docker compose up nextjs-dev          # fresh .next cache</pre><p><strong>When you changed Dockerfile or node_modules</strong></p><pre>docker compose down --rmi all<br>docker compose up --build nextjs-dev</pre><p><strong>When your PC is crying for disk space</strong></p><pre>docker system prune -a               # frees gigabytes in 10 seconds</pre><p><strong>Start BOTH at once</strong></p><pre>docker compose up<br># or in background (like a real server)<br>docker compose up -d</pre><p><strong>Rebuild + start only one</strong></p><pre>docker compose up --build nextjs-dev</pre><p><strong>List running containers</strong></p><pre>docker compose ps</pre><p><strong>stops + removes containers + removes YOUR volumes</strong></p><pre>docker compose down -v</pre><p><strong>Delete ALL volumes created by this docker-compose file (100% safe)</strong></p><pre>docker compose down --volumes</pre><p><strong>Volumes from other projects</strong></p><pre>docker volume ls</pre><p><strong>See logs (super useful!)</strong></p><pre>docker logs nextjs-dev -f          # -f = follow live</pre><p><strong>Tag an existing image with multiple tags</strong></p><pre>docker tag nextjs-docker-app-nextjs-prod username/nextjs-docker-app:latest<br>docker tag nextjs-docker-app-nextjs-prod username/nextjs-docker-app:v1</pre><p><strong>See all your local images + their tags</strong></p><pre>docker images</pre><p><strong>Folder Structure</strong></p><pre>my-nextjs-app/<br>├── .dockerignore<br>├── .gitignore<br>├── Dockerfile<br>├── docker-compose.yml<br>├── next.config.js<br>├── package.json<br>├── app/<br>│   └── api/health/route.ts<br>└── public/</pre><p>Now that you have a perfect Docker setup, here are the real-world ways to share the exact same image with your team (or with CI/CD, hosting, etc.):</p><p><strong>Step 3: Push to Docker Hub</strong></p><pre># 1. Log in to Docker Hub (create account at `hub.docker.com` if you don&#39;t have one)<br>docker login<br><br># 2. Tag your prod image with your username<br>docker tag nextjs-docker-app-nextjs-prod username/nextjs-docker-app:latest<br><br># 3. Push it<br>docker push username/nextjs-docker-app:latest<br><br># Then your entire team (or any server in the world) can start your exact production app in 5 seconds with:<br><br>docker run -d -p 3000:3000 username/nextjs-docker-app:latest<br><br># Only download the image (no container starts)<br>docker pull username/nextjs-docker-app:latest</pre><p><em>You just graduated from “Docker curious” to “Docker professional” in under an hour.</em></p><p>I’ve personally used this exact setup on every new Next.js projects.<br> If this guide saves even one hour of your life, drop a comment below and tell me how it went — I read every single one.</p><p><em>Originally published at </em><a href="https://dev.to/mina_golzari_dalir/docker-for-developers-from-zero-to-running-your-first-production-grade-nextjs-app-in-1-hour-4if7"><em>https://dev.to</em></a><em> on November 26, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17851377984c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Technical SEO for Developers: A Comprehensive Guide to Building Search-Friendly Applications]]></title>
            <link>https://medium.com/@minagolzaridalir/technical-seo-for-developers-a-comprehensive-guide-to-building-search-friendly-applications-3667e96d4d96?source=rss-f8f5503b053a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3667e96d4d96</guid>
            <dc:creator><![CDATA[Mina Golzari Dalir]]></dc:creator>
            <pubDate>Sun, 16 Nov 2025 13:40:06 GMT</pubDate>
            <atom:updated>2025-11-16T13:47:12.989Z</atom:updated>
            <content:encoded><![CDATA[<p>As developers, we often focus on writing clean code and optimizing performance, but one critical aspect that’s frequently overlooked is technical SEO. In this article, using a real-world plastic injection factory example, we’ll explore how you can implement SEO at the code level.</p><p><strong>Why Technical SEO Matters</strong><br> Technical SEO forms the foundation of any successful SEO strategy. Even if you create the best content in the world, without proper technical structure, search engines cannot properly index and understand it.</p><p><strong>The Business Impact</strong></p><ul><li>60% of organic clicks go to the first three results</li><li>53% of website traffic comes from organic search</li><li>Proper technical SEO can increase conversion rates by 30%</li></ul><p><strong>Real-World Code Analysis: Plastic Injection Factory Example</strong><br> Let’s break down the provided metadata code and extract valuable SEO lessons:</p><pre>export const metadata: Metadata = {<br>  // Strategic title tag<br>  title: &quot;Products &amp; Services | Plastic Injection Factory&quot;,<br>  description: &quot;Comprehensive plastic injection services • Precision mold making • Plastic parts manufacturing for automotive, medical, electronics, and consumer goods industries • Guaranteed quality&quot;,<br><br>  // Targeted keywords (though less important for Google, still valuable)<br>  keywords: &quot;plastic injection products, mold services, automotive plastic parts, medical plastic components, electronic parts manufacturing, industrial mold making, Hamedan plastic injection&quot;,<br><br>  // Authority and ownership signals<br>  authors: [{ name: &quot;Plastic Injection Factory&quot; }],<br>  creator: &quot;Plastic Injection Factory&quot;,<br>  publisher: &quot;Plastic Injection Factory&quot;,<br><br>  // Crawler instructions<br>  robots: &quot;index, follow, max-image-preview:large&quot;,<br><br>  // URL management<br>  metadataBase: new URL(&#39;https://hamedan-plastic-injection.ir&#39;),<br>  alternates: {<br>    canonical: &#39;https://hamedan-plastic-injection.ir/products&#39;,<br>  },<br><br>  // Social media optimization<br>  openGraph: {<br>    title: &quot;Products &amp; Services | Plastic Injection Factory&quot;,<br>    description: &quot;Comprehensive plastic injection services • Precision mold making • Custom plastic parts for various industries&quot;,<br>    images: [<br>      {<br>        url: &#39;/og-products.jpg&#39;,<br>        width: 1200,<br>        height: 630,<br>        alt: &#39;Products and Services - Plastic Injection Factory&#39;,<br>      },<br>    ],<br>    locale: &#39;fa_IR&#39;, // Crucial for local SEO<br>    type: &#39;website&#39;,<br>  },<br><br>  // Twitter-specific optimization<br>  twitter: {<br>    card: &#39;summary_large_image&#39;,<br>    title: &quot;Products &amp; Services | Plastic Injection Factory&quot;,<br>    description: &quot;Comprehensive plastic injection services • Precision mold making • Custom plastic parts&quot;,<br>    images: [&#39;/og-products.jpg&#39;],<br>  },<br>};</pre><p><strong>Common Developer SEO Mistakes to Avoid</strong></p><ol><li><strong>Ignoring URL Structure</strong></li></ol><pre>// ❌ Poor SEO practice<br>/products?id=123&amp;category=plastic<br><br>// ✅ SEO-friendly approach<br>/products/plastic-injection-molds<br><br>// ✅ Even better with hierarchy<br>/services/plastic-injection/automotive-parts</pre><p><strong>2. Forgetting Canonical Tags</strong></p><pre>// Always set canonical URLs to prevent duplicate content<br>alternates: {<br>  canonical: &#39;https://example.com/correct-url&#39;,<br>},</pre><p><strong>3. Neglecting Image Optimization</strong></p><pre>images: [<br>  {<br>    url: &#39;/og-image.jpg&#39;,<br>    width: 1200,    // Specify dimensions<br>    height: 630,    // Specify dimensions<br>    alt: &#39;Meaningful image description&#39;, // Descriptive alt text<br>  },<br>],</pre><p><strong>4. Overlooking International SEO</strong></p><pre>// For multilingual sites<br>alternates: {<br>  languages: {<br>    &#39;en&#39;: &#39;https://example.com/en/products&#39;,<br>    &#39;fa&#39;: &#39;https://example.com/fa/products&#39;,<br>    &#39;de&#39;: &#39;https://example.com/de/products&#39;,<br>  }<br>}</pre><p><strong>SEO-Friendly Coding Best Practices</strong></p><ol><li><strong>Semantic HTML Implementation</strong></li></ol><pre>// ❌ Poor semantics<br>&lt;div onClick={handleClick}&gt;Products&lt;/div&gt;<br><br>// ✅ SEO-friendly<br>&lt;button onClick={handleClick} aria-label=&quot;Browse our products&quot;&gt;<br>  Products<br>&lt;/button&gt;<br><br>// ✅ Even better with proper heading structure<br>&lt;section&gt;<br>  &lt;h2&gt;Our Manufacturing Services&lt;/h2&gt;<br>  &lt;button onClick={handleClick}&gt;Explore Products&lt;/button&gt;<br>&lt;/section&gt;</pre><p><strong>2. Structured Data Implementation</strong></p><pre>// JSON-LD for rich snippets<br>const productSchema = {<br>  &quot;@context&quot;: &quot;https://schema.org&quot;,<br>  &quot;@type&quot;: &quot;Product&quot;,<br>  &quot;name&quot;: &quot;Plastic Injection Mold&quot;,<br>  &quot;description&quot;: &quot;High-precision plastic injection mold for automotive industry&quot;,<br>  &quot;brand&quot;: {<br>    &quot;@type&quot;: &quot;Brand&quot;,<br>    &quot;name&quot;: &quot;Plastic Injection&quot;<br>  },<br>  &quot;offers&quot;: {<br>    &quot;@type&quot;: &quot;Offer&quot;,<br>    &quot;availability&quot;: &quot;https://schema.org/InStock&quot;,<br>    &quot;priceCurrency&quot;: &quot;USD&quot;,<br>    &quot;price&quot;: &quot;2500&quot;<br>  }<br>};</pre><p><strong>3. Performance Optimization for SEO</strong></p><pre>// Next.js example with ISR for better SEO<br>export const dynamic = &#39;auto&#39;;<br>export const dynamicParams = true;<br>export const revalidate = 3600; // Incremental Static Regeneration<br><br>// Image optimization<br>import Image from &#39;next/image&#39;;<br><br>&lt;Image<br>  src=&quot;/manufacturing-process.jpg&quot;<br>  alt=&quot;Plastic injection manufacturing process&quot;<br>  width={800}<br>  height={600}<br>  priority={true} // For above-the-fold images<br>/&gt;</pre><p><strong>International SEO Considerations</strong></p><pre>openGraph: {<br>  locale: &#39;en_US&#39;, // Important for geographic targeting<br>  siteName: &#39;Plastic Injection Factory&#39;,<br>  // ...<br>},<br><br>// For multi-regional targeting<br>metadataBase: new URL(&#39;https://hamedan-plastic-injection.ir&#39;),<br>alternates: {<br>  canonical: &#39;https://hamedan-plastic-injection.ir/en/products&#39;,<br>  languages: {<br>    &#39;en&#39;: &#39;https://hamedan-plastic-injection.ir/en/products&#39;,<br>    &#39;fa&#39;: &#39;https://hamedan-plastic-injection.ir/fa/products&#39;,<br>  }<br>}</pre><p><strong>Local SEO Implementation</strong></p><p><strong>Essential SEO Tools for Developers</strong><br><strong>1. Validation Tools</strong></p><ul><li>Google Rich Results Test — Structured data validation</li><li>Schema Markup Validator — Schema.org testing</li><li>Lighthouse SEO Audit — Comprehensive SEO auditing</li><li>Google Search Console — Performance monitoring</li></ul><p><strong>2. Development &amp; Monitoring</strong></p><ul><li>Screaming Frog SEO Spider — Technical SEO auditing</li><li>Ahrefs Site Audit — Comprehensive SEO analysis</li><li>PageSpeed Insights — Performance monitoring</li></ul><p><strong>Key Metrics to Track</strong></p><pre>// SEO metrics monitoring structure<br>const seoMetrics = {<br>  coreWebVitals: {<br>    lcp: &#39;2.5s&#39;,    // Largest Contentful Paint (target: &lt;2.5s)<br>    fid: &#39;100ms&#39;,   // First Input Delay (target: &lt;100ms)<br>    cls: &#39;0.1&#39;,     // Cumulative Layout Shift (target: &lt;0.1)<br>  },<br>  crawlability: {<br>    indexedPages: 150,<br>    crawlErrors: 0,<br>    robotsTxt: &#39;valid&#39;,<br>    sitemapStatus: &#39;healthy&#39;,<br>  },<br>  performance: {<br>    pageSpeed: 85,<br>    timeToInteractive: &#39;3.2s&#39;,<br>    firstContentfulPaint: &#39;1.8s&#39;,<br>  },<br>  businessMetrics: {<br>    organicTraffic: &#39;45%&#39;,<br>    conversionRate: &#39;3.2%&#39;,<br>    bounceRate: &#39;42%&#39;,<br>  }<br>};</pre><p><strong>Actionable Checklist for Development Teams</strong></p><p><strong>Pre-Launch SEO Checklist</strong></p><ul><li>Semantic HTML structure implemented</li><li>All images have descriptive alt text</li><li>XML sitemap generated and submitted</li><li>robots.txt properly configured</li><li>Canonical tags set for all pages</li><li>Structured data implemented</li><li>Page speed optimized (LCP &lt; 2.5s)</li><li>Mobile-responsive design tested</li><li>SSL certificate installed</li><li>404 pages customized</li></ul><p><strong>Ongoing SEO Maintenance</strong></p><ul><li>Regular performance monitoring</li><li>Broken link checks</li><li>Schema markup validation</li><li>Core Web Vitals tracking</li><li>Search Console error monitoring</li></ul><p><strong>Advanced Technical SEO Techniques</strong></p><ol><li><strong>Dynamic Rendering for JavaScript-Heavy Apps</strong></li></ol><pre>// For SPAs that need SEO support<br>// Use server-side rendering or dynamic rendering<br>export async function getServerSideProps(context) {<br>  // Fetch data for SEO<br>  const productData = await fetchProductData(context.params.id);<br><br>  return {<br>    props: {<br>      product: productData,<br>      seo: {<br>        title: productData.seoTitle,<br>        description: productData.seoDescription,<br>        canonical: `https://example.com/products/${productData.slug}`<br>      }<br>    }<br>  };<br>}</pre><p><strong>2. API Route for Dynamic Sitemaps</strong></p><pre>// pages/api/sitemap.xml.js<br>export default function handler(req, res) {<br>  const sitemap = generateSitemap();<br>  res.setHeader(&#39;Content-Type&#39;, &#39;text/xml&#39;);<br>  res.write(sitemap);<br>  res.end();<br>}</pre><p><strong>Pro Tips for Development Teams</strong></p><ul><li>SEO-First Development — Integrate SEO requirements from sprint planning</li><li>Collaborate with Content Teams — Align on keywords and URL structures</li><li>Performance as Priority — Fast sites rank better and convert better</li><li>Mobile-First Mindset — Over 60% of searches happen on mobile</li><li>Structured Data Foundation — Implement schema.org from the beginning</li><li>International from Day One — Plan for global expansion from the start</li></ul><p><strong>Conclusion</strong><br> Technical SEO is a long-term investment that should be at the core of your development process. By implementing these practices, you’ll not only achieve better search rankings but also provide a superior user experience.</p><p><em>Originally published at </em><a href="https://dev.to/mina_golzari_dalir/technical-seo-for-developers-a-comprehensive-guide-to-building-search-friendly-applications-36pn"><em>https://dev.to</em></a><em> on November 16, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3667e96d4d96" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a Modern Contact Us Page with Next.js + Tailwind CSS (Component-Based + SEO-Ready)]]></title>
            <link>https://medium.com/@minagolzaridalir/build-a-modern-contact-us-page-with-next-js-tailwind-css-component-based-seo-ready-c2323e837ef1?source=rss-f8f5503b053a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2323e837ef1</guid>
            <category><![CDATA[components]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[contact-us]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[seo]]></category>
            <dc:creator><![CDATA[Mina Golzari Dalir]]></dc:creator>
            <pubDate>Sat, 08 Nov 2025 13:27:16 GMT</pubDate>
            <atom:updated>2025-11-08T13:42:36.520Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*3tP_RKYYSxpIEm8Y.jpg" /></figure><p>A well-structured contact page is a must-have for any website. In this tutorial we’ll:</p><ol><li><strong>Create reusable React components</strong> (ContactForm, ContactInfo, SocialLinks, MapEmbed).</li><li><strong>Compose the page</strong> in the Next.js <strong>App Router</strong> (or Pages Router).</li><li><strong>Add full SEO</strong> — title, meta description, Open Graph, Twitter cards, canonical URL, and optional JSON-LD.</li></ol><pre>app/<br>contact/<br>page.tsx          ← main page (App Router)<br>components/<br>ContactForm.tsx<br>ContactInfo.tsx<br>SocialLinks.tsx<br>MapEmbed.tsx<br>public/<br>og-contact.jpg      ← 1200×630 Open Graph image</pre><ol><li><strong>Install Dependencies</strong></li></ol><pre>npm install lucide-react<br># for Pages Router SEO<br>npm install next-seo</pre><p><strong>2. Reusable Components</strong><br> components/ContactForm.tsx</p><pre>&#39;use client&#39;;<br><br>import { useState } from &#39;react&#39;;<br><br>export default function ContactForm() {<br>  const [formData, setFormData] = useState({<br>    name: &#39;&#39;,<br>    email: &#39;&#39;,<br>    subject: &#39;&#39;,<br>    message: &#39;&#39;,<br>  });<br><br>  const [status, setStatus] = useState&lt;&#39;idle&#39; | &#39;sending&#39; | &#39;success&#39; | &#39;error&#39;&gt;(&#39;idle&#39;);<br><br>  const handleChange = (<br>    e: React.ChangeEvent&lt;HTMLInputElement | HTMLTextAreaElement&gt;<br>  ) =&gt; {<br>    setFormData({ ...formData, [e.target.name]: e.target.value });<br>  };<br><br>  const handleSubmit = async (e: React.FormEvent) =&gt; {<br>    e.preventDefault();<br>    setStatus(&#39;sending&#39;);<br><br>    // Replace with real API (Formspree, EmailJS, etc.)<br>    setTimeout(() =&gt; {<br>      setStatus(&#39;success&#39;);<br>      setFormData({ name: &#39;&#39;, email: &#39;&#39;, subject: &#39;&#39;, message: &#39;&#39; });<br>      setTimeout(() =&gt; setStatus(&#39;idle&#39;), 3000);<br>    }, 1000);<br>  };<br><br>  return (<br>    &lt;form onSubmit={handleSubmit} className=&quot;space-y-6&quot;&gt;<br>      &lt;div className=&quot;grid grid-cols-1 md:grid-cols-2 gap-6&quot;&gt;<br>        &lt;div&gt;<br>          &lt;label htmlFor=&quot;name&quot; className=&quot;block text-sm font-medium text-gray-700 mb-1&quot;&gt;<br>            Full Name<br>          &lt;/label&gt;<br>          &lt;input<br>            type=&quot;text&quot;<br>            id=&quot;name&quot;<br>            name=&quot;name&quot;<br>            required<br>            value={formData.name}<br>            onChange={handleChange}<br>            className=&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition&quot;<br>            placeholder=&quot;John Doe&quot;<br>          /&gt;<br>        &lt;/div&gt;<br><br>        &lt;div&gt;<br>          &lt;label htmlFor=&quot;email&quot; className=&quot;block text-sm font-medium text-gray-700 mb-1&quot;&gt;<br>            Email Address<br>          &lt;/label&gt;<br>          &lt;input<br>            type=&quot;email&quot;<br>            id=&quot;email&quot;<br>            name=&quot;email&quot;<br>            required<br>            value={formData.email}<br>            onChange={handleChange}<br>            className=&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition&quot;<br>            placeholder=&quot;john@example.com&quot;<br>          /&gt;<br>        &lt;/div&gt;<br>      &lt;/div&gt;<br><br>      &lt;div&gt;<br>        &lt;label htmlFor=&quot;subject&quot; className=&quot;block text-sm font-medium text-gray-700 mb-1&quot;&gt;<br>          Subject<br>        &lt;/label&gt;<br>        &lt;input<br>          type=&quot;text&quot;<br>          id=&quot;subject&quot;<br>          name=&quot;subject&quot;<br>          required<br>          value={formData.subject}<br>          onChange={handleChange}<br>          className=&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition&quot;<br>          placeholder=&quot;How can we help you?&quot;<br>        /&gt;<br>      &lt;/div&gt;<br><br>      &lt;div&gt;<br>        &lt;label htmlFor=&quot;message&quot; className=&quot;block text-sm font-medium text-gray-700 mb-1&quot;&gt;<br>          Message<br>        &lt;/label&gt;<br>        &lt;textarea<br>          id=&quot;message&quot;<br>          name=&quot;message&quot;<br>          required<br>          rows={5}<br>          value={formData.message}<br>          onChange={handleChange}<br>          className=&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition resize-none&quot;<br>          placeholder=&quot;Tell us more...&quot;<br>        /&gt;<br>      &lt;/div&gt;<br><br>      &lt;button<br>        type=&quot;submit&quot;<br>        disabled={status === &#39;sending&#39;}<br>        className={`w-full py-3 px-6 text-white font-medium rounded-lg transition ${<br>          status === &#39;sending&#39;<br>            ? &#39;bg-gray-400 cursor-not-allowed&#39;<br>            : &#39;bg-blue-600 hover:bg-blue-700&#39;<br>        }`}<br>      &gt;<br>        {status === &#39;sending&#39; ? &#39;Sending...&#39; : &#39;Send Message&#39;}<br>      &lt;/button&gt;<br><br>      {status === &#39;success&#39; &amp;&amp; (<br>        &lt;p className=&quot;text-green-600 text-center font-medium&quot;&gt;<br>          Message sent successfully!<br>        &lt;/p&gt;<br>      )}<br>      {status === &#39;error&#39; &amp;&amp; (<br>        &lt;p className=&quot;text-red-600 text-center font-medium&quot;&gt;<br>          Failed to send. Try again.<br>        &lt;/p&gt;<br>      )}<br>    &lt;/form&gt;<br>  );<br>}</pre><p>components/ContactInfo.tsx</p><pre>import { Mail, Phone, MapPin } from &#39;lucide-react&#39;;<br><br>export default function ContactInfo() {<br>  return (<br>    &lt;div className=&quot;space-y-6&quot;&gt;<br>      &lt;h3 className=&quot;text-xl font-semibold text-gray-900&quot;&gt;Get in Touch&lt;/h3&gt;<br>      &lt;p className=&quot;text-gray-600&quot;&gt;<br>        We&#39;d love to hear from you. Send us a message and we&#39;ll respond as soon as possible.<br>      &lt;/p&gt;<br><br>      &lt;div className=&quot;space-y-4&quot;&gt;<br>        &lt;div className=&quot;flex items-start gap-3&quot;&gt;<br>          &lt;MapPin className=&quot;w-5 h-5 text-blue-600 mt-0.5&quot; /&gt;<br>          &lt;div&gt;<br>            &lt;p className=&quot;font-medium text-gray-900&quot;&gt;Address&lt;/p&gt;<br>            &lt;p className=&quot;text-gray-600&quot;&gt;<br>              123 Business St, Suite 100&lt;br /&gt;New York, NY 10001<br>            &lt;/p&gt;<br>          &lt;/div&gt;<br>        &lt;/div&gt;<br><br>        &lt;div className=&quot;flex items-start gap-3&quot;&gt;<br>          &lt;Phone className=&quot;w-5 h-5 text-blue-600 mt-0.5&quot; /&gt;<br>          &lt;div&gt;<br>            &lt;p className=&quot;font-medium text-gray-900&quot;&gt;Phone&lt;/p&gt;<br>            &lt;p className=&quot;text-gray-600&quot;&gt;+1 (555) 123-4567&lt;/p&gt;<br>          &lt;/div&gt;<br>        &lt;/div&gt;<br><br>        &lt;div className=&quot;flex items-start gap-3&quot;&gt;<br>          &lt;Mail className=&quot;w-5 h-5 text-blue-600 mt-0.5&quot; /&gt;<br>          &lt;div&gt;<br>            &lt;p className=&quot;font-medium text-gray-900&quot;&gt;Email&lt;/p&gt;<br>            &lt;p className=&quot;text-gray-600&quot;&gt;hello@company.com&lt;/p&gt;<br>          &lt;/div&gt;<br>        &lt;/div&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  );<br>}</pre><p>components/SocialLinks.tsx</p><pre>import { Facebook, Twitter, Linkedin, Instagram } from &#39;lucide-react&#39;;<br><br>export default function SocialLinks() {<br>  const socials = [<br>    { Icon: Facebook, label: &#39;Facebook&#39;, href: &#39;#&#39; },<br>    { Icon: Twitter, label: &#39;Twitter&#39;, href: &#39;#&#39; },<br>    { Icon: Linkedin, label: &#39;LinkedIn&#39;, href: &#39;#&#39; },<br>    { Icon: Instagram, label: &#39;Instagram&#39;, href: &#39;#&#39; },<br>  ];<br><br>  return (<br>    &lt;div className=&quot;flex gap-4&quot;&gt;<br>      {socials.map(({ Icon, label, href }) =&gt; (<br>        &lt;a<br>          key={label}<br>          href={href}<br>          aria-label={label}<br>          className=&quot;p-3 bg-gray-100 rounded-full hover:bg-blue-600 hover:text-white transition group&quot;<br>        &gt;<br>          &lt;Icon className=&quot;w-5 h-5 text-gray-700 group-hover:text-white&quot; /&gt;<br>        &lt;/a&gt;<br>      ))}<br>    &lt;/div&gt;<br>  );<br>}</pre><p>components/MapEmbed.tsx</p><pre>export default function MapEmbed() {<br>  return (<br>    &lt;div className=&quot;w-full h-64 md:h-80 rounded-lg overflow-hidden shadow-lg&quot;&gt;<br>      &lt;iframe<br>        src=&quot;https://www.google.com/maps/embed?pb=...&quot;<br>        width=&quot;100%&quot;<br>        height=&quot;100%&quot;<br>        style={{ border: 0 }}<br>        allowFullScreen<br>        loading=&quot;lazy&quot;<br>        referrerPolicy=&quot;no-referrer-when-downgrade&quot;<br>        title=&quot;Company Location&quot;<br>      /&gt;<br>    &lt;/div&gt;<br>  );<br>}<br></pre><pre>Tip: Generate the embed URL from Google Maps → Share → Embed a map.</pre><p><strong>3. The Contact Page (App Router)</strong><br> app/contact/page.tsx</p><pre>import ContactForm from &#39;@/components/ContactForm&#39;;<br>import ContactInfo from &#39;@/components/ContactInfo&#39;;<br>import SocialLinks from &#39;@/components/SocialLinks&#39;;<br>import MapEmbed from &#39;@/components/MapEmbed&#39;;<br><br>// ──────── SEO METADATA ────────<br>export const metadata = {<br>  title: &#39;Contact Us | Your Company Name&#39;,<br>  description:<br>    &#39;Get in touch with us! Send a message, call, or visit our office. We respond within 24 hours.&#39;,<br>  keywords:<br>    &#39;contact, support, reach out, customer service, Your Company Name&#39;,<br>  openGraph: {<br>    title: &#39;Contact Us | Your Company Name&#39;,<br>    description:<br>      &#39;We’d love to hear from you. Send us a message and we’ll respond as soon as possible.&#39;,<br>    url: &#39;https://www.yourwebsite.com/contact&#39;,<br>    siteName: &#39;Your Company Name&#39;,<br>    images: [<br>      {<br>        url: &#39;https://www.yourwebsite.com/og-contact.jpg&#39;,<br>        width: 1200,<br>        height: 630,<br>        alt: &#39;Contact Us – Your Company Name&#39;,<br>      },<br>    ],<br>    locale: &#39;en_US&#39;,<br>    type: &#39;website&#39;,<br>  },<br>  twitter: {<br>    card: &#39;summary_large_image&#39;,<br>    title: &#39;Contact Us | Your Company Name&#39;,<br>    description: &#39;Get in touch with us anytime!&#39;,<br>    images: [&#39;https://www.yourwebsite.com/og-contact.jpg&#39;],<br>  },<br>  robots: { index: true, follow: true },<br>  alternates: { canonical: &#39;https://www.yourwebsite.com/contact&#39; },<br>};<br><br>export default function ContactPage() {<br>  return (<br>    &lt;div className=&quot;min-h-screen bg-gray-50 py-12 px-4 sm:px-6 lg:px-8&quot;&gt;<br>      &lt;div className=&quot;max-w-7xl mx-auto&quot;&gt;<br>        {/* Hero */}<br>        &lt;div className=&quot;text-center mb-12&quot;&gt;<br>          &lt;h1 className=&quot;text-4xl font-bold text-gray-900 mb-4&quot;&gt;Contact Us&lt;/h1&gt;<br>          &lt;p className=&quot;text-lg text-gray-600 max-w-2xl mx-auto&quot;&gt;<br>            Have a question or want to work together? Fill out the form below and we&#39;ll get back to you.<br>          &lt;/p&gt;<br>        &lt;/div&gt;<br><br>        {/* Layout */}<br>        &lt;div className=&quot;grid grid-cols-1 lg:grid-cols-3 gap-8&quot;&gt;<br>          {/* Left column */}<br>          &lt;div className=&quot;lg:col-span-1 space-y-8&quot;&gt;<br>            &lt;ContactInfo /&gt;<br>            &lt;div&gt;<br>              &lt;h4 className=&quot;text-lg font-semibold text-gray-900 mb-4&quot;&gt;Follow Us&lt;/h4&gt;<br>              &lt;SocialLinks /&gt;<br>            &lt;/div&gt;<br>          &lt;/div&gt;<br><br>          {/* Right column – Form */}<br>          &lt;div className=&quot;lg:col-span-2 bg-white p-8 rounded-xl shadow-md&quot;&gt;<br>            &lt;ContactForm /&gt;<br>          &lt;/div&gt;<br>        &lt;/div&gt;<br><br>        {/* Optional Map */}<br>        &lt;div className=&quot;mt-12&quot;&gt;<br>          &lt;MapEmbed /&gt;<br>        &lt;/div&gt;<br><br>        {/* ──────── OPTIONAL JSON-LD ──────── */}<br>        &lt;script<br>          type=&quot;application/ld+json&quot;<br>          dangerouslySetInnerHTML={{<br>            __html: JSON.stringify({<br>              &#39;@context&#39;: &#39;https://schema.org&#39;,<br>              &#39;@type&#39;: &#39;ContactPage&#39;,<br>              name: &#39;Contact Us - Your Company Name&#39;,<br>              url: &#39;https://www.yourwebsite.com/contact&#39;,<br>              description:<br>                &#39;Contact form and information for Your Company Name&#39;,<br>              publisher: {<br>                &#39;@type&#39;: &#39;Organization&#39;,<br>                name: &#39;Your Company Name&#39;,<br>                logo: {<br>                  &#39;@type&#39;: &#39;ImageObject&#39;,<br>                  url: &#39;https://www.yourwebsite.com/logo.png&#39;,<br>                },<br>              },<br>            }),<br>          }}<br>        /&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  );<br>}</pre><p><strong>4. Pages-Router Alternative (if you’re not on App Router)</strong></p><pre>// pages/contact.tsx<br>import Head from &#39;next/head&#39;;<br>import { NextSeo } from &#39;next-seo&#39;;<br>import ContactForm from &#39;@/components/ContactForm&#39;;<br>import ContactInfo from &#39;@/components/ContactInfo&#39;;<br>import SocialLinks from &#39;@/components/SocialLinks&#39;;<br>import MapEmbed from &#39;@/components/MapEmbed&#39;;<br><br>export default function ContactPage() {<br>  const SEO = { /* same object as metadata above */ };<br><br>  return (<br>    &lt;&gt;<br>      &lt;NextSeo {...SEO} /&gt;<br>      &lt;Head&gt;<br>        &lt;meta name=&quot;keywords&quot; content=&quot;contact, support, ...&quot; /&gt;<br>        &lt;meta name=&quot;robots&quot; content=&quot;index, follow&quot; /&gt;<br>      &lt;/Head&gt;<br><br>      {/* ...same JSX as inside the App Router page... */}<br>    &lt;/&gt;<br>  );<br>}</pre><p><strong>5. Open Graph Image</strong><br> Create public/og-contact.jpg</p><p>Dimensions: 1200 × 630 px<br>Content: “Contact Us” + logo + subtle background<br>Tools: Canva, Figma, or Photoshop</p><p><em>That’s it! You now have a clean, component-based, fully SEO-optimized Contact Us page ready for production.</em></p><p><em>Originally published at </em><a href="https://dev.to/mina_golzari_dalir/build-a-modern-contact-us-page-with-nextjs-tailwind-css-component-based-seo-ready-3jc3"><em>https://dev.to</em></a><em> on November 8, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2323e837ef1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Next.js 16: A Deep Dive into Cache Components with Real-World Examples]]></title>
            <link>https://medium.com/@minagolzaridalir/next-js-16-a-deep-dive-into-cache-components-with-real-world-examples-6573abb87175?source=rss-f8f5503b053a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6573abb87175</guid>
            <dc:creator><![CDATA[Mina Golzari Dalir]]></dc:creator>
            <pubDate>Mon, 03 Nov 2025 15:03:38 GMT</pubDate>
            <atom:updated>2025-11-03T15:12:15.869Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*jXEyb8Je16k3ELUA.png" /></figure><p>Next.js 16 was released on October 21, 2025, and it’s not just another incremental update — it’s a paradigm shift in how we think about caching, performance, and developer experience in full-stack React apps.<br> One of the most powerful and practical new features? Cache Components — powered by React’s cache() and deeply integrated with Next.js&#39; Data Cache, Router Cache, and Partial Prerendering (PPR).<br> In this article, we&#39;ll go beyond the announcement and show you 5 real-world, production-ready examples of how Cache Components solve long-standing pain points - with before/after code, performance gains, and best practices.<br> Let&#39;s dive in.</p><ol><li><strong>Stop Duplicating Database Calls in Layouts &amp; Pages Problem (Before Next.js 16)</strong><br> You fetch the same data (e.g. user, announcements, nav items) in both layout.tsx and page.tsx.<br> Each awaittriggers a separate database or API call - even if the data is identical.</li></ol><pre>// app/layout.tsx<br>const announcements = await getAnnouncements(); // DB hit<br><br>// app/page.tsx<br>const announcements = await getAnnouncements(); // DB hit AGAIN</pre><p>Result: 2x queries, slower TTFB, wasted resources.</p><p><strong>Solution (Next.js 16 + cache)</strong><br> Wrap your data functions with cache() from React:</p><pre>// lib/cms.ts<br>import { cache } from &#39;react&#39;;<br><br>export const getAnnouncements = cache(async () =&gt; {<br>  const res = await fetch(&#39;https://cms.example.com/announcements&#39;, {<br>    next: { revalidate: 300 } // 5 min stale-while-revalidate<br>  });<br>  return res.json();<br>});</pre><p>Now use it anywhere:</p><pre>// app/layout.tsx<br>const announcements = await getAnnouncements(); // Cache miss → fetch<br><br>// app/page.tsx<br>const announcements = await getAnnouncements(); // Cache hit → instant</pre><p>Result: 1 DB call per request, even across nested components.<br> 50%+ reduction in database load.</p><p><strong>2. Eliminate Prop Drilling in Dashboards</strong></p><p><strong>Problem</strong><br> You fetch user, posts, and stats in a dashboard page and pass them down:</p><pre>&lt;Header user={user} /&gt;<br>&lt;Posts posts={posts} /&gt;<br>&lt;Stats stats={stats} /&gt;</pre><p>Manual prop drilling → fragile, hard to scale.</p><p><strong>Solution: Shared Cached Functions</strong></p><pre>// lib/data.ts<br>import { cache } from &#39;react&#39;;<br><br>export const getUser = cache(async (id: string) =&gt; {<br>  return await db.user.findUnique({ where: { id } });<br>});<br><br>export const getPosts = cache(async (userId: string) =&gt; {<br>  return await db.post.findMany({ where: { authorId: userId } });<br>});</pre><p>Use directly in any component:</p><pre>// app/dashboard/header.tsx<br>const user = await getUser(session.id); // Same cache key → shared<br><br>// app/dashboard/posts.tsx<br>const posts = await getPosts(session.id); // Reuses result!</pre><p>No prop drilling.<br> Same data, same cache key → automatic deduplication.</p><p><strong>3. Real-Time Widget? Opt Out of Caching Gracefully</strong><br> Not all data should be cached.<br><strong>Example: Live Stock Price</strong></p><pre>// lib/stock.ts<br>import { cache } from &#39;react&#39;;<br><br>export const getStockPrice = cache(async (symbol: string) =&gt; {<br>  const res = await fetch(`https://api.stock.com/${symbol}`, {<br>    cache: &#39;no-store&#39; // Always fresh<br>  });<br>  return res.json();<br>});</pre><pre>// components/StockWidget.tsx<br>const price = await getStockPrice(&#39;AAPL&#39;);<br>return &lt;div&gt;Live: ${price}&lt;/div&gt;;</pre><p>Still memoized per render pass (if used 3 times, only 1 fetch).<br> But never stored in Data Cache → always fresh.</p><p><strong>4. Hybrid Static + Dynamic Blog Posts</strong><br> Use generateStaticParamsfor top 10 posts, dynamic for the rest - with cached data.</p><pre>// lib/blog.ts<br>import { cache } from &#39;react&#39;;<br><br>export const getPost = cache(async (slug: string) =&gt; {<br>  return await db.post.findUnique({ where: { slug } });<br>});<br><br>export const getAllSlugs = cache(async () =&gt; {<br>  return (await db.post.findMany({ select: { slug: true } })).map(p =&gt; p.slug);<br>});</pre><pre>// app/blog/[slug]/page.tsx<br>export async function generateStaticParams() {<br>  const slugs = await getAllSlugs();<br>  return slugs.slice(0, 10).map(slug =&gt; ({ slug }));<br>}<br><br>export default async function Post({ params }) {<br>  const post = await getPost(params.slug); // Cached per slug<br>  return &lt;Article post={post} /&gt;;<br>}</pre><p>Top 10 posts: Built at deploy time → instant.<br> Others: On-demand, cached per slug.<br> All data functions: Reusable &amp; memoized.</p><p><strong>5. Cache Third-Party APIs (GraphQL, etc.) with </strong><strong>unstable_cache</strong><br>fetch isn&#39;t always an option.</p><p><strong>Example: GitHub GraphQL</strong></p><pre>// lib/github.ts<br>import { unstable_cache } from &#39;next/cache&#39;;<br><br>export const getRepos = unstable_cache(<br>  async (owner: string) =&gt; {<br>    const data = await request(<br>      &#39;https://api.github.com/graphql&#39;,<br>      `query { repositoryOwner(login: &quot;${owner}&quot;) { repositories(first: 10) { nodes { name } } } }`<br>    );<br>    return data.repositoryOwner.repositories.nodes;<br>  },<br>  (owner) =&gt; [`github-repos-${owner}`], // cache key<br>  { revalidate: 300, tags: [&#39;github&#39;] }<br>);</pre><pre>// app/repos/page.tsx<br>const repos = await getRepos(&#39;vercel&#39;);</pre><p>Invalidate with:</p><pre>revalidateTag(&#39;github&#39;)</pre><p><strong>Migration Tip: Upgrade Safely</strong></p><pre>npx @next/codemod@latest upgrade</pre><p>Then enable Cache Components:</p><pre>// next.config.ts<br>const nextConfig = {<br>  experimental: {<br>    cacheComponents: true,<br>  },<br>};</pre><p>No breaking changes — opt-in and gradual.</p><p><strong>Final Thoughts</strong><br> Cache Components aren’t just a new API — they’re a new mental model for building fast, scalable Next.js apps.</p><ul><li>No more prop drilling</li><li>No more duplicate fetches</li><li>No more guessing about caching</li><li>Explicit, predictable, and composable</li></ul><p>If you’re building with Next.js, upgrade to 16 today and start wrapping your data functions in cache().<br> Your users (and your database) will thank you.</p><p>Try it now: <a href="https://nextjs.org/blog/next-16">https://nextjs.org/blog/next-16</a><br>Docs: <a href="https://nextjs.org/docs/app/api-reference/functions/cache">https://nextjs.org/docs/app/api-reference/functions/cache</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6573abb87175" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fixing a Major Next.js Performance Bottleneck: From 3s SSR to 400ms]]></title>
            <link>https://medium.com/@minagolzaridalir/fixing-a-major-next-js-performance-bottleneck-from-3s-ssr-to-400ms-10866e77369d?source=rss-f8f5503b053a------2</link>
            <guid isPermaLink="false">https://medium.com/p/10866e77369d</guid>
            <dc:creator><![CDATA[Mina Golzari Dalir]]></dc:creator>
            <pubDate>Sat, 01 Nov 2025 08:34:12 GMT</pubDate>
            <atom:updated>2025-11-01T08:34:12.534Z</atom:updated>
            <content:encoded><![CDATA[<p>How I optimized Server-Side Rendering (SSR), hydration, and caching for a large-scale Next.js 14 project serving 50k+ dynamic pages.</p><h3>The Problem: Slow SSR on Dynamic Routes</h3><p>I was working on a <strong>Next.js 14</strong> application with thousands of dynamic routes like:</p><pre>/product/[id]</pre><p>Each route fetched product data (including categories and reviews) from PostgreSQL using Prisma ORM:</p><pre>export async function getServerSideProps({ params }) {<br>  const product = await db.products.findUnique({<br>    where: { id: params.id },<br>    include: { category: true, reviews: true },<br>  });<br><br>  return { props: { product } };<br>}</pre><p>Even though the database query was fast (~100 ms), the page load time reached <strong>2–3 seconds</strong>.<br> Profiling revealed the real issue wasn’t the query — it was <strong>Next.js SSR and hydration overhead</strong>.</p><h3>Understanding the Bottleneck</h3><p>Here’s what I discovered:</p><ol><li><strong>Large JSON serialization</strong> — getServerSideProps must serialize all props into HTML.</li><li><strong>Heavy client hydration</strong> — React rehydrates that large object tree after loading.</li><li><strong>Serverless cold starts</strong> — Vercel spins up a new instance for each SSR call.</li></ol><p>The result: even small inefficiencies multiplied across tens of thousands of pages.</p><h3>Step 1: Incremental Static Regeneration (ISR)</h3><p>Instead of SSR for every request, I switched to <strong>Incremental Static Regeneration</strong> with periodic revalidation:</p><pre>export async function getStaticProps({ params }) {<br>  const product = await db.products.findUnique({ where: { id: params.id } });<br>  return { props: { product }, revalidate: 60 }; // Revalidate every 60 seconds<br>}</pre><p><strong>Benefit:</strong> HTML is cached and instantly served while staying relatively fresh.<br> For frequent updates, I used <strong>on-demand revalidation</strong> when a product changed.</p><h3>Step 2: Reduce Over-Fetching</h3><p>Initially, I fetched full product details, categories, and reviews in one request.<br> This made the serialized payload unnecessarily large.</p><p>The fix: load only essential data on the server, then fetch reviews <strong>client-side</strong> using SWR.</p><pre>const { data: reviews } = useSWR(`/api/reviews/${id}`);</pre><p><strong>Result:</strong> The initial payload became much lighter, cutting both SSR and hydration times.</p><h3>Step 3: Use Server Components to Split Props</h3><p>Next.js 14’s <strong>Server Components</strong> made it easy to render heavy data server-side without sending it to the client.</p><pre>export default async function ProductPage({ params }) {<br>  const product = await getProduct(params.id);<br>  return (<br>    &lt;div&gt;<br>      &lt;ServerProductInfo product={product} /&gt;<br>      &lt;ClientReviews productId={params.id} /&gt; {/* Hydrated later */}<br>    &lt;/div&gt;<br>  );<br>}</pre><p><strong>Result:</strong> Large datasets stay server-side, dramatically reducing client hydration cost.</p><h3>Step 4: Cache Strategically</h3><p>Next.js offers unstable_cache, which lets you cache responses at the function level.</p><pre>import { unstable_cache } from &quot;next/cache&quot;;<br><br>export const getServerSideProps = unstable_cache(async ({ params }) =&gt; {<br>  const product = await db.products.findUnique({ where: { id: params.id } });<br>  return { props: { product } };<br>}, [&quot;product&quot;]);</pre><p>You can also integrate <strong>Redis</strong> or use <strong>Vercel Edge Caching</strong> for consistent, low-latency results.</p><p><strong>Result:</strong> Fewer redundant DB calls, faster TTFB, and reduced server load.</p><h3>Step 5: Measure Everything</h3><p>I measured the before-and-after results using:</p><ul><li><strong>React Profiler</strong> → Hydration performance</li><li><strong>Lighthouse</strong> → JavaScript execution time</li><li><strong>Vercel Analytics</strong> → Cold starts and TTFB</li></ul><p>Without data, it’s impossible to know which optimization made the real difference.</p><p><strong>Results After Optimization</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*kV0fPFhHmJAm2tI8EgS1BQ.png" /><figcaption>Results After Optimization</figcaption></figure><h3>Final Thoughts</h3><p>This experience taught me that Next.js performance isn’t just about <strong>faster queries</strong> — it’s about <strong>efficient rendering, smart caching, and minimal hydration</strong>.</p><p>By combining ISR, caching, and Server Components, I reduced page load times by more than <strong>85%</strong>, making even large-scale apps feel lightning-fast.</p><h3>Your Turn</h3><p>Have you faced similar SSR or hydration challenges in Next.js?<br> Share your experiences or strategies — I’d love to learn how other developers optimize large-scale React apps.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10866e77369d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Custom DTO Mapping in .NET Core: A Complete Guide]]></title>
            <link>https://medium.com/@minagolzaridalir/custom-dto-mapping-in-net-core-a-complete-guide-89e7d8f9224a?source=rss-f8f5503b053a------2</link>
            <guid isPermaLink="false">https://medium.com/p/89e7d8f9224a</guid>
            <category><![CDATA[aspnetcore]]></category>
            <category><![CDATA[automapper]]></category>
            <category><![CDATA[linq]]></category>
            <category><![CDATA[custom-mapping]]></category>
            <category><![CDATA[dto]]></category>
            <dc:creator><![CDATA[Mina Golzari Dalir]]></dc:creator>
            <pubDate>Wed, 29 Oct 2025 07:42:12 GMT</pubDate>
            <atom:updated>2025-10-29T07:42:12.184Z</atom:updated>
            <content:encoded><![CDATA[<h3>Custom DTO Mapping in .NET Core: A Complete Guide</h3><p>When building scalable APIs or microservices in <strong>.NET Core</strong>, one of the most important best practices is <strong>using DTOs (Data Transfer Objects)</strong>. They make your code cleaner, safer, and easier to maintain — especially when working with Entity Framework or returning data to your frontend.</p><p>In this article, we’ll explore what DTOs are, why they matter, and how to map them efficiently using different approaches — from simple manual mappings to professional tools like AutoMapper.</p><h3>What Is a DTO?</h3><p>A <strong>DTO (Data Transfer Object)</strong> is a lightweight object used to transfer data between layers — for example, from your database entity to your API response.</p><p>DTOs help you:</p><ul><li>Prevent exposing internal domain models directly to the client.</li><li>Simplify or flatten complex data structures.</li><li>Send only necessary data to improve performance.</li><li>Enforce data consistency and validation.</li></ul><p>Here’s a simple example:</p><pre>// Entity (database model)<br>public class User<br>{<br>    public int Id { get; set; }<br>    public string FullName { get; set; }<br>    public string Email { get; set; }<br>    public DateTime CreatedAt { get; set; }<br>    public ICollection&lt;Order&gt; Orders { get; set; }<br>}<br><br>// DTO (API response)<br>public class UserDto<br>{<br>    public int Id { get; set; }<br>    public string Name { get; set; }   // mapped from FullName<br>    public string Email { get; set; }<br>    public int OrderCount { get; set; } // computed value<br>}</pre><h3>1. Manual Mapping (Custom Logic)</h3><p>The most straightforward method is to map entities to DTOs manually.<br> You have full control over how data is transformed.</p><pre>public static class UserMapper<br>{<br>    public static UserDto ToDto(this User user)<br>    {<br>        return new UserDto<br>        {<br>            Id = user.Id,<br>            Name = user.FullName,<br>            Email = user.Email,<br>            OrderCount = user.Orders?.Count ?? 0<br>        };<br>    }<br>}</pre><p>Usage:</p><pre>var userDto = user.ToDto();</pre><p>✅ <strong>Pros</strong></p><ul><li>Full control and transparency.</li><li>No external dependencies.</li></ul><p>❌ <strong>Cons</strong></p><ul><li>Becomes repetitive for large models.</li><li>Harder to maintain in big projects.</li></ul><h3>2. AutoMapper (Recommended for Scalable Projects)</h3><p>If you want cleaner, reusable mapping with minimal boilerplate, <strong>AutoMapper</strong> is your friend.</p><h3>Step 1: Install AutoMapper</h3><pre>dotnet add package AutoMapper.Extensions.Microsoft.DependencyInjection</pre><h3><strong>Step 2: Create a Mapping Profile</strong></h3><pre>using AutoMapper;<br><br>public class MappingProfile : Profile<br>{<br>    public MappingProfile()<br>    {<br>        CreateMap&lt;User, UserDto&gt;()<br>            .ForMember(dest =&gt; dest.Name, opt =&gt; opt.MapFrom(src =&gt; src.FullName))<br>            .ForMember(dest =&gt; dest.OrderCount, opt =&gt; opt.MapFrom(src =&gt; src.Orders.Count));<br>    }<br>}</pre><h3>Step 3: Register AutoMapper</h3><p>In your Program.cs:</p><pre>builder.Services.AddAutoMapper(typeof(Program));</pre><h3>Step 4: Use AutoMapper in Your Service or Controller</h3><pre>public class UserService<br>{<br>    private readonly IMapper _mapper;<br>    private readonly AppDbContext _context;<br><br>    public UserService(IMapper mapper, AppDbContext context)<br>    {<br>        _mapper = mapper;<br>        _context = context;<br>    }<br><br>    public async Task&lt;IEnumerable&lt;UserDto&gt;&gt; GetUsersAsync()<br>    {<br>        var users = await _context.Users.Include(u =&gt; u.Orders).ToListAsync();<br>        return _mapper.Map&lt;IEnumerable&lt;UserDto&gt;&gt;(users);<br>    }<br>}</pre><p>✅ <strong>Pros</strong></p><ul><li>Elegant and maintainable.</li><li>Perfect for large-scale or enterprise apps.</li></ul><p>❌ <strong>Cons</strong></p><ul><li>Slight learning curve.</li><li>Less flexibility for complex computed mappings (but extendable).</li></ul><h3>3. LINQ Projection (The Performance Champion)</h3><p>If your goal is <strong>maximum performance</strong>, you can directly project entities into DTOs using LINQ — no need to load entire objects into memory.</p><pre>var users = await _context.Users<br>    .Select(u =&gt; new UserDto<br>    {<br>        Id = u.Id,<br>        Name = u.FullName,<br>        Email = u.Email,<br>        OrderCount = u.Orders.Count<br>    })<br>    .ToListAsync();</pre><p>✅ <strong>Pros</strong></p><ul><li>Efficient — fetches only required fields.</li><li>No need for additional libraries.</li></ul><p>❌ <strong>Cons</strong></p><ul><li>Manual and repetitive.</li><li>Harder to reuse across different services.</li></ul><h3>Bonus: AutoMapper + EF Core Projection</h3><p>You can combine the best of both worlds: AutoMapper’s clarity and EF Core’s efficiency.</p><pre>var users = await _context.Users<br>    .ProjectTo&lt;UserDto&gt;(_mapper.ConfigurationProvider)<br>    .ToListAsync();</pre><p>This way, AutoMapper handles the mapping configuration, while EF Core only fetches the necessary columns from the database — super clean and fast.</p><h3>Final Thoughts</h3><p>Using <strong>DTOs</strong> is a hallmark of clean architecture in .NET Core applications. Whether you choose manual mapping for simplicity, AutoMapper for scalability, or LINQ projections for performance — what matters is <strong>consistency and clarity</strong> in your codebase.</p><p>If you’re building APIs, always separate your data models from your presentation models. Your future self (and your teammates) will thank you.</p><p><em>If you found this article helpful, consider following me for more practical .NET tips, clean architecture patterns, and real-world examples from backend development.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89e7d8f9224a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering SQL: Common Challenges and How to Overcome Them]]></title>
            <link>https://medium.com/@minagolzaridalir/mastering-sql-common-challenges-and-how-to-overcome-them-8fcaecdc59bb?source=rss-f8f5503b053a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8fcaecdc59bb</guid>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[query]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[challenge]]></category>
            <category><![CDATA[performance]]></category>
            <dc:creator><![CDATA[Mina Golzari Dalir]]></dc:creator>
            <pubDate>Mon, 27 Oct 2025 15:45:21 GMT</pubDate>
            <atom:updated>2025-10-27T15:45:21.260Z</atom:updated>
            <content:encoded><![CDATA[<p>Structured Query Language (SQL) is at the heart of data-driven applications, yet even experienced developers often struggle with common pitfalls. Below, we explore key SQL challenges and demonstrate <strong>wrong vs correct implementations</strong> for each, emphasizing best practices in <strong>query writing, database design, performance, and integrity</strong>.</p><h3>1. Writing Efficient Queries</h3><p><strong>Wrong Example (inefficient query):</strong></p><pre>-- Selects all columns, filters later, performs full table scan<br>SELECT * <br>FROM Orders<br>WHERE OrderDate &gt;= &#39;2025-01-01&#39;;</pre><p><strong>Why it’s wrong:</strong></p><ul><li>SELECT * retrieves unnecessary columns.</li><li>Filtering could benefit from indexing.</li></ul><p><strong>Correct Example:</strong></p><pre>-- Select only necessary columns, using index-friendly filter<br>SELECT OrderID, CustomerID, OrderDate<br>FROM Orders<br>WHERE OrderDate &gt;= &#39;2025-01-01&#39;;</pre><p><strong>Tip:</strong> Always specify required columns, leverage indexes, and filter early.</p><h3>2. Understanding Indexing Strategies</h3><p><strong>Wrong Example (no indexes on a frequently queried column):</strong></p><pre>-- Searching on CustomerID repeatedly, but column is not indexed<br>SELECT * <br>FROM Orders<br>WHERE CustomerID = 102;</pre><p><strong>Correct Example:</strong></p><pre>-- Create an index for better query performance<br>CREATE INDEX idx_customerid ON Orders(CustomerID);<br><br>SELECT OrderID, OrderDate<br>FROM Orders<br>WHERE CustomerID = 102;</pre><p><strong>Tip:</strong> Index high-frequency query columns but avoid over-indexing, which slows inserts.</p><h3>3. Ensuring Data Integrity and Normalization</h3><p><strong>Wrong Example (denormalized, redundant data):</strong></p><pre>-- Storing customer and order info in a single table<br>CREATE TABLE Orders (<br>    OrderID INT PRIMARY KEY,<br>    CustomerName VARCHAR(100),<br>    CustomerEmail VARCHAR(100),<br>    ProductID INT,<br>    ProductName VARCHAR(100),<br>    Quantity INT<br>);</pre><p><strong>Correct Example (normalized):</strong></p><pre>CREATE TABLE Customers (<br>    CustomerID INT PRIMARY KEY,<br>    Name VARCHAR(100),<br>    Email VARCHAR(100)<br>);<br><br>CREATE TABLE Orders (<br>    OrderID INT PRIMARY KEY,<br>    CustomerID INT,<br>    ProductID INT,<br>    Quantity INT,<br>    FOREIGN KEY (CustomerID) REFERENCES Customers(CustomerID)<br>);</pre><p><strong>Tip:</strong> Follow <strong>3NF normalization</strong>, enforce relationships with foreign keys, and minimize redundancy.</p><h3>4. Managing Transactions and Concurrency</h3><p><strong>Wrong Example (no transaction control, risk of partial updates):</strong></p><pre>-- Deduct stock and insert order without transaction<br>UPDATE Products SET Stock = Stock - 1 WHERE ProductID = 101;<br>INSERT INTO Orders (OrderID, CustomerID, ProductID) VALUES (1, 10, 101);</pre><p><strong>Correct Example:</strong></p><pre>BEGIN TRANSACTION;<br><br>UPDATE Products <br>SET Stock = Stock - 1 <br>WHERE ProductID = 101;<br><br>INSERT INTO Orders (OrderID, CustomerID, ProductID) <br>VALUES (1, 10, 101);<br><br>COMMIT TRANSACTION;</pre><p><strong>Tip:</strong> Use transactions for multi-step operations to maintain consistency and prevent partial updates.</p><h3>5. Designing for Scalability and Growth</h3><p><strong>Wrong Example (single large table, no partitioning):</strong></p><pre>-- Table with millions of rows, single monolithic structure<br>CREATE TABLE Logs (<br>    LogID INT PRIMARY KEY,<br>    Event VARCHAR(255),<br>    CreatedAt DATETIME<br>);</pre><p><strong>Correct Example (partitioning by month):</strong></p><pre>-- Partitioned table for better query performance<br>CREATE TABLE Logs (<br>    LogID INT,<br>    Event VARCHAR(255),<br>    CreatedAt DATETIME<br>)<br>PARTITION BY RANGE (YEAR(CreatedAt) * 100 + MONTH(CreatedAt)) (<br>    PARTITION p202501 VALUES LESS THAN (202502),<br>    PARTITION p202502 VALUES LESS THAN (202503)<br>);</pre><p><strong>Tip:</strong> Use <strong>partitioning or sharding</strong> for very large tables to improve performance and maintenance.</p><h3>6. Maintaining Data Security and Access Control</h3><p><strong>Wrong Example (dynamic SQL, vulnerable to injection):</strong></p><pre>-- Unsafe string concatenation<br>EXEC(&#39;SELECT * FROM Users WHERE Username = &#39;&#39;&#39; + @username + &#39;&#39;&#39;&#39;);</pre><p><strong>Correct Example (parameterized query):</strong></p><pre>-- Safe parameterized query<br>SELECT * <br>FROM Users<br>WHERE Username = @username;</pre><p><strong>Tip:</strong> Always <strong>parameterize queries</strong>, restrict roles, and encrypt sensitive data.</p><h3>7. Querying Complex Relationships</h3><p><strong>Wrong Example (nested subqueries, hard to read and slow):</strong></p><pre>SELECT *<br>FROM Orders<br>WHERE CustomerID IN (<br>    SELECT CustomerID <br>    FROM Customers <br>    WHERE Country = &#39;USA&#39;<br>);</pre><p><strong>Correct Example (using JOIN for clarity and performance):</strong></p><pre>SELECT o.OrderID, o.OrderDate, c.Name<br>FROM Orders o<br>JOIN Customers c ON o.CustomerID = c.CustomerID<br>WHERE c.Country = &#39;USA&#39;;</pre><p><strong>Tip:</strong> Prefer <strong>JOINs</strong> over nested subqueries for readability and efficiency.</p><h3>Final Thoughts</h3><p>Mastering SQL requires more than memorizing syntax; it’s about <strong>writing efficient, secure, and maintainable queries</strong>, designing scalable databases, and thinking like the engine that executes your code. By understanding common mistakes and applying professional best practices, developers can ensure high-performing applications that scale gracefully and remain robust under real-world demands.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8fcaecdc59bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>