Alex Morais

Alex Morais

Lead backend engineer

I've spent 17 years building the backend systems products run on. My strongest work is in multi-tenant data platforms with AI features, rolling maintenance that keeps databases on Kubernetes running while their machines are replaced, and event-driven notification and alerting.

Work

Multi-tenant data platforms with AI features

Built the backend platform and designed how data gets in

Built the foundation for a product made of several apps: one backend platform, and shared packages each app started from. Designed and built how customers' own data got into the product: file uploads, connected business systems, and the ingestion that made the data they chose ready to use. Also worked on sign-in, access control and the product's AI agent features.

Giving every new app the same foundation

Every app needed the same basics, such as sign-in and access to data. Writing those separately for each app would have meant doing the same work again and again.

AppAppApp Shared building blocks (reusable packages)sign-in, data access and more, written once and used by every app The backend platformthe foundation all the apps run on App App App Shared building blocks (reusable packages) sign-in, data access andmore, written once andused by every app The backend platform the foundation all theapps run on
Decision: build shared packages once, under every app, on one platform. Helped the team: new apps started from the same foundations instead of from scratch.

Getting a customer's own data into the product

Customers keep their data in many places: files on their computer, business systems they already use, and tools an AI assistant can use. All of it had to end up usable in the product, in the same dependable way.

Files they uploadspreadsheets, documents Systems they connectbusiness tools they use Access through AI toolsanother route to thesame kinds of data One way inevery source getsthe same checks The customer's data,ready to usechosen by them Files they upload spreadsheets, documents Systems they connect business tools they use Access through AI tools another route to thesame kinds of data One way in every source getsthe same checks The customer's data, ready to use chosen by them
Decision: however customers bring their data, it goes through one way in. Helped customers: their own data was available in the product whichever way it arrived.

Moving every customer to a new sign-in system without logging anyone out

The product's sign-in had to move to a different system, and customers shouldn't be locked out or even notice the change.

1. Old and new sign-inrun side by side2. Move customers overa few at a time3. Switch offthe old sign-in Old sign-inNew sign-inOld sign-inNew sign-inOld sign-inNew sign-in Customers, by sign-in used Customers, by sign-in used Customers, by sign-in used Everyone still signs inthe way they always have. A few customers at a timemove to the new sign-in. The old one is turned offonce nobody depends on it. on oldon new Goal at every step: nobody gets logged out 1. Old and new sign-in run side by side Old sign-in New sign-in Customers, by sign-in used Everyone still signs inthe way they always have. on old on new 2. Move customers over a few at a time Old sign-in New sign-in Customers, by sign-in used A few customers at a timemove to the new sign-in. 3. Switch off the old sign-in Old sign-in New sign-in Customers, by sign-in used The old one is turned offonce nobody depends on it. Goal at every step: nobody gets logged out
Decision: move in phases, with the old and new sign-in running side by side. Helped every customer: sign-in kept working the whole way through.

Rolling cluster maintenance for databases on Kubernetes

Worked on the cluster refresh modules

Worked on a platform that ran databases on Kubernetes clusters in the public cloud, including the modules that replaced a cluster's machines in the right order while the databases stayed up.

Replacing every machine in a live database cluster without taking customers down

Over time a cluster's machines have to be replaced. The modules rebuilt them in dependency order: keep a majority of the cluster state up, then the control plane, then the nodes that take requests, then drain workers a few at a time. Each step waited for the one before it, so the cluster came back healthy after every refresh.

A database cluster on Kubernetes Each step waitsfor the onebefore it to behealthy. 1. Cluster stateone at a time, so a majority always stays up 2. Control planeone at a time 3. Ingress nodeswhere requests come in 4. Workersdrained, then cycled a few at a time blue: new, dashed: now, gray: old Healthy cluster, working after the refresh Databases keep running the whole time Refreshing the machines keeps the cluster healthy. A database clusteron Kubernetes Each step waits for the onebefore it to be healthy. 1. Cluster state one at a time, so a majorityalways stays up 2. Control plane one at a time 3. Ingress nodes where requestscome in 4. Workers drained, then cycled a fewat a time blue: new, dashed: now, gray: old Healthy cluster, working after the refresh Databases keeprunning the whole time Refreshing the machineskeeps the cluster healthy.
Decision: refresh the cluster in a fixed order, one node at a time where it matters, and cycle workers a few at a time. Helped customers: their databases kept running while the machines underneath were replaced.

Event-driven notification and alerting systems

Built the first version, then led the team that extended it

Took a customer-facing feature from its first version to a notification system with real-time status updates, so customers learned right away when something changed. I built the original, then led a team of engineers through each step, and we delivered on schedule.

Growing one feature into notifications and real-time updates

Customers needed to be told when something happened. Instead of starting over, the existing feature was extended one step at a time.

Original featureBetternotificationsReal-timestatus updates the first versiontell peoplewhat happenedas thingschange I built the original I led a team of engineers to extend it Each step built on the one before.Delivered on schedule. Each step built on theone before. Delivered on schedule. I built the original Original feature the first version I led a team of engineersto extend it Better notifications tell people what happened Real-time status updates as things change
Decision: grow the existing feature instead of replacing it. Helped customers: they learned right away when something changed.

Projects

Contact

Want to talk about a project or a role?