Our first post was about why we built GrowMagik. This one is about how it is put together.
First, the size of it today. About two dozen backend services. More than fifteen web apps that open inside one workspace. Seven native phone apps, plus a web app for customers. Five websites. All of it serves many shops at the same time, and each shop sees only its own data.
If we had built each of these separately, we would spend all our time just keeping them in sync. We don't, because none of them starts from zero. Underneath sit three SDKs that we built first and keep steady: one for the server, one for the web and one for mobile. On the server, the SDK is our microservice framework. On the web, it is our micro-frontend framework. On the phone, it is the kit every app is put together from.
This post walks through those three SDKs, what each one gives a new service or app for free, and the AWS setup they all run on. The same structure is also why most of our new code can now be written with AI without things falling apart. We come to that at the end.
The Platform
The coloured boxes are the three SDKs. Every app, console and service above them is built from them, and all of it runs on the same AWS setup underneath.

The server: a microservice framework inside one SDK
Each business area on the server is its own Spring Boot service, running on Java 25. We drew the lines between them with domain-driven design: savings plans, the money books, sales at the counter, customers, campaigns, bookings, messages and so on. There are about two dozen, in three groups. The core group is where money and promises live. The supporting group helps a shop sell and serve. The generic group is what any business needs, like messaging and the audit trail.
Inside, every service has the same four parts. The domain holds the business rules and has no framework code at all. The application layer holds the commands and queries. The infrastructure layer talks to the database and to outside services. The interfaces layer has the REST controllers and the event listeners. Because every service looks the same inside, anyone who has read one, a person or an AI, can find their way around all of them.
What a service does not write is the plumbing. That comes from our backend SDK, about a dozen libraries every service pulls in.
Outside services, such as payment gateways, WhatsApp providers, lenders and gold price feeds, come in as adapters. Each family has an interface with no Spring in it, one implementation per vendor, and a sandbox that behaves like the real thing. Changing a vendor, or testing without one, is a configuration change.
The last piece is how services are deployed. A service calls another through an interface that works both inside the same process and over HTTP, so the same code can run in three shapes. We started with every service in one JVM, which keeps the cloud bill small. Next come a few bundles, one per group. Later, only the busiest services will run on their own. Our next post covers the cost side of this, and the mechanics.
The web: a micro-frontend framework
The web follows the same idea. There is one shell, built with Next.js 15 and React 19 and served as static files from S3 behind CloudFront. The shell owns what every screen needs: sign-in, the shop's branding and theme, the menu, and the list of apps and menu items this shop has switched on.
Everything else is a micro-frontend. The counter, customers, campaigns, the money books, loans and the rest are each a separate React app, built with Vite and Redux Toolkit, and loaded by the shell at runtime through Module Federation. Each one is built, tested and deployed on its own. The shell only needs to know its name, where it lives and which roles may open it. Adding a console means adding one entry to that list. The shell itself doesn't change.
What makes more than fifteen separate apps look and behave like one product is the web SDK.
The five websites follow the same pattern on a smaller scale. There is one website kit, and each site is a thin layer of its own words and pages on top of it.
Mobile: one native kit, many apps
On the phone we use Expo and React Native. There are seven native apps. Two are for customers saving with a jeweller or a travel agency, and one is for QuickBee's own customers. The other four are for staff: the counter, the shop owner, campaigns, and partners in the field. Customers who would rather not install anything get a web app (a PWA) instead.
Native builds go through EAS, and Maestro flows drive the apps on a simulator for testing.
Underneath: AWS, gateways, messaging and Terraform
Everything runs on AWS, in four environments: dev, test, UAT and production. Two paths matter most: how a request comes in, and how news travels between services once something has happened.

