Skip to content

M1-S2 — Architect the solution: modules, seams, names and stores

Section titled “M1-S2 — Architect the solution: modules, seams, names and stores”
ModuleM1 — From requirements to architecture
After this session you canTurn a register into an architecture: modules, the seams between them, the names that must not change, and where records live.
TimeFacilitated: 43 min · On your own: 43 min
Before you startM1-S1: your register R-01 to R-18.
Go deeperModules · Share an entity’s records across spaces · Virtual entities

◆ Orientation (1 min) — Where each requirement lives

Section titled “◆ Orientation (1 min) — Where each requirement lives”

Your register has eighteen lines. Some belong plainly in the recruitment module; others belong to IT; a few cross from one to the other, or out of the platform altogether. Deciding where each lives, and how the parts meet, is architecture. It is the hardest thing to change later: a field can be added in a minute, but a module boundary drawn in the wrong place costs a migration.

By the end of this session you have Meridian’s architecture on one page. Every module after this builds a part of it.

▤ Concept (6 min) — Modules, seams and the names that hold them together

Section titled “▤ Concept (6 min) — Modules, seams and the names that hold them together”

A module is more than a folder in the sidebar. Four things are decided per module, and they are the reasons to split:

  • Ownership. Who may change the design is set on the module’s Permissions tab and under Administration Access when you create it. If IT must own onboarding without touching recruitment, onboarding is its own module.
  • Packaging. A module is the unit you move between environments; a module belongs to one package (M8). Parts that ship on different schedules belong in different modules.
  • Independence. The documentation’s rule is that modules stay independent: when one needs another’s data, it uses a proxy entity rather than pointing at it directly. An independent module can be changed, moved or removed without breaking its neighbour.
  • Navigation. People see a module as one application. Two audiences who never meet should not share one sidebar entry.

Do not split when the same people own both parts, the data is tightly linked, and they ship together: every seam costs a little speed, a little delay and a decision to document.

When a requirement crosses a module boundary, choose the seam deliberately:

SeamWhat it givesUse it whenWatch for
Proxy entityAnother module’s records, re-exposed in yours, possibly fewer and with a few fields editableOne module needs to see (and perhaps update) another’s dataRecords follow the source after a short delay
External custom actionA named action in the other module that your reaction calls, with parametersOne event here must make one thing happen thereThe caller names the action, so the two modules know each other
Announced eventA named announcement any number of reactions, on any entity, respond toOne event here may interest several listeners, now or laterNothing tells the announcer whether anyone listened
Shared listOne list of values both modules pick fromBoth need the same codes (nationalities, competencies)Changing a value changes it everywhere
Direct reference across modulesA reference field in one module pointing at another’s entityAvoid itIt ties the two together: deleting or packaging one now needs the other

A seam is also a contract between the owners. Write it down: which side owns it, what passes through it, and what happens when it fails.

Each module, entity and field has a display Name, which you can change at any time, and a Normalized name, a short machine name generated from the English name: Job Application becomes job_application. The normalized name of a module or an entity is fixed once it is created. Expressions, queries, reports, packages and every API call refer to things by their normalized names, so renaming a field’s normalized name later breaks whatever still uses the old one.

Decide the important ones in the architecture, before anything is built: English, lower case, words joined by underscores, meaning the thing rather than where it is used. Never put an environment, a version or a person’s name in one.

Most organizations need one space. A second space is justified when an audience needs its own address and its own set of applications, such as a branch, an agency or a customer portal. With more than one space, two separate decisions follow:

  • Which spaces see the application. The module’s Sharing level: Public (every space), Private or Shared (only the spaces you choose).
  • Which spaces see each record. Every record is kept in one store of its entity: the Public store (every space), the creating space’s Private store, or a Shared store you create for chosen spaces. A new record goes to the covering store with the highest Weight; out of the box Public has 100 and Private 50, so new records are public.
flowchart LR
  N["Record created<br/>in Dubai"] --> Q{"Highest weight among<br/>stores covering Dubai"}
  Q -->|"Shared Gulf (150)"| SG["Visible in Dubai<br/>and Abu Dhabi"]
  Q -.->|"Public (100)"| P["Would be visible<br/>everywhere"]
  Q -.->|"Private (50)"| PR["Would be visible<br/>in Dubai only"]

What to notice: weights decide only where new records go; records already saved stay where they are, so a store plan must be decided before the branch starts working.

Meridian’s architecture document has five parts: the module map (modules, owners, the entities in each); the seam table (each crossing, its seam and its owner); the names (every normalized name other parts will depend on); spaces and stores; and the outside systems with their integration cards from M1-S1.

▶ Guided demo (5 min) — Where these decisions live in the product

