Clusters

Several applications, one sign-in

Group your Fractal applications into a cluster and they behave as one product suite: a shared authorization server, roles per application, an app switcher in every portal, shared branding and configuration, and generated clients so one app can call another. Each app keeps its own model, code and release rhythm.

What a cluster gives you

A cluster is a set of applications that sign in through one authorization server. Everything else follows from that.

  • One authorization server

    Users sign in once, on the cluster's authorization server. Every app in the cluster accepts its tokens next to its own, verified against the server's published keys, and each portal is registered there as its own OAuth client.

  • Roles per application

    One account, different rights per app. The token carries a separate set of roles for each application, filtered to the roles that app actually knows. No roles for an app means no access to it, never "the same roles as elsewhere".

  • Cross-app navigation

    Every portal gets an app switcher listing its sibling portals, and only the ones the signed-in user holds a role in. Studio can seed a link for every app in the cluster, and you can add links to any other portal, optionally only for users of a given app.

  • Typed clients between apps

    Each app gets a generated client per sibling, with that sibling's resources, CRUD calls, commands and queries as methods. Inside a request it forwards the user's own token, so the sibling checks that user's roles; in a background job it uses a service token capped at its owner's roles.

  • Shared branding

    Upload the cluster's logo, dark-mode logo and favicon once and define its colour themes, including the default. Every regeneration writes them into each app's portal, so the suite looks like one product.

  • Shared configuration

    Roles, settings, dependencies, value objects, enumerations and environments can live on the cluster instead of on one project, and every app in it picks them up. Keys generated during a deployment are only written to an app's own environment, never to a shared one.

Setting up a cluster

All of it is configured in Fractal Studio and arrives in the apps on their next regeneration.

  1. Step 1:Create the cluster

    Create a cluster in Fractal Studio and add your application projects to it. One app acts as the authorization server for all of them.
  2. Step 2:Share what belongs together

    Move roles, settings, enumerations and environments that every app needs onto the cluster, and upload the logo, dark logo and favicon.
  3. Step 3:Seed the app switcher

    Let Studio add a portal link for every application in the cluster. Rename, reorder or remove them as you like: seeding again never overwrites your changes.
  4. Step 4:Grant access per app

    On the authorization server, give each user the roles they need in each application. An overview per application shows every role and who holds it.
  5. Step 5:Regenerate

    Each app is regenerated with its sibling clients, the shared configuration and the branding. When a sibling's model changes, the next regeneration updates the client that calls it.

Split by domain, without splitting the experience

Growing software tends to end up in one of two places: one large application that every team has to work in, or a set of separate tools with separate logins, separate user lists and hand-written glue between them.

A cluster is the middle road. Each application has its own model, its own codebase and its own deployment, so teams can move at their own pace. Users still experience one product: they sign in once, switch between apps from any portal and only see the apps they have access to.

The connections are generated, not hand-written. Apps call each other through clients built from each other's models and exchange plain data rather than each other's internals, so they stay loosely coupled. Access is checked where the data lives, with the user's own roles in that app.

Cluster questions

Does a user need a separate account for every app?

No. There is one account on the cluster's authorization server. What differs per app are the roles that account holds there.

Can someone use one app but not another?

Yes. Roles are granted per application. Without roles in an app, a user cannot use it and does not see it in the app switcher.

How do apps in a cluster talk to each other?

Through generated clients, one per sibling app, with methods for its resources, commands and queries. They call the sibling's API with the user's token, or with a service token outside a request, so the sibling applies its own permissions.

What happens when one app's model changes?

Regenerate the apps that call it and their clients follow the new model. A call to something the sibling no longer offers fails in the calling app itself, rather than as an error from the other side.

Do all apps have to be deployed together?

No. Each app keeps its own repository and deployment. Shared configuration comes from the cluster, while each app's own keys stay in its own environment.

Can a hand-built portal be part of the switcher?

Yes. Besides the portals of the cluster's apps, a portal link can point to any other address, and can be limited to users who hold a role in a particular app.

Planning more than one application?

We will show how a cluster ties your apps together with one sign-in, per-app roles and generated connections.

Book a demo