The request path. The web shell and the websites are static files on S3, served through CloudFront. When a screen or an app calls the server, the call goes to API Gateway. There is one gateway per business area, each with its own routes and limits. Sign-in is handled by Amazon Cognito, and the token is checked at the gateway before the call goes any further. From there, a private link carries the call to a load balancer inside our network, and on to the services running on Kubernetes (EKS). The service then works inside the shop's own schema in PostgreSQL on RDS, with Redis on ElastiCache for caching, short locks and duplicate checks.
The event path. When something happens, say a payment is captured, the service writes the event into an outbox table in the same database transaction as the change itself. Either both are saved or neither is. A relay then publishes the event to Amazon EventBridge. Rules on the bus send each kind of event to an SQS queue for every deployable that cares about it, and the listeners handle each message once, even if it arrives twice. Nobody writes those rules by hand. They are generated from one list of who listens to what, and a separate check compares that list with the live bus.
Messages to customers. WhatsApp, SMS and email go out through the messaging adapters from the server section. Delivery receipts and replies come back the same way, as events.
Terraform for all of it. Every environment is built from the same Terraform layers, applied in order: the network, the container registry, the data layer (databases, cache, storage, keys and the event rules), the Kubernetes cluster and its add-ons, sign-in, fixed outbound addresses for partners who need them, and cost guardrails that raise an alarm before a bill surprises anyone. The services ship as one Helm chart, and a single command builds and rolls out a whole environment.
Why this design matters when AI writes the code
Most of our code today is written with AI, with engineers deciding what to build and checking what comes out.
AI is very good at putting known pieces together. It is far less reliable when it has to invent the pieces as well. Ask it to "send a reminder the day before a booking" in a system where every screen does things its own way, and it will write fresh sign-in checks, fresh date handling and a fresh way of sending messages, a little different each time.

AI does most of the work here, but people decide at the gates. AI first writes a design spec, and a developer reads it before any code is written. If the spec isn’t right, it goes back. Once it’s approved, AI builds the change from the blocks we already have. The checks run on every change, and a failure sends it back to be fixed. Last comes a code review, done by an engineer with AI’s help. Nothing reaches a shop until all of that is done.
So our building blocks now do three jobs:
- They make each request small. A new feature is mostly known blocks put together, so there is much less for the AI to get wrong.
- They give the AI something to copy. When one area already does a thing well, the next one can follow it, on the server, the web and the phone alike.
- They give the checks something to hold on to. The edges between blocks are where our automatic checks sit. If AI-written code reaches across an edge it shouldn't, the build fails. Nobody has to catch it by reading line by line.
The speed comes only after the foundation is steady, though. Our first months went into the blocks themselves, and honestly, they felt slow. Once the blocks stopped changing every week, each new feature needed far less new code, and we could go from a shop's request to a working version much faster.
What to take away, and something to take with you
The take-away. Build an SDK for each tier first, for the server, the web and mobile, and let them settle. Make every service, console and app a thin layer on top: on the server that gives you a microservice framework, and on the web a micro-frontend framework. Put the plumbing (sign-in, tenancy, events, money rules) in the SDK once, and from then on each new feature, whether a person or an AI writes it, is mostly putting known pieces together.
The give-away: six questions to test your own layers. The design above is yours to copy. To check your own system against it, answer one question per layer:
- Data. Where does it live, and how do you keep one customer's data away from another's?
- Server SDK. Which jobs does every part of your server need? Those belong in your server SDK, written once.
- Business areas. What are they, and which one owns each piece of data? Group them by how much care they need.
- Edge. What sits between the internet and your services, and what does it check before a request gets through?
- Web and mobile SDKs. Which pieces does every screen and app use? Look and feel, sign-in, server calls, money and dates, languages are a good start.
- Checks. What runs on every change to keep each layer in its lane?
If any answer starts with "it depends on the screen", that is where your next building block is hiding.
Coming up next
On next Tuesday we look at the rules we set for cost before writing any code. Why everything started as one program on one database, and what would make us change each of those choices. After that comes how we keep all of this code in one place and build it in the right order.
Have you built something like this, or would you have done it differently? We’d love to hear your experience and feedback.




