Skip to content
AnderssonProgrammingPublic

About

Repository for the Software Architecture (ARSW) course at Escuela Colombiana de Ingeniería Julio Garavito. Covers concurrency, REST APIs, OAuth 2.0, real-time WebSockets, and Azure IaC through Java 21, Spring Boot, React, and Terraform labs.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏛️ ARSW: Software Architecture

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 🌐.


📚 Topics Covered

⚙️ Concurrency & Parallelism

  • 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

🔒 Thread Synchronization & Safety

  • 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

🌐 RESTful API Design & Spring Boot

  • Layered architecture with Spring Boot 3.3.x
  • Strategy Pattern for geometric filtering
  • PostgreSQL integration and repository patterns
  • Swagger/OpenAPI documentation and Spring Actuator

🔐 API Security

  • OAuth 2.0 Resource Server with JWT (RS256 — asymmetric keys)
  • Granular OAuth scopes and role-based access
  • Swagger UI with authorized token-based testing

⚛️ Frontend Modernization

  • React + Vite single-page application (SPA)
  • Redux Toolkit for global state management
  • Axios with JWT interceptors

📡 Real-Time Collaborative Systems

  • 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)

☁️ Cloud Infrastructure & IaC

  • Azure Load Balancer with Terraform (Infrastructure as Code)
  • Backend pool of Ubuntu VMs with Nginx
  • Remote state management via Azure Storage

📐 Architecture Diagrams & Workshops

  • UML component and activity diagrams (draw.io)
  • Messaging activity diagrams
  • Pre-partial and review workshops

🎯 Core Repositories & Labs

Labs were developed collaboratively with teammates under the TerraFour-ECI GitHub organization throughout the semester.


📘 FIRST TERM – Concurrency & Parallelism Labs

🔹 Lab 01 — High-Performance π Digit Calculation Service

Transition from sequential to parallel execution using Java 21 platform threads. Features layered architectural patterns and performance benchmarking across diverse CPU architectures.

🔗 View Repository


🔹 Lab 02 — Concurrent Greyhound Race Simulation

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.

🔗 View Repository


🔹 Lab 03 — Busy-Wait vs. Java Monitors (Producer-Consumer)

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.

🔗 View Repository


🔹 Lab 04 — Immortals High-Concurrency Simulator

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.

🔗 View Repository


📗 SECOND TERM – REST APIs, Security & Frontend

🔹 Lab 05 — Blueprints RESTful API

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.

🔗 View Repository


🔹 Lab 06 — Blueprints API Security (OAuth 2.0 + JWT RS256)

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.

🔗 View Repository


🔹 Lab 07 — Blueprints React SPA Modernization

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.

🔗 View Repository


📕 THIRD TERM – Real-Time Systems & Cloud Infrastructure

🔹 Lab 08 — Blueprints Real-Time Collaboration (Socket.IO + STOMP)

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


🔹 Azure Load Balancing with Terraform

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.

🔗 View Repository


🏆 Semester Project — LogiFlow

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.

🔹 LogiFlow Backend (Monorepo)

Monorepo implementing the core platform via NestJS, gRPC, WebSockets, n8n automation, and VROOM optimization.

🔗 View Repository


🔹 LogiFlow Frontend (Monorepo)

Monorepo frontend with shared TypeScript contracts for mobile driver and web admin clients, aligned to backend sockets and APIs.

🔗 View Repository


📁 Repository Structure

📘 FIRST TERM – Concurrency & Parallelism

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:

Lab Documents:

Related Repositories:


📗 SECOND TERM – REST APIs, Security & React Frontend

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:

Lab Documents:

Related Repositories:


📕 THIRD TERM – Real-Time Systems & Cloud IaC

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:


🧪 Key Learning Components

🔬 Laboratory Exercises

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.

🏗️ Architecture Projects

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.

📐 Architecture Diagrams

draw.io component and activity diagrams modeling system interactions, messaging flows, and architectural layers across the Blueprints platform and real-time collaboration systems.

🎓 Theoretical Foundations

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.


🧰 Tech Stack & Tools

  • Java 21 ☕ – Primary language: concurrency, REST APIs, Spring Boot, OAuth 2.0
  • Spring Boot 3.3.x 🌿 – REST API framework, WebSocket/STOMP, Security, Actuator
  • Node.js / Express 🟢 – Socket.IO real-time backend
  • React + Vite ⚛️ – SPA frontend with Redux Toolkit and JWT Axios interceptors
  • PostgreSQL 🐘 – Relational database for Blueprints API
  • OAuth 2.0 / JWT (RS256) 🔐 – Asymmetric key authentication and authorization
  • Socket.IO 📡 – Low-latency room-based real-time communication
  • STOMP / WebSockets 🔌 – Topic-based real-time messaging over WebSockets
  • Terraform 🏗️ – Infrastructure as Code for Azure provisioning
  • Microsoft Azure ☁️ – Load Balancer, VM backend pool, Nginx, Azure Storage
  • NestJS 🦁 – Backend framework for the LogiFlow semester project
  • gRPC ⚡ – High-performance RPC for LogiFlow microservices
  • n8n 🔄 – Workflow automation for LogiFlow
  • VROOM 🚛 – Vehicle Routing Problem optimization engine
  • draw.io 📐 – Architecture and UML diagram tooling
  • jVisualVM 🔬 – CPU profiling for concurrency analysis
  • Swagger / OpenAPI 📄 – REST API documentation and testing
  • Maven 📦 – Java project and dependency management

🖼️ Visuals

Java Spring Boot Node.js React PostgreSQL Terraform Microsoft Azure


🎓 Course Progression

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

📖 Additional Resources

  • 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

📬 Contact

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. 🏛️⚡

About

Repository for the Software Architecture (ARSW) course at Escuela Colombiana de Ingeniería Julio Garavito. Covers concurrency, REST APIs, OAuth 2.0, real-time WebSockets, and Azure IaC through Java 21, Spring Boot, React, and Terraform labs.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors