Skip to content

Study journal · Architecture · 8 min read

Learning About Monoliths and Microservices

Network connections linking servers in a distributed computing environment

While studying application architecture, I’ve been comparing a single deployable application with a system split into services. Each approach introduces different trade-offs, and the best way to understand them is to start with a small example.

Starting with one application

A single application keeps the first version easier to run and inspect. For a student project, keeping related code together can make it simpler to understand how a feature moves through the system before adding the extra work of separate services.

Questions that point toward services

Separate services introduce network communication, data ownership, and deployment decisions. I’m learning to ask whether the example actually needs that separation or whether a modular structure inside one application would be easier to work with.

A simple comparison checklist

I compare the number of deployable parts, how they share data, and what needs to change independently. Writing down those trade-offs helps me explain why a design is suitable for a particular project size.

A small example

Follow one dashboard request.

The analytics dashboard concept gives me a useful question: what happens when someone opens an account’s activity view? I can sketch the same request in one application and then redraw it with separate responsibilities.

  1. 01

    Name the responsibilities

    Identify the account context, the activity records, and the summary the screen needs to display.

  2. 02

    Draw the connections

    Mark which parts exchange information and what each needs to know about the others.

  3. 03

    Compare the extra work

    Ask what becomes easier to change and what becomes harder to run or debug when a boundary turns into a network connection.

Questions for the next experiment

Give every boundary a reason.

  • Can I describe what each part owns without overlapping responsibilities?
  • Does a separate deployment solve a problem in this small example?
  • What should the interface show if one part cannot return its data?

I want to compare those answers before deciding that a more distributed structure is useful. The dashboard project concept is a place to keep that comparison concrete.