All work

Master’s course · 2026

Cloud-native invoice platform

Orders in, PDF invoices out in the background: microservices on Azure Kubernetes Service, a worker that scales to zero, and a rollback when the live tests fail.

Azure Kubernetes Service order stock message polls PDF Front endReact Order serviceSpring Boot Catalog serviceSpring Boot PostgreSQLStatefulSet Queue StorageAzure Invoice workerContainer Appsscales to zero Blob Storageinvoices
How an order becomes an invoice. In blue: the background path.

What it is

An app for browsing products and placing orders. The order is confirmed straight away, and its PDF invoice is generated in the background. It runs on Azure: microservices on Azure Kubernetes Service, plus a worker on Container Apps.

The product catalogue: five products (mouse, monitor, headphones, laptop, keyboard), each with its code, price and stock.
The product catalogue. The front end is in Serbian.

How it works

There are four parts: a catalog service, an order service, an invoice worker and a React front end. When someone places an order, the order service calls the catalog service to check and reduce stock, saves the order and puts a message on Azure Queue Storage, so the user gets an answer straight away.

The invoice worker polls the queue, fetches the order, generates the PDF with iText, stores it in Blob Storage and marks the order completed.

A generated invoice PDF for order 10: two mice at 29.99 RSD, 59.98 RSD in total.
An invoice the worker generated.

Everything else, including PostgreSQL as a StatefulSet with persistent storage, runs on AKS. Secrets live in Key Vault and reach the cluster through the Secrets Store CSI Driver.

Why a queue

  • The user doesn’t wait. The order is confirmed as soon as it’s saved; the invoice follows in the background.
  • Nothing is lost. If the worker crashes, the message stays in the queue and is retried.
  • Nothing runs when there’s nothing to do. Container Apps scales the worker to zero when the queue is empty.

Shipping it

Every push to main goes through the same pipeline in GitHub Actions. If the integration tests fail against the live system, the deployment is rolled back automatically.

  1. Push to mainGitHub Actions starts the pipeline.
  2. Unit testsRun before anything is built.
  3. Build imagesPushed to Azure Container Registry.
  4. DeployThe new images go live.
  5. Integration testsRun against the live system.
  6. Roll backAutomatically, if those tests fail.

Contact

The quickest way to reach me is email.

zekovicognjen753@gmail.com

Novi Sad, Serbia (Central European Time). Happy to work with teams in other time zones.