Core Concepts

Tailor Platform resources are organized in a hierarchical structure. The following diagram illustrates the relationship between resources:

As described in Quickstart, the steps to create an application on the Tailor Platform are:

  1. Install Tailor CLI tool and log in to the Tailor Platform.
  2. Create a workspace in the Tailor Platform.
  3. Generate the configuration files for the application.

Workspace

A Workspace is the top-level namespace in the Tailor Platform for your organization.

An application must belong to a Workspace, and multiple applications can be hosted within a Workspace. A workspace can have multiple admin users. Admin users are users who can manage the workspace and its applications through Tailor CLI.

In the workspace manifest, we specify the applications and services selected for use by applications.

<span><span style="color: var(--shiki-color-text)">v2.#Workspace </span><span style="color: var(--shiki-token-keyword)">&amp;</span><span style="color: var(--shiki-color-text)"> {</span></span>
<span><span style="color: var(--shiki-color-text)">	Apps: [</span></span>
<span><span style="color: var(--shiki-color-text)">		applicationA</span><span style="color: var(--shiki-token-punctuation)">,</span></span>
<span><span style="color: var(--shiki-color-text)">		applicationB</span><span style="color: var(--shiki-token-punctuation)">,</span></span>
<span><span style="color: var(--shiki-color-text)">	]</span></span>
<span><span style="color: var(--shiki-color-text)">	Services: [tailordb</span><span style="color: var(--shiki-token-punctuation)">,</span><span style="color: var(--shiki-color-text)"> pipeline</span><span style="color: var(--shiki-token-punctuation)">,</span><span style="color: var(--shiki-color-text)"> auth.AuthA</span><span style="color: var(--shiki-token-punctuation)">,</span><span style="color: var(--shiki-color-text)"> auth.AuthB]</span></span>
<span><span style="color: var(--shiki-color-text)">}</span></span>
<span></span>

Application

An Application represents each ERP application APIs, such as CRM, SCM, or any customized applications.

Each application can register any subgraph (TailorDB, Pipeline, Stateflow) for use, select an Auth profile, and configure CORS. Additionally, each application has a single GraphQL endpoint that provides access to all the services configured for that application.

Multiple applications can be hosted within a single workspace, enabling all services to be shared across applications.

We can create applications from scratch or from our pre-build templates.

Service

A Service is a pluggable microservices of Tailor Platform that is used to build applications. An application will handle the stitching of the services together to provide a single GraphQL endpoint for the application, therefore the consumers of the application APIs no need to know about the underlying services. Tailor Platform offers four main services to help you build ERP applications

  • Tailor DB service: is a flexible database that you build using schema, and give users access to the data through a GraphQL API.
  • Auth service: provides authentication and authorization capabilities and managing users and their attributes.
  • Pipeline service: is a powerful way to execute multiple GraphQL operations sequentially, with data transformation at each step.
  • StateFlow service: provides a state machine with record-level authorization management.

Also, the Application is responsible for managing and routing requests to all services. It acts as the front door for the services, handling GraphQL operations across them.

These services are all defined through configuration, removing the need for you to write code to build your application, while still giving you the flexibility to customize your application.

Further information