Welcome to the repository for ARSW (Arquitectura de Software - Software Architecture) at the Escuela Colombiana de Ingeniería Julio Garavito. This comprehensive collection showcases the semester journey through software architecture — from concurrency and parallelism fundamentals to distributed REST APIs, real-time collaborative systems, and cloud infrastructure provisioning with Terraform on Azure 🌐.
- Java thread lifecycle and platform threads (Java 21)
- Concurrency vs. parallelism: conceptual and practical distinctions
- Call-return styles and architectural communication patterns
- Distributed event-based styles (EBS)
- Quality attributes in concurrent systems
- Mutual exclusion and critical regions
- Busy-wait (spin-locking) vs. Java Monitors (
wait/notifyAll) - Race conditions, deadlock prevention (Total Order & TryLock)
- Invariant validation with synchronization barriers
- The monitor pattern for coordinated pause/resume
- Layered architecture with Spring Boot 3.3.x
- Strategy Pattern for geometric filtering
- PostgreSQL integration and repository patterns
- Swagger/OpenAPI documentation and Spring Actuator
- OAuth 2.0 Resource Server with JWT (RS256 — asymmetric keys)
- Granular OAuth scopes and role-based access
- Swagger UI with authorized token-based testing
- React + Vite single-page application (SPA)
- Redux Toolkit for global state management
- Axios with JWT interceptors
- Socket.IO room-based broadcasting with JWT handshake middleware
- STOMP protocol over WebSockets with topic-based broadcasting
- Multi-backend real-time synchronization (Socket.IO + STOMP)
- Azure Load Balancer with Terraform (Infrastructure as Code)
- Backend pool of Ubuntu VMs with Nginx
- Remote state management via Azure Storage
- UML component and activity diagrams (draw.io)
- Messaging activity diagrams
- Pre-partial and review workshops
Labs were developed collaboratively with teammates under the TerraFour-ECI GitHub organization throughout the semester.
Transition from sequential to parallel execution using Java 21 platform threads. Features layered architectural patterns and performance benchmarking across diverse CPU architectures.
Concurrent greyhound race simulation featuring thread synchronization with join(), mutual exclusion in critical regions, and the monitor pattern with wait()/notifyAll() for coordinated pause/resume control.
Java concurrency analysis comparing the performance of Busy-Wait (spin-locking) versus Java Monitors (wait/notify) in a Producer-Consumer pattern. Includes CPU profiling via jVisualVM to demonstrate the architectural efficiency of thread synchronization.
Java 21 high-concurrency simulator focused on deadlock prevention (Total Order & TryLock), race condition management, and invariant validation using synchronization barriers across thousands of concurrent threads.
RESTful API for blueprint management built with Java 21 and Spring Boot 3.3.x. Features layered architecture, Strategy Pattern for geometric filtering, and PostgreSQL integration. Includes Swagger/OpenAPI documentation and Spring Actuator metrics.
OAuth 2.0 Resource Server implementing JWT (RS256) security with asymmetric keys, granular scopes, and Strategy Pattern filters. Includes Swagger UI for authorized API testing.
Transforms the classic Blueprints frontend into a high-performance Single Page Application (SPA) using React + Vite, Redux Toolkit for global state management, and Axios with JWT interceptors.
Integrates Socket.IO and STOMP/WebSocket protocols to enable live drawing synchronization across distributed clients. Features a secure JWT handoff from a React frontend to multiple backends with room and topic-based control. Composed of three interconnected services:
Socket.IO Realtime Backend (Node.js) Low-latency collaborative drawing backend using Node.js and Express, with room-based broadcasting and a custom JWT handshake middleware for authorized socket connections. 🔗 View Repository
STOMP WebSocket Backend (Java/Spring Boot) Spring Boot 3.3 message broker for real-time collaborative drawing via the STOMP protocol over WebSockets. Features topic-based broadcasting, payload validation, and JWT. 🔗 View Repository
Real-Time Collaboration Frontend (React) Full integration lab combining Socket.IO and STOMP backends into a unified collaborative drawing experience. 🔗 View Repository
Highly available Azure infrastructure using Infrastructure as Code (IaC). Features a Standard Public Load Balancer, a backend pool of Ubuntu VMs with Nginx, and remote state management via Azure Storage.
An AI-powered real-time fleet routing platform developed by the team Logiflow-Gavilanes-ECI. Dynamically solves the Vehicle Routing Problem (VRP) for Colombian logistics at scale.
Monorepo implementing the core platform via NestJS, gRPC, WebSockets, n8n automation, and VROOM optimization.
Monorepo frontend with shared TypeScript contracts for mobile driver and web admin clients, aligned to backend sockets and APIs.
Focus: Java concurrency fundamentals, thread synchronization, and performance benchmarking
- Labs (01–04) – Hands-on implementation of parallel computation, concurrent simulations, and thread safety patterns
- Theory / Slides – Course introduction, call-return styles, distributed EBS, quality attributes, and concurrency vs. parallelism
- Theory / Books – Reference literature on Java concurrency
Key Materials:
- 0. Intro-ARSW-V2.pdf – Course introduction and overview
- Semana2_ARSW_ConcurrenciaVsParalelismo.pdf – Concurrency vs. parallelism deep dive
- 2.CallReturnStyles.pdf – Architectural call-return communication styles
- 3.DistributedEBS.pdf – Distributed event-based styles
- 5.QualityAtts.pptx.pdf – Quality attributes in software architecture
- Java Concurrency in Practice — Brian Goetz et al. – Foundational concurrency reference book
Lab Documents:
- lab01.docx – π Parallel Computation Lab guide
- lab02.docx – Concurrent Race Simulation Lab guide
- lab03.docx – Busy-Wait vs. Monitors Lab guide
- lab04.docx – Immortals Sync Lab guide
Related Repositories:
- arsw-pi-parallel-lab – Parallel π computation
- arsw-dogs-race-concurrent-lab – Concurrent race simulation
- arsw-busy-wait-notify-lab – Busy-wait vs. monitors analysis
- arsw-inmortals-sync-lab – Immortals deadlock-safe simulator
Focus: Spring Boot REST APIs, OAuth 2.0 security, and SPA frontend modernization
- Labs (05–07) – Blueprints API ecosystem from REST layer to OAuth 2.0 security and React frontend
- Theory / Diagrams – UML component diagrams and messaging activity diagrams (draw.io)
- Theory / Workshops – Pre-partial review workshops and exam diagram exercises
Key Materials:
- Componentes.drawio – UML component architecture diagram
- Diagramas-Actividad-Mensajería.drawio – Messaging activity diagrams
- workship-prepartial.drawio – Pre-partial workshop diagram
- #1-Workshop.docx – Workshop #1 document
- #2-Review-Exam-Diagram.docx – Exam review diagram document
- Taller_Diagramas_Actividad_Mensajeria_ARSW.pdf – Activity & messaging diagrams workshop
Lab Documents:
- lab05.docx – Blueprints RESTful API Lab guide
- lab06.docx – Blueprints API Security Lab guide
- lab07.docx – Blueprints React SPA Lab guide
Related Repositories:
- arsw-blueprints-api-lab – Layered REST API with Spring Boot
- arsw-blueprints-api-security-lab – OAuth 2.0 + JWT RS256 security
- arsw-blueprints-api-react-lab – React + Vite SPA modernization
Focus: WebSocket/Socket.IO real-time collaboration, STOMP messaging, and Azure IaC with Terraform
- Lab 08 – Full real-time collaborative drawing system with Socket.IO and STOMP backends
- Azure Terraform – Cloud infrastructure provisioning as code on Azure
Lab Documents:
- lab08.docx – Real-Time Sockets Collaboration Lab guide
Related Repositories:
- blueprints-example-backend-socketio-node – Socket.IO Node.js backend
- blueprints-example-backend-stomp – STOMP Spring Boot backend
- arsw-blueprints-api-realtime-sockets-lab – Full real-time collaboration lab
- arsw-terraform-azure-load-balancing – Azure IaC with Terraform
Practical Java and Node.js implementations covering thread synchronization, concurrent simulations, REST API design, OAuth 2.0 security, SPA development, and real-time WebSocket communication.
End-to-end projects applying software architecture patterns: concurrent systems, layered REST APIs, OAuth-secured backends, real-time collaborative frontends, and cloud infrastructure provisioned with Terraform on Azure.
draw.io component and activity diagrams modeling system interactions, messaging flows, and architectural layers across the Blueprints platform and real-time collaboration systems.
Slides and reference books covering concurrency vs. parallelism, call-return architectural styles, distributed event-based systems, quality attributes, and the Java Concurrency in Practice reference guide by Brian Goetz.
Java 21 ☕– Primary language: concurrency, REST APIs, Spring Boot, OAuth 2.0Spring Boot 3.3.x 🌿– REST API framework, WebSocket/STOMP, Security, ActuatorNode.js / Express 🟢– Socket.IO real-time backendReact + Vite ⚛️– SPA frontend with Redux Toolkit and JWT Axios interceptorsPostgreSQL 🐘– Relational database for Blueprints APIOAuth 2.0 / JWT (RS256) 🔐– Asymmetric key authentication and authorizationSocket.IO 📡– Low-latency room-based real-time communicationSTOMP / WebSockets 🔌– Topic-based real-time messaging over WebSocketsTerraform 🏗️– Infrastructure as Code for Azure provisioningMicrosoft Azure ☁️– Load Balancer, VM backend pool, Nginx, Azure StorageNestJS 🦁– Backend framework for the LogiFlow semester projectgRPC ⚡– High-performance RPC for LogiFlow microservicesn8n 🔄– Workflow automation for LogiFlowVROOM 🚛– Vehicle Routing Problem optimization enginedraw.io 📐– Architecture and UML diagram toolingjVisualVM 🔬– CPU profiling for concurrency analysisSwagger / OpenAPI 📄– REST API documentation and testingMaven 📦– Java project and dependency management
FIRST TERM: Concurrency & Parallelism
↓
Java Threads → Synchronization → Monitors → Deadlock Prevention
↓
SECOND TERM: REST APIs, Security & SPA Frontend
↓
Spring Boot REST → OAuth 2.0 + JWT → React + Vite SPA
↓
THIRD TERM: Real-Time Systems & Cloud Infrastructure
↓
Socket.IO + STOMP → Real-Time Collaboration → Terraform + Azure IaC
↓
SEMESTER PROJECT: LogiFlow — AI-Powered Fleet Routing Platform
↓
NestJS + gRPC + WebSockets + VROOM → Colombian Logistics at Scale
- FIRST TERM/theory/slides/ – Core architecture and concurrency slides
- FIRST TERM/theory/books/ – Java Concurrency in Practice (Brian Goetz et al.)
- FIRST TERM/labs/ – Lab guides 01–04 (concurrency and parallelism)
- SECOND TERM/theory/diagrams/ – Component and messaging activity diagrams (draw.io)
- SECOND TERM/theory/workshop/ – Workshops and exam review documents
- SECOND TERM/labs/ – Lab guides 05–07 (REST, security, React)
- THIRD TERM/labs/ – Lab guide 08 (real-time sockets collaboration)
- TerraFour-ECI GitHub Organization – All collaborative lab repositories
- Logiflow-Gavilanes-ECI GitHub Organization – Semester project repositories
Explore concurrent systems, build resilient REST APIs, and design real-time collaborative architectures. 💌 andersson.sanchez-m@mail.escuelaing.edu.co — Let's architect the future together!
"A complex system that works is invariably found to have evolved from a simple system that worked." – John Gall
Build for concurrency. Design for resilience. Architect for real-time scale. 🏛️⚡