Section titled “▶ Guided demo (5 min) — Where these decisions live in the product”

Nothing is changed in this demo; you only look.

  1. Open Administration › Applications › Modules › Recruitment System and select the Permissions tab. This is where the module’s owners are kept; a second module has its own.
  2. Select the Entities tab, open Jobs, and select its Stores tab. Two stores are listed: Public, weight 100, and Private, weight 50. New Shared Store is there, but your practice space has one space, so you will not use it.
  3. Select the Structure tab and open the Registration deadline field. Its normalized name is registration_deadline: the name every expression and API call in this course uses.

Screenshot pending The Stores tab of the Jobs entity, showing the Public store with weight 100 and the Private store with weight 50 What to notice: the public store wins by default, which is why records are visible in every space until someone plans otherwise.

◇ Worked scenario (2 min) — Meridian opens a Dubai branch

Section titled “◇ Worked scenario (2 min) — Meridian opens a Dubai branch”

Meridian plans a Dubai branch with its own recruiters, its own careers address and its own vacancies. Head-office HR must see Dubai’s hiring; Dubai must not see head office’s. Pause at each decision.

Decision 1: a second space? Dubai needs its own address and its own audience. Decide. Yes: a Dubai space is justified. Inside one space the careers site would show every job.

Decision 2: does Dubai see the recruitment module? Decide. Yes, it runs the same process. Set the module’s Sharing level to Public, or Shared with head office and Dubai.

Decision 3: where do Dubai’s jobs go? Dubai’s jobs must be visible in Dubai and at head office, but head office’s jobs only at head office. Decide. Create a Shared store on Jobs covering head office and Dubai with weight 150: Dubai’s new jobs go there. Head office’s jobs would also go there (the shared store covers head office too, and outweighs Public), so raise head office’s Private store above 150, to 160. Head office’s new jobs now stay private.

Decision 4: when? Decide. Before Dubai’s first record. Weights move new records only.

The reasoning to keep: spaces answer “who has their own address”, sharing answers “who sees the application”, stores answer “who sees each record”, and weights are decided by working out, for each space, which covering store must win.

⛏ Lab (22 min) — Meridian’s architecture on one page

Section titled “⛏ Lab (22 min) — Meridian’s architecture on one page”

Goal. An architecture document for the suite that every later module can build from.

Before you start. Your register from M1-S1, the architecture scorecard, and a document with five headings: Module map · Seams · Names · Spaces and stores · Outside systems.

  1. Module map. List the modules, an owner for each, and the entities each will hold. Put each requirement from R-01 to R-18 in a module or mark it as crossing.
  2. Seams. For every crossing requirement, choose a seam from the seam table and write one sentence of reason. Name which side owns it.
  3. Names. Write the normalized name of every new module and entity, and of the starter fields your seams and integrations will read (look them up on the Structure tabs).
  4. Spaces and stores. Decide the number of spaces and the stores for now, and add one line about what would change for a second branch.
  5. Outside systems. Copy the careers-site card and write the payroll card.
  6. Self-review. Score your document with the architecture scorecard. Fix every No.
  7. Compare with the worked solution. Where yours differs, keep yours only if you can say why it is at least as good.

Check.

  • Every requirement is in a module or marked as crossing.
  • Every crossing has a seam, an owner and a reason; none is a direct cross-module reference.
  • New modules and entities have normalized names in lower case with underscores.
  • The spaces-and-stores decision is stated, with the trigger that would change it.
  • The scorecard has no No left.

Pass condition. A builder could start Module 2 from your document without asking where anything goes, and no crossing uses a direct reference between modules.

If something goes wrong

What you seeWhat to do
Everything fits in one moduleReread R-02 and the IT manager’s note: IT owns onboarding and wants no copies of employee data.
You chose a direct reference from onboarding to EmployeesThat ties the modules together. A proxy gives IT the records without the dependency.
You are unsure between an announced event and an external custom actionAsk how many listeners there are today and tomorrow. One known listener that needs parameters: an external action. Several, or unknown: an announcement.
Model answer

Module map.

ModuleNormalized nameOwnerEntities
Recruitment System (starter)recruitment_systemHRJobs, Job Application (service), Employees, Receptions; new: Application Pipeline (joiner), HR Worklist (aggregate)
Employee Onboardingemployee_onboardingITNew Hires (proxy of Employees), Onboarding Checklists

Seams.

