<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ADITYA DUTT PANDEY</title>
    <description>The latest articles on DEV Community by ADITYA DUTT PANDEY (@aditya_duttpandey_b33d2c).</description>
    <link>https://dev.to/aditya_duttpandey_b33d2c</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2062508%2F615d3947-ff52-4092-a6d4-8c945494586d.jpg</url>
      <title>DEV Community: ADITYA DUTT PANDEY</title>
      <link>https://dev.to/aditya_duttpandey_b33d2c</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aditya_duttpandey_b33d2c"/>
    <language>en</language>
    <item>
      <title>Why Planning a Project Is the Most Important Aspect of Building</title>
      <dc:creator>ADITYA DUTT PANDEY</dc:creator>
      <pubDate>Wed, 02 Jul 2025 18:33:54 +0000</pubDate>
      <link>https://dev.to/aditya_duttpandey_b33d2c/why-planning-a-project-is-the-most-important-aspect-of-building-269b</link>
      <guid>https://dev.to/aditya_duttpandey_b33d2c/why-planning-a-project-is-the-most-important-aspect-of-building-269b</guid>
      <description>&lt;p&gt;I recently set out to build an &lt;strong&gt;E-commerce platform&lt;/strong&gt; using a &lt;strong&gt;Microservice Architecture&lt;/strong&gt;. With a decent level of experience, I figured I could move fast: define a high-level plan, get help refining it, and dive straight into implementation.&lt;/p&gt;

&lt;p&gt;To speed things up, I shared my initial ideas—workflow, database schema, and API routes—with GPT, got a refined version, and started building based on that.&lt;/p&gt;

&lt;p&gt;In hindsight, this approach taught me a lesson I didn’t expect to learn at this stage of my career: &lt;strong&gt;no matter how experienced you are, skipping proper planning will come back to haunt you.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Where Things Started to Fall Apart
&lt;/h2&gt;

&lt;p&gt;After jumping into implementation, I began to realize that the schema I was working with had &lt;strong&gt;several gaps&lt;/strong&gt;. Things looked good at first glance, but I hadn’t accounted for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Edge cases&lt;/li&gt;
&lt;li&gt;Data integrity constraints&lt;/li&gt;
&lt;li&gt;API request/response inconsistencies&lt;/li&gt;
&lt;li&gt;System-wide failure handling&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As I began to handle these situations, I needed to &lt;strong&gt;redesign the schema multiple times&lt;/strong&gt;, and every time I did, it started breaking the previously built routes and services. I was using &lt;strong&gt;Bruno&lt;/strong&gt; to test the APIs, and it became clear that things weren’t as stable as I thought.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Domino Effect of Midway Changes
&lt;/h2&gt;

&lt;p&gt;Once the BFF (Backend for Frontend) layer was complete, I moved on to building the frontend. That’s when I hit another wall.&lt;/p&gt;

&lt;p&gt;New frontend requirements led to additional changes in the schema and logic, which again caused issues in the routes and services I had already implemented. The &lt;strong&gt;lack of a stable contract&lt;/strong&gt; between services and layers became a real bottleneck.&lt;/p&gt;

&lt;p&gt;The deeper I went, the more everything started feeling like a Jenga tower—one change, and things would start to collapse.&lt;/p&gt;




&lt;h2&gt;
  
  
  Key Lessons Learned
&lt;/h2&gt;

&lt;p&gt;This experience forced me to take a step back and reflect. Here's what I took away from this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🧠 &lt;strong&gt;Plan extensively before implementation&lt;/strong&gt;: Even if it delays coding by a week, it's worth it.&lt;/li&gt;
&lt;li&gt;🧩 &lt;strong&gt;Model your schema based on actual business logic&lt;/strong&gt;, not assumptions or third-party suggestions.&lt;/li&gt;
&lt;li&gt;🔄 &lt;strong&gt;Version and document your APIs early&lt;/strong&gt; to prevent regression from breaking existing services.&lt;/li&gt;
&lt;li&gt;🧪 &lt;strong&gt;Validate your design&lt;/strong&gt; against use cases before committing to it—mock flows, simulate errors, think long-term.&lt;/li&gt;
&lt;li&gt;🛑 &lt;strong&gt;Don’t depend entirely on tools (or even AI) for architectural decisions&lt;/strong&gt;—they're great support systems, not decision-makers.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  The Role of an SDE II Isn't Just to Build—It's to Architect
&lt;/h2&gt;

&lt;p&gt;At the SDE II level, you're expected to think beyond writing clean code. You're responsible for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;System design decisions&lt;/li&gt;
&lt;li&gt;Long-term maintainability&lt;/li&gt;
&lt;li&gt;Collaboration between services&lt;/li&gt;
&lt;li&gt;Edge case handling&lt;/li&gt;
&lt;li&gt;Ensuring that your implementation scales with the product&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This project reminded me that &lt;strong&gt;being effective means slowing down when it matters&lt;/strong&gt;. Rushing into code may feel productive at first, but without proper planning, it creates long-term technical debt.&lt;/p&gt;




&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;I still love building things fast, but now I do it differently.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Spend more time on schema modeling&lt;/li&gt;
&lt;li&gt;Write down API contracts&lt;/li&gt;
&lt;li&gt;Think through edge cases and fallback scenarios&lt;/li&gt;
&lt;li&gt;Collaborate with teammates early to identify potential blockers&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're at a similar stage in your engineering journey—or even just starting out—&lt;strong&gt;treat planning as an engineering discipline&lt;/strong&gt;. The time you spend upfront will pay off tenfold during implementation.&lt;/p&gt;

