A practical approach to modular architecture, separation of concerns, and evolution toward microservices, connecting backend engineering, infrastructure, networking, and financial systems.*
1. Introduction
Recently, during a technical interview for a backend engineering position, I had the opportunity to reflect on my professional journey and how my experience in infrastructure, networking, automation, and DevOps has contributed to building more robust applications.
The questions covered topics such as software architecture, FastAPI, PostgreSQL, asynchronous processing, CI/CD, automated testing, and observability.
Beyond assessing my knowledge of specific tools, the conversation raised an important question:
How can infrastructure and automation expertise be translated into sustainable, resilient, and production-ready software solutions?
Inspired by this reflection, I decided to develop a series of technical articles sharing concepts, architectural decisions, implementations, and lessons learned from three projects I have been developing:
- InfraPulse: an HTTP and HTTPS monitoring platform.
- JC SocialFlow AI: a multichannel digital content automation platform, currently under local development.
- JC IA Video: a project focused on local AI-powered video generation.
Although these projects serve different purposes, they share challenges related to component integration, resource management, reliability, and architectural evolution.
Throughout this series, I will also explore how I would apply these engineering principles if I were developing solutions for the financial, networking, and telecommunications sectors, considering their specific requirements and operational challenges.
In this first part, I will focus on software architecture, separation of concerns, and the strategies I have been adopting to build applications designed to evolve.
2. From Automation Scripts to Structured Systems
Python scripts are excellent tools for automating operational tasks. However, as a solution grows, requirements emerge that go beyond executing an isolated task:
- Concurrency control.
- Data persistence.
- Failure handling.
- API exposure.
- Traceability.
- Scalability.
- Maintainability.
This evolution is reflected in the development of InfraPulse.
The project uses Python, FastAPI, PostgreSQL, and an independent worker to perform availability checks on HTTP and HTTPS services.
Its architecture can be represented as follows:
flowchart LR Browser[Browser] --> UI[React dashboard / Nginx] UI --> API[FastAPI] API --> DB[(PostgreSQL)] Worker[Monitoring worker] --> DB Worker --> Targets[Monitored HTTP services] API --> Collector[OpenTelemetry Collector] Worker --> Collector Collector --> Tempo[Tempo] Prometheus --> API Prometheus --> Worker Prometheus --> Alertmanager Grafana --> Prometheus Grafana --> Tempo The API is responsible for HTTP transport, contract validation, and access to application services.
The worker is responsible for executing availability checks.
The following excerpt from the worker composition illustrates this separation:
await WorkerScheduler( settings, SQLMonitoringStore(engine), HTTPChecker(settings), metrics, telemetry, ).run(stop) Source: worker.py, InfraPulse.
The decision to keep the worker independent is documented in an Architecture Decision Record (ADR).
One of the reasons behind this decision is to prevent duplicate schedulers when the API runs with multiple Uvicorn worker processes.
This decision illustrates that application architecture must account not only for its logical organization but also for its runtime behavior.
3. Architecture Designed to Evolve
In JC SocialFlow AI, I adopted a modular monolith strategy with independent workers, designed from the outset to support a gradual transition toward a microservices architecture.
The architecture defines boundaries between different domains, including identity, content, media, integrations, and publishing.
flowchart TD A[FastAPI] --> B[Identity] A --> C[Content] A --> D[Publishing] B --> E[(PostgreSQL)] C --> E D --> E D --> F[Redis] F --> G[Celery workers] G --> H[External connectors] The diagram represents the project's target architecture.
During the initial implementation phase, I developed the backend foundation, identity components, persistence, auditing, and a worker with a diagnostic task.
The content, media, and publishing domains are part of the upcoming development phases.
My strategy is to start with a modular monolithic architecture while maintaining well-defined boundaries, loose coupling, and explicit contracts between domains.
By doing so, I intend to establish the extension points required to extract individual modules and transform them into independent services in the future.
flowchart LR A[Modular monolith] --> B[Domain boundaries] B --> C[Contracts and interfaces] C --> D[Gradual extraction] D --> E[Independent microservices] The idea is to reduce operational complexity during the early stages of development without compromising the architecture's ability to evolve.
As the system grows, I intend to evaluate which components have specific requirements for scalability, fault isolation, or independent deployment.
This transition will also require decisions regarding data ownership, inter-service communication, distributed consistency, and observability.
The goal is to build an architecture that can evolve rather than having to rebuild it when new requirements emerge.
4. How I Would Apply This Architecture to Financial Systems
If I were developing a payment processing platform, I would start by identifying the application's core domains:
- Identity and authorization.
- Accounts and customers.
- Payments.
- Banking integrations.
- Reconciliation.
- Auditing.
Initially, I would evaluate a modular monolith approach, establishing contracts between these domains while preserving the integrity of financial operations.
I would separate long-running activities, such as reconciliation and certain external integrations, by using independent workers.
As transaction volumes increased, I would evaluate extracting components with specific scalability, isolation, or availability requirements.
My primary concern would be ensuring that architectural evolution did not compromise data consistency or operational traceability.
5. How I Would Apply This Architecture to Networking and Telecommunications
If I were developing a network management platform, I would organize its architecture around domains such as:
- Device inventory.
- Interface management.
- Telemetry collection.
- Availability monitoring.
- Configuration provisioning.
- Event management.
I would use an API to centralize management operations and independent workers to execute activities that depend on communication with network devices.
flowchart TD A[Management API] --> B[Inventory] A --> C[Monitoring] A --> D[Provisioning] B --> E[(PostgreSQL)] C --> F[Task queue] D --> F F --> G[Collection workers] F --> H[Configuration workers] G --> I[Network devices] H --> I My intention would be to transform activities traditionally performed through isolated scripts into manageable, traceable operations governed by execution policies.
The challenge would no longer be simply querying or configuring a device, but managing the entire lifecycle of those operations.
6. Conclusion
Developing InfraPulse and JC SocialFlow AI has reinforced my understanding that architectural decisions must account for both code organization and the operational behavior of an application.
In InfraPulse, separating the API from the worker establishes independent responsibilities for service management and availability checks.
In JC SocialFlow AI, adopting a modular monolith with independent workers represents a strategy for managing initial complexity while establishing the foundations for a future transition toward microservices.
In the financial and telecommunications sectors, I would apply similar principles, adapting architectural decisions to the consistency, availability, traceability, and security requirements of each domain.
My experience in infrastructure, networking, and automation has directly contributed to this perspective on backend engineering.
Beyond developing functional applications, my goal is to build solutions whose architecture allows their components to be understood, operated, maintained, and evolved in a controlled manner.
7. Upcoming Articles in This Series
- Software Architecture and Evolution — current article.
- FastAPI and Resilient REST APIs.
- PostgreSQL: Data Integrity and Performance.
- Asynchronous Processing and Resource Management.
- CI/CD, DevSecOps, and NetDevOps.
- Automated Testing and System Reliability.
- Observability and Engineering Trade-offs.
In the next part, I will explore how I have been using FastAPI, separation of concerns, dependency management, and REST contracts, along with security and resilience strategies for external integrations.
Projects
- InfraPulse — GitHub
- JC SocialFlow AI — currently under local development.
- JC IA Video — Demo