CrossingSeamOwnerReason
R-03, R-18 IT sees new hires and records the company emailProxy New Hires on Employees, with only Company email editableHR owns the source; IT owns the proxyIT gets the live records with no copy, and can change one field only
R-01 Onboarding starts when a candidate signsExternal custom action Start onboarding in Employee Onboarding, called from Job Application with the candidate’s name, email and start dateIT owns the action; HR owns the callOne known listener that needs parameters
R-11 PayrollA reaction on Job Application calling payroll’s addressHRWe start the exchange
R-10 Careers siteA view of open jobs and the Job Application service, read and written over the API with a credential we issueHRThe view limits what the site can reach
ListsNationalities, Competencies and the others, sharedHRBoth modules use the same codes

An announced event Candidate hired is the alternative for R-01 if more listeners appear later.

Names. Modules as above; entities new_hires, onboarding_checklists, application_pipeline, hr_worklist; starter fields read by seams and integrations: full_name, email, vacancy, available_from, expected_salary, job_title, registration_deadline, job_status, company_email.

Spaces and stores. One space; both modules Public; default stores. A second branch with its own address would bring a second space and the store plan from the worked scenario.

Outside systems. The careers-site card from M1-S1; the payroll card from the integration card example.

✓ Practice (6 min) — Check your architecture

Section titled “✓ Practice (6 min) — Check your architecture”
PracticeChoose one answer.

A Facilities module needs each employee’s name and desk number, which live in HR’s Employees entity. HR wants to keep its module removable without breaking Facilities. What do you build?

  1. Explanation for A

    ✗ Incorrect

    Not this one: a direct reference ties the modules together, so HR’s module can no longer be removed or packaged alone. See the seams.

  2. Explanation for B

    ✓ Correct

    Correct: the proxy re-exposes the records in Facilities and keeps the modules independent, as the documentation recommends. See the seams.

  3. Explanation for C

    ✗ Incorrect

    Not this one: a hand-built copy drifts from the source and doubles the data to protect. See the seams.

Check your answer

The correct answer is B. Open the explanation under each option to see why.

PracticeChoose one answer.

When a contract is signed, Legal wants a review task created today, and Finance may want an invoice schedule next year. Nobody knows who else will care. Which seam fits?

  1. Explanation for A

    ✓ Correct

    Correct: several listeners, some not known yet, is exactly what an announcement is for. See the seams.

  2. Explanation for B

    ✗ Incorrect

    Not this one: it serves one known listener; adding Finance later means editing the caller. See the seams.

  3. Explanation for C

    ✗ Incorrect

    Not this one: a proxy shows records, but it does not make anything happen when one is signed. See the seams.

Check your answer

The correct answer is A. Open the explanation under each option to see why.

PracticeChoose one answer.

A tenant has three spaces, North, South and West. North and South must see each other’s new contracts; West’s must stay in West. The default weights are unchanged. What do you set?

  1. Explanation for A

    ✗ Incorrect

    Not this one: 90 is below the public store’s 100, so new records still go public and West sees them. See spaces, sharing and stores.

  2. Explanation for B

    ✓ Correct

    Correct: North and South now save to the shared store, and West saves to its private store instead of the public one. See the worked scenario.

  3. Explanation for C

    ✗ Incorrect

    Not this one: sharing decides who sees the application, not where each record is kept. See spaces, sharing and stores.

Check your answer

The correct answer is B. Open the explanation under each option to see why.

PracticeDecide whether the statement is true or false.

Renaming a field’s display name from Start date to First working day breaks the expressions and API calls that use the field.

  1. Explanation for A

    ✗ Incorrect

    Not this one: expressions and API calls use the normalized name, which a display name change does not touch. See names that must not change.

  2. Explanation for B

    ✓ Correct

    Correct: only changing the normalized name breaks them, which is why the architecture fixes those names first. See names that must not change.

Check your answer

The correct answer is B (False). Open the explanation under each option to see why.

PracticeChoose one answer.

A small company’s two departments each want “their own space” so that their applications look separate. They share one address and the same people. What do you advise?

  1. Explanation for A

    ✗ Incorrect

    Not this one: a space is justified by its own address and audience; here both are the same. See spaces, sharing and stores.

  2. Explanation for B

    ✓ Correct

    Correct: modules already separate the applications, and their permissions separate who may use them. See why split a suite into modules.

  3. Explanation for C

    ✗ Incorrect

    Not this one: stores decide which spaces see records, so with one space they change nothing. See spaces, sharing and stores.

Check your answer

The correct answer is B. Open the explanation under each option to see why.

You can turn Meridian’s register into an architecture: modules split by ownership, packaging and independence; a seam chosen for every crossing; the normalized names fixed; and a deliberate decision about spaces and stores. After Module 1 you can lead the requirements of a multi-module solution and turn them into an architecture a team can build from.

Next. In Module 2 you build the data side of that architecture: the Employee Onboarding module, its proxy of Employees, and two composite virtual entities for HR.