<?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 Fuad on Medium]]></title>
        <description><![CDATA[Stories by Fuad on Medium]]></description>
        <link>https://medium.com/@fuadmuhtasim?source=rss-5d190bb2fa92------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hHRXydGLdds_cQH1t8CZ_Q.png</url>
            <title>Stories by Fuad on Medium</title>
            <link>https://medium.com/@fuadmuhtasim?source=rss-5d190bb2fa92------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 05:35:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fuadmuhtasim/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[Series: Microservices Patterns]]></title>
            <link>https://medium.com/@fuadmuhtasim/series-microservices-patterns-9735cb9f4483?source=rss-5d190bb2fa92------2</link>
            <guid isPermaLink="false">https://medium.com/p/9735cb9f4483</guid>
            <category><![CDATA[microservice-architecture]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[junior-software-engineer]]></category>
            <category><![CDATA[microservices-pattern]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Fuad]]></dc:creator>
            <pubDate>Tue, 08 Oct 2024 07:56:24 GMT</pubDate>
            <atom:updated>2024-10-08T08:08:56.406Z</atom:updated>
            <content:encoded><![CDATA[<h4>Part 1: The Simplest Aggregator Pattern</h4><h3>(1) Let’s Talk About the Aggregator Pattern 🛠️</h3><figure><img alt="Software Engineers standing on top of each other" src="https://cdn-images-1.medium.com/max/1024/1*6CKsput76-3S_ywpOLUo2Q.png" /></figure><h4>First, a quick personal update: ⏳</h4><p>The Developer Collective is currently a bit behind schedule due to the on-going <strong>midterm season</strong>. Since so much of my work depends on team progress, I had to pause.</p><p>On the bright side though, it has cleared out my schedule for other things. Since our team has been primarily focused on a microservices architecture, (watch <a href="https://www.youtube.com/watch?v=rVBtZH8vB9E&amp;ab_channel=NeetCodeIO">this</a> to figure the limitations of microservices) I have been spending time learning microservice design patterns to improve our codebase management. I wanted to share my findings with you.</p><p><strong>Let’s talk about the Aggregator Pattern today?</strong></p><p>The <strong>Aggregator Pattern</strong> is to manage the challenge of aggregating data from multiple services into a single response. This pattern is especially useful when multiple microservices are responsible for different parts of a request, and we want to combine their responses into one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hsJzE355vA-fmg6qI16F3Q.png" /></figure><h4>How It Works: ⚙️</h4><p>A service acts as an intermediary, gathering data from multiple services, performing any necessary processing, and then returning a unified response to the client. It handles the logic to combine the data.</p><p><strong>Advantages</strong>:</p><ul><li>Simplifies the client’s interaction by hiding the complexity of calling multiple microservices.</li><li>Reduces the number of requests a client must make.</li><li>The aggregator can handle error management or retries for failed services.</li></ul><p><strong>Example Use Case:</strong></p><p>Imagine an e-commerce site where the client needs details about a product (description, pricing, availability, etc.), and each of these details is provided by separate microservices. Instead of the client making three separate API calls, it makes one call to the aggregator, which fetches data from each of these services and returns a combined result.</p><p><strong>We will try to emulate a simplified E-commerce backend as such using Express.js</strong></p><blockquote>(Note: If you do not have an understanding of Javascript frameworks please feel free to read my precious articles that go much more in-depth to explain microservices concepts using Express.js!)</blockquote><h3>(2) Simplest Demo using Express.js 🚀</h3><p>Let’s create a simple demo in Express.js where we use the <strong>Aggregator Pattern</strong> to combine data from two microservices.</p><p>Let’s assume that the two services are:</p><ol><li><strong>User Service</strong>: Provides user information. 🧑‍💼</li><li><strong>Order Service</strong>: Provides a list of user orders. 📜</li></ol><p>The Aggregator will collect data from both services and return a unified response.</p><h4>General Procedure:</h4><p><strong>Create the Aggregator Service</strong>: 🔄</p><ul><li>This will call both the User Service and Order Service.</li><li>We’ll use axios to make HTTP requests to the microservices.</li></ul><p><strong>Create User Service</strong>: 🧑‍💼</p><ul><li>Returns user details (name, email).</li></ul><p><strong>Create Order Service</strong>: 📜</p><ul><li>Returns a list of orders for the user.</li></ul><h4>Coding Section: 💻</h4><p><strong>Step 1 | Setting Up the Aggregator with Express.js<br></strong>First, install the dependencies using the terminal:</p><pre>npm init -y<br>npm install express axios</pre><p><strong>Step 2 | Aggregator Service (Aggregator Pattern) Code</strong></p><pre>const express = require(&#39;express&#39;);<br>const axios = require(&#39;axios&#39;);<br>const app = express();<br>const port = 3000;<br><br>// Mock services URLs (you can replace them with actual services)<br>const USER_SERVICE_URL = &#39;http://localhost:3001/user&#39;;<br>const ORDER_SERVICE_URL = &#39;http://localhost:3002/orders&#39;;<br><br>// Aggregator Route<br>app.get(&#39;/user-orders&#39;, async (req, res) =&gt; {<br>    try {<br>        // Fetch user data and orders in parallel<br>        const [userResponse, ordersResponse] = await Promise.all([<br>            axios.get(USER_SERVICE_URL),<br>            axios.get(ORDER_SERVICE_URL)<br>        ]);<br><br>        // Combine the responses<br>        const aggregatedResponse = {<br>            user: userResponse.data,<br>            orders: ordersResponse.data<br>        };<br><br>        res.json(aggregatedResponse);<br>    } catch (error) {<br>        console.error(&#39;Error fetching data from services:&#39;, error);<br>        res.status(500).send(&#39;Failed to fetch data from services&#39;);<br>    }<br>});<br><br>app.listen(port, () =&gt; {<br>    console.log(`Aggregator running on http://localhost:${port}`);<br>});</pre><p><strong>Step 3 | User Service</strong></p><pre>const express = require(&#39;express&#39;);<br>const app = express();<br>const port = 3001;<br>// You can use a separate database for user-service to get data from it<br>app.get(&#39;/user&#39;, (req, res) =&gt; {<br>    res.json({<br>        id: 1,<br>        name: &#39;John Doe&#39;,<br>        email: &#39;john.doe@example.com&#39;<br>    });<br>});<br><br>app.listen(port, () =&gt; {<br>    console.log(`User service running on http://localhost:${port}`);<br>});</pre><p><strong>Step 4 | Order Service</strong></p><pre>const express = require(&#39;express&#39;);<br>const app = express();<br>const port = 3002;<br>// You can use a separate database for user-service to get data from it<br>app.get(&#39;/orders&#39;, (req, res) =&gt; {<br>    res.json([<br>        { id: 101, item: &#39;Laptop&#39;, quantity: 1 },<br>        { id: 102, item: &#39;Phone&#39;, quantity: 2 }<br>    ]);<br>});<br><br>app.listen(port, () =&gt; {<br>    console.log(`Order service running on http://localhost:${port}`);<br>});</pre><h4>Running the demo 🎉</h4><p>We need to run each service separately. Do it by using the following commands in your terminal.</p><pre>node user-service.js<br>node order-service.js<br>node aggregator.js</pre><p>Visit the aggregator endpoint now in your browser</p><pre>http://localhost:3000/user-orders</pre><p>The result should be a combined response as such:</p><pre>{<br>    &quot;user&quot;: {<br>        &quot;id&quot;: 1,<br>        &quot;name&quot;: &quot;John Doe&quot;,<br>        &quot;email&quot;: &quot;john.doe@example.com&quot;<br>    },<br>    &quot;orders&quot;: [<br>        { &quot;id&quot;: 101, &quot;item&quot;: &quot;Laptop&quot;, &quot;quantity&quot;: 1 },<br>        { &quot;id&quot;: 102, &quot;item&quot;: &quot;Phone&quot;, &quot;quantity&quot;: 2 }<br>    ]<br>}</pre><h3>(3) Summary 💡</h3><p>The <strong>Aggregator Pattern</strong> simplifies the client’s interaction by aggregating data from multiple services into a single response. This demo using <strong>Express.js</strong> showcases how to implement the pattern using mock services, but it can easily be extended to real microservices in a production environment.</p><p>And now, just like that, you know what the aggregator pattern is!<br>Happy coding.</p><h4>Follow my Software Dev Journey on Linkedin: 💬🖇️</h4><p><a href="https://www.linkedin.com/in/fmuhtasim/">https://www.linkedin.com/in/fmuhtasim/</a><br>Interested in joining the Developer Collective? Let’s talk!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9735cb9f4483" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Make Life Easier for your Team: by using MVC]]></title>
            <link>https://medium.com/@fuadmuhtasim/make-life-easier-for-your-team-by-using-mvc-779f90881fa8?source=rss-5d190bb2fa92------2</link>
            <guid isPermaLink="false">https://medium.com/p/779f90881fa8</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[mvc]]></category>
            <dc:creator><![CDATA[Fuad]]></dc:creator>
            <pubDate>Wed, 25 Sep 2024 03:27:32 GMT</pubDate>
            <atom:updated>2024-09-25T03:27:32.010Z</atom:updated>
            <content:encoded><![CDATA[<h4>The Simplest Introduction to the MVC Design Pattern 😚</h4><h3>A little introduction + personal story 🤓</h3><p>I have been doing a lot of web development lately using React.js, Express.js, and using PostgreSQL for handling backend databases.</p><blockquote>What have you been up to this summer? Tell me more<a href="https://www.linkedin.com/in/fmuhtasim/"> here!</a> I’d love to get to know more developers!</blockquote><p>Coming back to the point, if you are familiar with those technologies, you will very quickly understand how cluttered a project file becomes. If I were working on my own, that would be fine. But since now I work with this <strong>awesome</strong> team of developers that I have assembled (The Developer Collective), I must write neat and awesome code. I have started using an MVC approach to handling most of the codebase. The team understands the code structure easier leading to better documentation and we are all making good progress.</p><p><strong>Let me help you get on this progress boat too and sail into the sunset!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_4r5kMKOJrt49R3J6wUL3g.png" /></figure><h3><strong>But what is this MVC thing? </strong>🧐</h3><p>Well, MVC is a design pattern that organizes an application’s logic into three distinct parts: (i) the <strong>M</strong>odel (ii) the <strong>V</strong>iew (iii) and the <strong>C</strong>ontroller.</p><ol><li><strong>Model </strong>🧩: This is responsible for managing the data and business logic. It interacts with the database or other data sources and handles the core logic behind your application.</li><li><strong>View </strong>👁️: The view is what the user sees — it’s the user interface. It displays the data provided by the model in response to user actions.</li><li><strong>Controller </strong>🎮: The controller is responsible for handling incoming requests, processing them (often by interacting with the model), and then deciding what the user should see (by passing the appropriate data to the view).</li></ol><p>Typically, the process works like this: When a user makes a request (e.g., retrieving data), the <strong>Controller</strong> receives the request. The controller then interacts with the <strong>Model</strong> to apply the business logic (like increasing a user’s balance by $100) and fetch or update the necessary data. Finally, the controller passes that data to the <strong>View</strong>, which presents the result to the user.</p><p>Let me demonstrate by building a more step-by-step example. Sounds fair?</p><h3><strong>The example: </strong>🕵</h3><p>In this part of the project, we will be using Express.js to set up a very basic MVC model for a “<strong>task management</strong>” use case. You want me to build it in Java-Angular instead? I could too. <a href="https://www.linkedin.com/in/fmuhtasim/">Just tell me!</a></p><p>Task: Let’s create a simple example using <strong>Express.js</strong>. We’ll build a basic app where users can see a list of tasks and add new ones.</p><h3>Step-by-Step MVC in Express.js</h3><p>First, create a new Express.js project and install dependencies:</p><h4>1. Set Up Project 🛠️</h4><pre>npm init -y<br>npm install express ejs body-parser</pre><h4>2. Directory Structure 📂</h4><p>Organize the files like this:</p><pre>/mvc-app<br>  /controllers<br>    taskController.js<br>  /models<br>    taskModel.js<br>  /views<br>    index.ejs<br>  /routes<br>    taskRoutes.js<br>  server.js</pre><h4>3. Model (taskModel.js) 🧩</h4><p>The <strong>Model</strong> will handle the data. For simplicity, let&#39;s use an array to store tasks in memory.</p><pre>// /models/taskModel.js<br>let tasks = [];<br><br>const getTasks = () =&gt; tasks;<br><br>const addTask = (task) =&gt; {<br>  tasks.push(task);<br>};<br><br>module.exports = { getTasks, addTask };</pre><h4>4. Controller (taskController.js) 🎮</h4><p>The <strong>Controller</strong> will manage the logic between the user request and the model.</p><pre>// /controllers/taskController.js<br>const Task = require(&#39;../models/taskModel&#39;);<br><br>const getAllTasks = (req, res) =&gt; {<br>  const tasks = Task.getTasks();<br>  res.render(&#39;index&#39;, { tasks });<br>};<br><br>const createTask = (req, res) =&gt; {<br>  const newTask = req.body.task;<br>  Task.addTask(newTask);<br>  res.redirect(&#39;/&#39;);<br>};<br><br>module.exports = { getAllTasks, createTask };</pre><h4>5. Routes (taskRoutes.js) 🛣️</h4><p>Set up the <strong>Routes</strong> to link the user&#39;s request with the appropriate controller function.</p><pre>// /routes/taskRoutes.js<br>const express = require(&#39;express&#39;);<br>const router = express.Router();<br>const taskController = require(&#39;../controllers/taskController&#39;);<br><br>// Display all tasks<br>router.get(&#39;/&#39;, taskController.getAllTasks);<br><br>// Add a new task<br>router.post(&#39;/add&#39;, taskController.createTask);<br><br>module.exports = router;</pre><h4>6. Views (index.ejs) 👁️</h4><p>The <strong>View</strong> will display the task list and a form to add new tasks.</p><pre>&lt;!-- /views/index.ejs --&gt;<br>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>  &lt;meta charset=&quot;UTF-8&quot;&gt;<br>  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>  &lt;title&gt;Task List&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>  &lt;h1&gt;Tasks&lt;/h1&gt;<br>  &lt;ul&gt;<br>    &lt;% tasks.forEach(function(task) { %&gt;<br>      &lt;li&gt;&lt;%= task %&gt;&lt;/li&gt;<br>    &lt;% }) %&gt;<br>  &lt;/ul&gt;<br><br>  &lt;form action=&quot;/add&quot; method=&quot;POST&quot;&gt;<br>    &lt;input type=&quot;text&quot; name=&quot;task&quot; placeholder=&quot;New Task&quot;&gt;<br>    &lt;button type=&quot;submit&quot;&gt;Add Task&lt;/button&gt;<br>  &lt;/form&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><h4>7. Server (server.js) 🖥️</h4><p>Finally, connect everything and run the server.</p><pre>// server.js<br>const express = require(&#39;express&#39;);<br>const bodyParser = require(&#39;body-parser&#39;);<br>const taskRoutes = require(&#39;./routes/taskRoutes&#39;);<br><br>const app = express();<br>app.set(&#39;view engine&#39;, &#39;ejs&#39;);<br>app.use(bodyParser.urlencoded({ extended: true }));<br><br>// Use the task routes<br>app.use(&#39;/&#39;, taskRoutes);<br><br>// Start the server<br>const PORT = 3000;<br>app.listen(PORT, () =&gt; {<br>  console.log(`Server is running on port ${PORT}`);<br>});</pre><h3>How it Works:</h3><ul><li><strong>Model</strong>: taskModel.js stores the tasks.</li><li><strong>Controller</strong>: taskController.js fetches tasks from the model and sends them to the view.</li><li><strong>Routes</strong>: taskRoutes.js maps URL paths to controller actions.</li><li><strong>View</strong>: index.ejs displays the tasks and a form to add new ones.</li></ul><h3>Running the App: 🏃‍♂️</h3><ol><li>Run node server.js in the terminal.</li><li>Go to http://localhost:3000 in your browser to see the task list and add tasks.</li></ol><p>This example demonstrates how MVC separates concerns: the model handles the data, the view handles the presentation, and the controller connects the two.</p><h3>Now it’s your turn to build it too! 🏗️</h3><p>You got this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=779f90881fa8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[So what is a microservice?]]></title>
            <link>https://medium.com/@fuadmuhtasim/so-what-is-a-microservice-66ab649d29e4?source=rss-5d190bb2fa92------2</link>
            <guid isPermaLink="false">https://medium.com/p/66ab649d29e4</guid>
            <category><![CDATA[job-hunting]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[microservice-architecture]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[junior-developer]]></category>
            <dc:creator><![CDATA[Fuad]]></dc:creator>
            <pubDate>Fri, 13 Sep 2024 21:27:40 GMT</pubDate>
            <atom:updated>2024-09-13T21:27:40.372Z</atom:updated>
            <content:encoded><![CDATA[<h4>Microservice Architecture — Explained in 5 minutes!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C5kEHqTfUd9QEJqXhHRbaA.png" /></figure><p>As a solo developer in college, I never saw the need for microservices. Every line of code was mine, and I could easily spend hours working within a single folder, keeping everything under control. Outside of class projects, collaboration wasn’t really that necessary. But things have changed since then.</p><p>I recently started<em> </em><strong><em>The Developer’s Collective</em></strong> with seven of my college buddies from the University of Minnesota (Go Gophers!). The plan? Crank out one MVP every four weeks, like a never-ending hackathon. The challenge? We’ve got different schedules, skill sets, and attention spans. Translation: pure chaos — unless we switched things up.</p><p><strong>Enter Microservices: <br></strong>This architecture allows each of us to own “mini-projects,” like building individual LEGO pieces that ultimately snap together into one cohesive product. What are we building? I’ll let you know when it’s done.</p><blockquote>Quick team update:</blockquote><blockquote><strong>Team 1 (Fuad &amp; Yib)</strong>: We’re working on login and sign-up pages, integrating Instagram’s API for verification, and storing data in a database connected to an S3 bucket. Jared’s ensuring the UI is fully responsive.</blockquote><blockquote><strong>Team 2 (Ibrahim &amp; Blane)</strong>: They’re creating a React front-end with a landing page, complete with a search bar for users to look up profiles in the database<em>.</em></blockquote><p>Anyway, back to <strong>microservices</strong> — let’s break it down in the simplest way possible.</p><h3>Coding up two connected microservices:</h3><p>In a microservices architecture, we may follow 3 principles:</p><ul><li><strong>Single Responsibility</strong>: Each service focuses on a particular function.</li><li><strong>Independent Deployment</strong>: Services can be deployed independently.</li><li><strong>Decentralized Data Management</strong>: Each microservice may have its own database.</li></ul><p>In this case, I wanted to showcase a microservices architecture by building a simple web application with two services:</p><ul><li><strong>User Service</strong>: focuses on user-related operations. <em>(Single Responsibility)</em></li><li><strong>Product Service</strong>: focuses on product-related operations. <em>(also Single Responsibility)</em></li></ul><p>The technology we will be using is as follows:</p><ul><li><strong>Express.js</strong> for the backend API.</li><li><strong>RESTful APIs</strong> to communicate between services.</li></ul><h3>1. Let us first create the: User Service (user-service) file</h3><pre>// user-service/index.js<br><br>//we import express from our npm dependencies and use it to create:<br>//a backend server<br><br>//imports here<br>const express = require(&#39;express&#39;);<br>const app = express();<br>//port used to receive requests: 3001<br>const port = 3001;<br><br>// Example user data:<br>const users = [<br>  { id: 1, name: &#39;Alice&#39; },<br>  { id: 2, name: &#39;Bob&#39; }<br>];<br><br>// Endpoint to get all users as a json file<br>app.get(&#39;/users&#39;, (req, res) =&gt; {<br>  res.json(users);<br>});<br><br>// Server starts listening on port 3001 here<br>app.listen(port, () =&gt; {<br>  console.log(`User service is running on port ${port}`);<br>});</pre><h4><strong>Explanation:</strong></h4><p>If you are familiar with JavaScript, it should be relatively easy to understand this code.</p><ul><li><strong>const express = require(&#39;express&#39;);</strong><br>This line imports the Express module, a framework for building web servers in Node.js.</li><li><strong>const app = express();</strong><br>creates an Express application by calling the express() function and assigns it to the app object.</li><li><strong>const port = 3001;</strong><br>sets the port number for the server to listen on, which is 3001 in this case.</li><li><strong>app.listen(port, () =&gt; { console.log(“User service is running on port ${port});});</strong><br>starts the server and makes it listen for incoming requests on the specified port (3001). When the server is running, it logs a message to the console.</li><li><strong>app.get(&#39;/users&#39;, (req, res) =&gt; { res.json(users); });</strong><br>sets up a route to handle GET requests to the /users endpoint. When a request is made to this endpoint, the server responds with a JSON file containing user data.</li></ul><h3>2. Let us create the: Product Service (product-service) file</h3><pre>// product-service/index.js<br>const express = require(&#39;express&#39;);<br>const app = express();<br>//port used to receive requests: 3002<br>const port = 3002;<br><br>// Example product data<br>const products = [<br>  { id: 1, name: &#39;Laptop&#39; },<br>  { id: 2, name: &#39;Phone&#39; }<br>];<br><br>// Endpoint to get all products as a json file<br>app.get(&#39;/products&#39;, (req, res) =&gt; {<br>  res.json(products);<br>});<br><br>// Server starts listening on port 3001 here<br>app.listen(port, () =&gt; {<br>  console.log(`Product service is running on port ${port}`);<br>});</pre><h4><strong>Explanation:</strong></h4><p>This is similar to the previous example but with a different setup. Here, a new Express application (app) is created that listens on port 3002 for requests to access product-related endpoints.</p><h3>3. Let us create a main “Gateway” to connect these two services</h3><p>To connect the microservices, we’ll build a simple gateway that acts as a central entry point for users to interact with the app. This gateway will forward requests to the correct microservice.</p><pre>// gateway/index.js<br>const express = require(&#39;express&#39;);<br>const axios = require(&#39;axios&#39;);<br>const app = express();<br>const port = 3000;<br><br>// Route for user data<br>app.get(&#39;/users&#39;, async (req, res) =&gt; {<br>  try {<br>    const response = await axios.get(&#39;http://localhost:3001/users&#39;);<br>    res.json(response.data);<br>  } catch (error) {<br>    res.status(500).send(&#39;User service is down&#39;);<br>  }<br>});<br><br>// Route for product data<br>app.get(&#39;/products&#39;, async (req, res) =&gt; {<br>  try {<br>    const response = await axios.get(&#39;http://localhost:3002/products&#39;);<br>    res.json(response.data);<br>  } catch (error) {<br>    res.status(500).send(&#39;Product service is down&#39;);<br>  }<br>});<br><br>app.listen(port, () =&gt; {<br>  console.log(`Gateway is running on port ${port}`);<br>});</pre><h3>4. Running the Microservices</h3><p>Run the following commands to run each microservice or all of them together using the gateway file.</p><pre>node user-service/index.js<br>node product-service/index.js<br>node gateway/index.js</pre><h3>5. Testing the Application</h3><ul><li>For user data, access: <a href="http://localhost:3000/users">http://localhost:3000/users</a></li><li>For product data, access: <a href="http://localhost:3000/products">http://localhost:3000/products</a></li></ul><p>Each microservice operates independently, allowing for separate development and scaling. The gateway service routes requests to the appropriate microservice, showcasing one of the primary advantages of a microservice architecture. This setup enables efficient management of different application components and provides flexibility in scaling based on service demand.</p><p>Thank you for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66ab649d29e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[30 Days | 300 Job Applications]]></title>
            <link>https://medium.com/@fuadmuhtasim/30-days-300-job-applications-93e7f4ce6d9a?source=rss-5d190bb2fa92------2</link>
            <guid isPermaLink="false">https://medium.com/p/93e7f4ce6d9a</guid>
            <category><![CDATA[job-search]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[junior-developer]]></category>
            <category><![CDATA[job-interview]]></category>
            <dc:creator><![CDATA[Fuad]]></dc:creator>
            <pubDate>Tue, 10 Sep 2024 03:58:16 GMT</pubDate>
            <atom:updated>2025-02-05T19:15:56.925Z</atom:updated>
            <content:encoded><![CDATA[<h4>My journey to another Software Engineer 1 position</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iMaj32jvnBFaU9CP7FVP-A.png" /></figure><h4>Will 2024 Mark the End of the Software Developer 1 ?</h4><p>I honestly do not know,<br>but if you’re feeling slightly hopeless about the situation, know that you’re not alone. Communities like<a href="https://www.reddit.com/r/cscareerquestions/"><strong> r/cscareerquestions</strong></a> have made it very clear that many of us are in the same boat. I even came across<a href="https://www.reddit.com/r/cscareerquestions/comments/1e2t0s0/cant_find_a_swe_job_and_had_to_resort_to_selling/"> a post </a>where someone jokingly (I hope) mentioned that they were considering selling drugs to stay afloat in this software market!</p><p><strong>But I think there is hope.</strong></p><p>In the past 30 days, I’ve sent out over<strong> 300 applications</strong> for software development roles and I have discovered <strong>strategies that actually (kinda) work</strong> —<strong> and plenty that don’t.</strong></p><p>So, if you’re feeling: <br>(1) stuck,<br>(2) overwhelmed,<br>(3) struggling to keep going,<br>(4) or you have just gotten started…<br>This article might provide you with the last push you need to reach your dreams in tech!</p><h3><strong>1. You will never have the Perfect Application — but just keep applying</strong></h3><p>You’ll never have the perfect résumé, the perfect projects, or the perfect experience. There will always be something missing or sub-par. But instead of seeing that as a flaw, embrace it. Applying then becomes so much easier.</p><p>In my experience, I’ve tried everything: stalling for days to craft the “perfect” application, meticulously tailoring my résumé to march the job description, crafting the perfect cover letter to convey my sincerest interest — only to feel crushed when I did not hear back. Ironically,<strong> the companies that did respond</strong> were often the ones I applied to without much thought — no tailored application, no heartfelt cover letter — just cold, mass applying.</p><p>This taught me an important lesson:<strong> there’s real value in the “numbers game.” </strong>The more you apply, the better your chances. So don’t hold back — keep applying and prioritize putting yourself out there as much as you can.</p><pre>#include &lt;iostream&gt;<br><br>int main() {<br>    std::cout &lt;&lt; &quot;It also helps if you apply to the most recent job postings first.&quot; &lt;&lt; std::endl;<br>    std::cout &lt;&lt; &quot;Your resume will more than likely be reviewed among the first people applying&quot;;<br>    std::cout &lt;&lt; &quot; further boosting your chances.&quot; &lt;&lt; std::endl;<br>    return 0;<br>}</pre><h3>2. Use AGILE Principles for Job Applications and Progressively Overload (for my Gym Bros!)</h3><h4>AGILE Approach:</h4><p>If you’re familiar with AGILE methodologies in software development, it’s time for you to apply the same principles to your job search. Don’t wait until you have the <em>perfect</em> resume — <strong>apply now </strong>if you have a decent baseline but just like in AGILE, <strong>keep iterating.</strong></p><p>Work on your portfolio and integrate it into future applications when it is ready. Does your LinkedIn profile or project Readme files need a refresh? Improve them incrementally while applying.</p><p><strong>The key is to continue job search while making micro-improvements </strong>on the go. Keep progressing steadily without pausing your job search because as mentioned previously, early applications get more visibility.</p><h4>Progressive Overload:</h4><p>If you’ve hit the gym, you know the concept of progressive overload — gradually increasing weight to build muscle. To apply the same principle to my job search:</p><p>I <strong>rate each application</strong> on a scale of 1–10 and then multiply that by the number of applications I send out daily.<br>For example, if I send 5 applications, all rated 10, I collect 5 * 10 = 50 points per application, for a total of 250 points!</p><p>Aiming to hit the same or a higher score each week <strong>gamifies the application process.</strong></p><h3>3. Chin up soldier! Keep asking more from the world!</h3><h4>LinkedIn:</h4><p>The first LinkedIn connection request I sent had me overthinking for days. What should I say? Will they even connect back? Pushing past that initial hesitation, communicating gets easier. Just say anything! These days I also include a brief note that I believe helps my case.</p><p><strong>You can copy what I say:</strong><br><em>I introduce myself, mention my interests, and express my desire to build a meaningful and supportive network.</em></p><p><strong>You will be surprised by how willing people are to support your journey.</strong> I’ve met individuals who voluntarily check on my projects, assist with resume reviews, and provide referrals - genuinely supportive people who want to help.</p><blockquote>If you’re here from LinkedIn, I want to express my sincere gratitude. Engaging with you has provided me with invaluable insights into the industry, and it has been a great source of motivation through the numerous rejections I’ve encountered. I truly appreciate the time you’ve taken to talk with me and to follow my journey in software development.</blockquote><blockquote>Thank you for sharing your own experiences as well. Your support and guidance mean a lot to me.</blockquote><pre>public class HelloWorld {<br>    public static void main(String[] args) {<br>        System.out.println(&quot;Tailor your resumes for REFERRAL APPLICATIONS!&quot;);<br>    }<br>}</pre><h3>4. Interviews</h3><p>Out of the <strong>300 applications only 10 companies</strong> have reached me for interviews (an acceptance rate of just over 3%). It’s a tough statistic, but I think it is okay.</p><p>Although some rejections still set me flat on my bed for days, I have found solace in treating interviews differently. I now treat interviews as an opportunity to learn more about the work I will do and to know more about the people in the industry. This approach makes interviews exciting.</p><pre>print(&quot;A SOFTWARE DEVELOPER IS GIVING YOU AN HOUR OF THEIR TIME TO GET TO KNOW YOU - USE IT TO LEARN ABOUT THEM!&quot;)</pre><p>In my interviews, I take the chance to demonstrate my strengths showcasing what I’ve built so far. I also like to engage in conversations about the software journey of my respective interviewers. Their stories frequently inspire me.</p><p><strong>Interesting Interview Tip:<br></strong>I recently learned from a Software Engineer that keeping an<strong> “Engineer’s Notebook”</strong> can be incredibly helpful. In my notebook, I record the problems I encounter, the solutions I explore, and detailed notes about multiple issues. Reviewing this notebook before interviews has allowed me to discuss my projects with a greater sense of clarity. It’s a useful tool for reflecting on what I’ve learned and being better prepared to speak about it during interviews.</p><h3><strong>What have I been up to lately?</strong></h3><p>I’m currently working as a <strong>software developer</strong> in a research lab and it has been an incredible journey so far — 300 applications, 30 days, 10 interviews.</p><p><strong>I ABSOLUTELY LOVE BUILDING THINGS! <br></strong>which is also why:</p><p>I have recently created a team (The Developer’s Collective) of aspiring software engineers where we’re developing one full-stack product and pushing it into the market every four weeks. If we get users, we add features. If we don’t, we move on to the next idea.</p><p>If you’re passionate about building just like me and also want to collaborate, feel free to connect via <a href="https://www.linkedin.com/in/fmuhtasim/">LinkedIn!</a> I’d love to get to know you.</p><p>Meanwhile, for me, the application numbers will only go up from here. I hope it does for you too.<br><strong>We are almost there!</strong></p><pre>console.log(&quot;Let us keep the software dream alive!&quot;)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93e7f4ce6d9a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Observations from the life around me]]></title>
            <link>https://medium.com/@fuadmuhtasim/observations-from-the-life-around-me-e762765060f2?source=rss-5d190bb2fa92------2</link>
            <guid isPermaLink="false">https://medium.com/p/e762765060f2</guid>
            <category><![CDATA[art]]></category>
            <category><![CDATA[insights]]></category>
            <category><![CDATA[city-living]]></category>
            <category><![CDATA[thoughts-and-feelings]]></category>
            <category><![CDATA[adulting]]></category>
            <dc:creator><![CDATA[Fuad]]></dc:creator>
            <pubDate>Tue, 30 Jul 2024 01:28:59 GMT</pubDate>
            <atom:updated>2024-07-30T02:55:09.911Z</atom:updated>
            <content:encoded><![CDATA[<h3>Simple Observations from life</h3><p>I intend to use this article as a consistently updating thread, noting the minute details of life that go unnoticed. <br>Each <strong>observation</strong> will consist of a <strong>theme</strong> and an <strong>account of the events</strong>.<br>Some perhaps closing with a question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iNLrCHq_RYEQI32Fh5PLKg.png" /></figure><h3><strong>(1) May I sit there?</strong></h3><p>A man stood at the entrance of a bustling café, his eyes scanning the interior with a mix of hope and apprehension. <strong>In stark contrast</strong> to the polished, business-casual patrons inside, his attire was a patchwork of ragged, torn clothes. His skin bore the signs of hardship, rough and unwashed for days.</p><p>Despite the intimidating disparity, he took a deep breath and stepped inside. He approached the cashier, his voice tinged with hesitation as he asked,</p><blockquote><strong><em>“May I on that chair over there?”</em></strong></blockquote><p>The cashier’s warm smile and nod of approval seemed to lift a weight off his shoulders. <strong>It was a small victory, but a significant one. </strong>He had sought permission to do something as simple as sit in a café, something many of us take for granted.</p><p>I visit this same café regularly. I strut straight to an empty table, take my laptop out, and start coding without a second thought. Occasionally, I order a latte.</p><p>It strikes me how our different life experiences shape our actions. For him, <strong>seeking permission felt like a necessity</strong> born of his circumstances; for me, it was an afterthought.</p><pre>console.log(&quot;When was the last time you felt you needed permission to sit in a cafe?&quot;)</pre><p>In that moment, I realized how profoundly <strong>our lives and exeriences dictate our sense of entitlement and the freedoms we feel we can claim.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e762765060f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>