&lt;p&gt;Thanks for reading. If you've had a similar experience (or a completely different one), I’d love to hear your thoughts in the comments.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Why using Turborepo in a MicroServices architecture</title>
      <dc:creator>ADITYA DUTT PANDEY</dc:creator>
      <pubDate>Mon, 30 Jun 2025 14:50:57 +0000</pubDate>
      <link>https://dev.to/aditya_duttpandey_b33d2c/why-using-turborepo-in-a-microservices-architecture-1l0k</link>
      <guid>https://dev.to/aditya_duttpandey_b33d2c/why-using-turborepo-in-a-microservices-architecture-1l0k</guid>
      <description>&lt;p&gt;Though it may feel counterintuitive at first, using &lt;strong&gt;TurboRepo&lt;/strong&gt; in a &lt;strong&gt;microservices system&lt;/strong&gt; begins to make a lot of sense when you consider the &lt;strong&gt;valid and strategic advantages&lt;/strong&gt; it brings.&lt;/p&gt;




&lt;h2&gt;
  
  
  Key Benefits
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Monorepo with Microservices: Structure with Flexibility
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Monorepo + Microservices = Shared code + Independent services&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;TurboRepo supports a &lt;strong&gt;monorepo architecture&lt;/strong&gt; where each microservice remains logically independent.&lt;/li&gt;
&lt;li&gt;This works particularly well for &lt;strong&gt;internal microservices&lt;/strong&gt; developed and maintained by a single team or organization.&lt;/li&gt;
&lt;li&gt;Not ideal for third-party or externally hosted services, but excellent for &lt;strong&gt;cohesive systems&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  2. Shared Code and Libraries
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Extract common logic into reusable packages (e.g., in the &lt;code&gt;/packages&lt;/code&gt; folder).&lt;/li&gt;
&lt;li&gt;Avoid duplication across microservices.&lt;/li&gt;
&lt;li&gt;Ensure updates and fixes to shared libraries are automatically reflected across all consuming services.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example shared packages:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;packages/
  auth-lib/       # Shared authentication logic
  config-utils/   # Common configuration tools
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  3. Consistent Tooling Across Services
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Use a &lt;strong&gt;unified configuration&lt;/strong&gt; for tools like ESLint, Prettier, and TypeScript across all services.&lt;/li&gt;
&lt;li&gt;Manage dependencies via &lt;strong&gt;&lt;code&gt;pnpm&lt;/code&gt;&lt;/strong&gt; or &lt;strong&gt;Yarn workspaces&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Enforce best practices and streamline onboarding for new developers.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  4. Incremental Builds and Caching
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;TurboRepo provides &lt;strong&gt;smart caching&lt;/strong&gt; of build artifacts.&lt;/li&gt;
&lt;li&gt;Supports &lt;strong&gt;incremental builds&lt;/strong&gt;—only rebuilds packages/services that have changed.&lt;/li&gt;
&lt;li&gt;Use &lt;strong&gt;remote caching&lt;/strong&gt; (e.g., with Vercel) to speed up CI/CD across machines and teams.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Saves &lt;strong&gt;time and compute&lt;/strong&gt; in both local dev and CI environments.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h3&gt;
  
  
  5. Improved Developer Experience (DX)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Use scoped commands like:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;  turbo run &lt;span class="nb"&gt;test&lt;/span&gt; &lt;span class="nt"&gt;--filter&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;payment-service
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Run, build, or test &lt;strong&gt;only the affected services&lt;/strong&gt; or packages.&lt;/li&gt;
&lt;li&gt;CI pipelines are significantly faster due to &lt;strong&gt;parallel execution and caching&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Local development becomes easier with &lt;strong&gt;co-located code and utilities&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Recommended Project Structure
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;apps/
  api-gateway/       &lt;span class="c"&gt;# API gateway or BFF layer&lt;/span&gt;
&lt;span class="o"&gt;![&lt;/span&gt;Image description]&lt;span class="o"&gt;(&lt;/span&gt;https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3og7rldz2dwtsr0fz63n.jpg&lt;span class="o"&gt;)&lt;/span&gt;
  web-app/           &lt;span class="c"&gt;# Frontend web application&lt;/span&gt;
  mobile-app/        &lt;span class="c"&gt;# Mobile frontend (React Native, Flutter, etc.)&lt;/span&gt;

packages/
  auth-lib/          &lt;span class="c"&gt;# Shared authentication logic&lt;/span&gt;
  config-utils/      &lt;span class="c"&gt;# Common config/environment utilities&lt;/span&gt;

services/
  user-service/          &lt;span class="c"&gt;# Microservice for user management&lt;/span&gt;
  payment-service/       &lt;span class="c"&gt;# Microservice for payments&lt;/span&gt;
  notification-service/  &lt;span class="c"&gt;# Microservice for sending notifications&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  When Does It Make the Most Sense?
&lt;/h2&gt;

&lt;p&gt;Using TurboRepo for microservices is ideal when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You have &lt;strong&gt;closely related services&lt;/strong&gt; developed in parallel.&lt;/li&gt;
&lt;li&gt;Your services are &lt;strong&gt;internally deployed&lt;/strong&gt; or tightly coupled in purpose.&lt;/li&gt;
&lt;li&gt;You want to &lt;strong&gt;share code, config, and tools&lt;/strong&gt; across services.&lt;/li&gt;
&lt;li&gt;You need &lt;strong&gt;fast, intelligent CI/CD pipelines&lt;/strong&gt; and optimized builds.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>programming</category>
      <category>microservices</category>
      <category>turborepo</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
