How To Split a Monolith Into Microservices with Jitar
<p>In my previous article, I wrote about my journey towards a just-in-time architectural style that enabled me to split up a monolith into microservices without refactoring. The key solution I found was a combination of automated API creation and a flexible segmentation strategy. This has led to the creation of Jitar, a distributable runtime for JavaScript (and TypeScript) applications.</p>
<p>In this article, I want to dive deeply into building a splittable monolith and split it into microservices using the Jitar runtime. We’ll use the small online store example from the previous article. I recommend reading the previous article if you haven’t done that yet, but it isn’t required. The application and transformation will be explained step by step so you can follow along. The final result is also available on GitHub.</p>
<p>Before starting, ensure you have Node.js version 18.7 or higher installed on your machine. I like to be type-safe, so I’ll use TypeScript for the example. Make sure you have version 4.4.2 or higher installed. I use VS Code as an editor, but feel free to use another. Also, I work on a MacBook. The commands in this article work on Mac OS and Linux. Ready, set, go!</p>
<h1>Step 1: Setup the Application</h1>
<p>Let’s take a closer look at the online store first. Although the company behind the store is small, it’s divided into four departments. Each with its own unique responsibility.</p>
<p><a href="https://betterprogramming.pub/how-to-split-a-monolith-into-microservices-with-jitar-95caf6f81e08">Click Here</a></p>