Skip to content
Nizam team5 min readEngineering

One platform, many products: assembling software from shared modules

A dark central block linked to six module cards, one of them marked in yellow.
In this article

Put a clinic booking app, a restaurant ordering system and a training platform side by side and the differences are obvious. Look underneath and the overlap is striking. All three need user accounts and roles, a way to take payment, notifications by SMS, email or WhatsApp, an audit trail, bilingual content, a model for appointments or time slots, and an admin area where staff fix whatever went wrong. The domain-specific part, the part customers actually choose a product for, is often smaller than people expect.

Building those common parts once, as shared modules on a single platform, is how we approach our own product family. Here is how we think about making it work, and where it does not.

The parts every product repeats

A useful first step is an inventory. Take two or three products you run or plan to run, list every capability, and mark which ones are generic. In most business software the generic list includes:

  • Identity: sign-in, roles, permissions, organization and branch structure.
  • Money: price lists, taxes, invoices, payments, refunds.
  • Time: schedules, available slots, shifts, reminders.
  • Communication: notification templates per channel and language, delivery logs.
  • Records: file storage, change history, exports.
  • Administration: settings, content, reference data.

Each of these is tedious to build well. The role model has to handle a manager who covers two branches. Invoices need credit notes and tax rules. Notifications need retries and a record of what was actually sent. Doing this properly once and reusing it is far cheaper than doing it adequately several times.

Drawing module boundaries

A module is only reusable if its boundary is clear, and in practice that means three things. It owns its data, so other parts of the system never write to its tables directly. It exposes a small, stable interface: a set of operations and events that other modules call or listen to. And it knows nothing about the products that use it. The booking module does not know whether a slot is a clinic appointment or a table reservation.

That last rule is the one that slips first. The moment a shared module contains a check like "if this is the restaurant product", it stops being shared. Product-specific behavior belongs in a product layer, which composes modules and adds its own rules on top.

Clear boundaries do not require microservices. A well-structured modular monolith, with each module as a separate package inside one codebase and one deployment, gives most of the benefit with far less operational overhead. A module can be split into its own service later if it genuinely needs to scale or deploy independently.

Configuration, not forks

The fastest way to lose the value of shared modules is to copy them. A team needs a slightly different invoice layout, forks the module and edits its copy, and a few months later there are two invoice modules with different bugs.

The alternative is to design variation points in advance. The common ones are:

  • Settings: tax rules, working hours, cancellation windows, currencies.
  • Templates: documents, messages and emails per product and per language.
  • Extension hooks: well-defined places where a product can add a validation step or react to an event without editing the module.
  • Feature flags: capabilities switched on per product or per customer.

When a request does not fit any variation point, treat it as a design question. Either the module gains a new, general capability that other products could use too, or the behavior belongs in the product layer. Both are fine. A private patch inside the shared module is not.

Shared data without shared chaos

Shared modules usually mean shared infrastructure, which raises the question of how products and customers are kept apart. Decide the tenancy model early: a separate database per customer, a separate schema, or rows tagged with a tenant identifier in shared tables. Each option trades isolation against operating cost, and changing it later is slow and painful.

Whatever the model, enforce it in one place. Tenant scoping should be applied by the platform automatically, not remembered by each developer in each query. A single forgotten filter is all it takes for one customer to see another customer's invoices.

For communication between modules, prefer events over direct calls when the caller does not need an immediate answer. When a booking is confirmed, the booking module announces it, and the notification and invoicing modules react. This keeps modules independent and makes it easy to add a new reaction later without touching the original module.

What it costs, and where it stops working

A shared platform is not free. The first product takes longer, because the team is building modules general enough to reuse rather than just enough for one case. Changes to a shared module need more care and better tests, since several products depend on it. And someone has to own the platform as a product in its own right, with a roadmap, documentation and versioning.

The approach pays off when the products share a shape: transactional business software, for similar customers, in the same region, with the same expectations for Arabic, payments and compliance. It works less well when products differ fundamentally, say a real-time game and an accounting system. Forcing those onto one platform creates compromises that serve neither.

For a business weighing this approach, the practical test is simple. If you expect to build a second product within the next couple of years, and an honest inventory shows that most of its capabilities overlap with the first, design the first one as a platform with a product on top. If not, focus on the product, keep the code clean, and extract shared modules when the second product actually arrives.