Skip to content
Cirel RomeoSoftware & Education
Projects

What I built and how I think about it.

Problems I have solved, design decisions explained, personal projects in progress, automations and classroom material.

01 · Experience

Problems I have solved

Pick a problem to see what had to be solved, how it was solved and what it left. They come from my job and from clients; for confidentiality I do not name companies, brands or countries.

In production At my job

Live results nobody can fake

Run tournaments in rounds, with different scoring modes, and publish the ranking without any result being made up or replayed.

How it was solved

The backend was split into separate services, each with a single responsibility, behind a gateway. Games send the score encrypted and the server rejects replays. The design decisions were written down.

My part

System planning, integration of backend, frontend and gateway, and the production release for a live event.

5services in production

A scheduled job advances the rounds every minute. It debuted at a three-day live event.

TypeScriptCloud FunctionsCloud RunPrismaMySQLNext.js
02 · Architecture

Three design decisions, and what they cost

Each one is written the way I think about it: the problem, the decision, the reason and the price. The first two come with a short film to watch them run.

Decision 01

The order does not wait.
The charge comes later.

In production
The problem

Charging depends on an external provider, which may take a while. The client cannot be left waiting for it.

Scene 1 of 9Who takes partscript 01
A nine-scene film: an order comes in through the gateway, the client token is validated, Catalogue reserves a unit with an expiry, Billing records it as pending and sends the charge to an external provider, and the client gets "pending" without waiting.where we areClientGatewaycacheIdentityCatalogueBillingProviderwhat is happeningoutside the systemClientGatewaycacheIdentityCatalogueBillingExternal providerClientorderproduct#27token7c2…keya81f…Gatewaycachetoken 4b1…token d90…token 7c2…not thereGatewayIdentitycachetoken 4b1…token d90…token 7c2…token 7c2…GatewayCatalogue · product #27reservedoutside the systemBilling · ledgerkeystatusa81f…pendingExternal provideroutside the systemClientGatewayExternal providerpendingClientBilling · ledgerkeystatusa81f…pendingkeya81f…same keyCatalogue · product #27reservedfree again

01A client, a gateway and three services. The payment provider sits outside the system.

0:00 / 0:00
What I decided

The order is reserved, the charge is requested and the answer is "pending" right away. Confirmation comes later, through another path.

Why

The answer to the client does not depend on a third party. If the provider is slow or down, the system keeps serving.

What it cost

The order goes through in-between states that have to be shown to the client and watched.

token in cachereservation with expiryone key per order
architecture/order.ts
Decision 02

One notice.
Each service gets its own copy.

In production
The problem

The provider reports back when it wants: late, twice or never.

Scene 1 of 11Where we left offscript 02
An eleven-scene film: the external provider reports the charge, the gateway checks the seal and publishes the notice to a topic, Billing credits the payment and publishes "order paid" to another topic, which has two subscriptions: one for Mail and one for Catalogue.where we areProviderGatewayinboundBillingconfirmedMailClientCataloguewhat is happeningoutside the systemExternal providerGatewaytopic · inboundBillingpendingtopic · confirmedMailCatalogueClientoutside the systemExternal providerGatewayordera81f…resultchargedGatewayknown sealit matchesoutside the systemExternal providerGatewaytopic · inboundreceivedtopic · inboundBilling · ledgerkeystatusa81f…pendingpaidtopic · inboundBilling · ledgerkeystatusa81f…paiddiscardedalready paidBilling · ledgerkeystatusa81f…paidtopic · confirmedordera81f…statuspaidtopic · confirmedMailsubscriptionCataloguesubscriptionsubscriptionMailClient@subscriptionCataloguedeliveredsubscriptionMailits copy waits in the mailboxsubscriptionCatalogueoutside the systemBilling · ledgerkeystatusa81f…pendingpaidscheduled job: checks pending ordersExternal provider?

01The order is pending and the reservation clock is running. The provider still has to say whether it charged.

0:00 / 0:00
What I decided

The gateway only verifies the notice and publishes it to a topic. Each service gets it through its own subscription.

Why

Adding a service that listens does not mean touching the one that publishes. And if one goes down, the others carry on.

What it cost

A message may arrive twice, so every service has to tolerate it.

two topicsone subscription per serviceduplicates droppedscheduled check
architecture/charge-confirmed.ts
Decision 03

The AI looks.
It does not touch.

Design
The problem

Adding AI to a system in use without putting its data at risk.

What I decided

The AI queries a copy of the data, never the original system. A service replicates every change to a mirror database.

Why

An AI mistake cannot alter real data: it has no way to write.

What it cost

The copy runs a few moments behind the original.

4 stepsscript 03
The original system receives a change.Animation in the works
mirror databasechange replicationread-only
architecture/read-only.ts
03 · Lab

What I build on my own

Personal projects, in progress.

In progress

Databases II tutor

Problem
Students need to ask questions outside class, and a generic assistant answers with content the course has not covered yet.
My part
A tutor that answers only from the course notes and filters by what each class has already seen. It runs on a local model on my server and logs the questions the notes do not cover.
LaravelNuxtPythonLocal modelPostgreSQL
In progress

Open-world role-playing game

What it is
An open-world survival and building game. The name and setting will be announced later.
My part
I develop it on my own, with AI assistance. The one-square-kilometre map is generated by code.
Unreal Engine 5
04 · Automations

AI in my own work

Always with a person who confirms before anything is published.

In progress

Virtual classroom

Problem
Checking pending work, downloading submissions and writing feedback takes hours every week.
My part
Four automations that list what is pending, download the submissions and propose a status and feedback. Nothing is published in the classroom without my confirmation.
In production

Deployment monitoring

Problem
After a deployment someone has to watch the logs for hours to catch new errors.
My part
An automation that watches the logs, groups repeated alerts, restarts itself if it stops and leaves a final report.
05 · Interactive lessons

Interactive classroom

Concepts are easier to understand by watching them work than by reading about them. It is a site with step-by-step films and practice in the browser for two subjects: Databases II, and Algorithms and Python. In Spanish.

AstroTypeScriptSVG
Open edu.cirelhromeo.com
What is published
  • Databases II: the first half of the course
  • Algorithms and Python: all 16 units
  • Python and SQL editors in the browser
  • Animations with voice narration
  • Each resource can be embedded in the virtual classroom

Do you have a problem that looks like one of these?

Let's talk